From nobody Fri Sep 30 16:20:01 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MfFnF5VB6z4f5Bm; Fri, 30 Sep 2022 16:20:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MfFnF4yG4z3q9k; Fri, 30 Sep 2022 16:20:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664554801; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=590Uuz8h6V+ZCKKeZdP3iXzWmW9FrMGidwv7Mci+OYI=; b=cV07hSx21ZeKYs+MqJF2saDYc5YdXiM1LZRpfaoPRDuABDZ2b6uO+2Z79EQT8XcIlzzO/S VrpsI2k//eAh06SgG0gW8AgHqPYojmmDfzt9Z2U2skUACar+e39vVR78I1lqYO2fpHuwxb NjGC9Ucs4QfFAJmbbBWNp9IC0LagFyudoTLINnbZ+9hY7523UvG2sAzKBJfdsEGFDNjS9S Uc1boNQQqq392kaaXhXzJBSAcdSNOB7c/cRCpxtpAxiBVRUvBgofGs0itqT64lH/L+9biz XfWFe+dxD54SmTJgLPXNLLREcJhc3uoy2G4/RYkUHpVioCc5CE90rtCjgQsBsw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MfFnF3vBnzDjg; Fri, 30 Sep 2022 16:20:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28UGK1sg058897; Fri, 30 Sep 2022 16:20:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28UGK1a5058886; Fri, 30 Sep 2022 16:20:01 GMT (envelope-from git) Date: Fri, 30 Sep 2022 16:20:01 GMT Message-Id: <202209301620.28UGK1a5058886@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Felix Palmen Subject: git: b7be88867a05 - main - multimedia/makemkv: Use new linux-c7 -devel pkgs List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zirias X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b7be88867a057a7ab5ed453fd167080f07df91e3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664554801; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=590Uuz8h6V+ZCKKeZdP3iXzWmW9FrMGidwv7Mci+OYI=; b=CdtOILMAwLCW7fnBt60KQ1gQBB611lEMhQPxdd/lw4TiuRGSTX8Ko36cJWqAaBkT1Tgq7a QL5TRBsjsJTDEOaJJn1hsjdBAzP0voOsltodeTgAXq4+sYQaA/wft4VDkahuhn5Uy/Zmrt +ssfuJmIEt35WQ0+GAon0QAaQQrP/2YZovT0X774qbg2DH+UOMA4k+JV6BlnSCqp7QpRKp r07LhkZPGi8xjjeSLlJ/2HzEqBQozew0o0ljIzN3Q93JXxOAdJpSZxeoRwTHDcEehXVKwD E3bxIW9Pe07XB0lAyk5PJow0Y7uGH1wDkQHya/Gy43Ic2rskHw8toT7hueC11Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664554801; a=rsa-sha256; cv=none; b=OtXj8q97X/ou61lVBDlDzJYNuSEuYHq9jvP0idh+UpuI7xDvFe5ttGkyi5dlYku4n6NXG6 PsIav1tAO29gOzCmzZkYEf+/+dwEPqeODxzYgkb367K7R6Qg+xMLVstZLU+rYI8yI81RmX 2yNuIvzvDwGV14hebiK1FB9AfKTH0RgTHD8EfttsCo8hruvPJnNgNPcAIpjDkFhi6zQJz2 xNkAGWQXpJwSXzefPscNuMwhdzs7otNdMAQN9U7RdxfApyCdbyMyz1P0msVpNsXEhBB2LU OeDXMv2t+c2KCLkcChGPsXfZ2T127WpVtvIkB6BV8Jfhl2skq55pHit9Git6Ug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zirias: URL: https://cgit.FreeBSD.org/ports/commit/?id=b7be88867a057a7ab5ed453fd167080f07df91e3 commit b7be88867a057a7ab5ed453fd167080f07df91e3 Author: Felix Palmen AuthorDate: 2022-09-20 11:28:29 +0000 Commit: Felix Palmen CommitDate: 2022-09-30 16:19:39 +0000 multimedia/makemkv: Use new linux-c7 -devel pkgs This avoids fetching upstream distfiles just for OpenSSL headers. Bump port revision because different headers are used. Also drop perl5 dependency (not needed any more) and avoid little-known AT&T style replacements in Makefile. Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D36836 --- multimedia/makemkv/Makefile | 45 ++++++++++++--------------------------------- 1 file changed, 12 insertions(+), 33 deletions(-) diff --git a/multimedia/makemkv/Makefile b/multimedia/makemkv/Makefile index 88fa45d2e6db..32fc59f7b10b 100644 --- a/multimedia/makemkv/Makefile +++ b/multimedia/makemkv/Makefile @@ -1,14 +1,13 @@ PORTNAME= makemkv DISTVERSION= 1.17.1 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= http://www.makemkv.com/download/:makemkv \ http://www.makemkv.com/download/old/:makemkv \ SF/opencore-amr/fdk-aac/:fdkaac \ - https://ffmpeg.org/releases/:ffmpeg \ - https://www.openssl.org/source/old/${OPENSSLVERSION}/:openssl -DISTFILES= ${DISTFL_MAKEMKV:=:makemkv} \ - ${DISTFL_FFMPEG:=:ffmpeg} \ - ${DISTFL_OPENSSL:=:openssl} + https://ffmpeg.org/releases/:ffmpeg +DISTFILES= ${DISTFL_MAKEMKV:S/$/:makemkv/} \ + ${DISTFL_FFMPEG:S/$/:ffmpeg/} DIST_SUBDIR= ${PORTNAME} MAINTAINER= zirias@FreeBSD.org @@ -30,13 +29,13 @@ LICENSE_DISTFILES_LGPL21+ = ${DISTFL_FFMPEG} LICENSE_DISTFILES_MAKEMKV= ${DISTFL_MAKEMKV} ONLY_FOR_ARCHS= aarch64 amd64 i386 -USES= gmake linux pkgconfig perl5 +USES= gmake linux pkgconfig USE_CSTD= c11 USE_CXXSTD= c++11 -USE_LINUX= base expat expat:build openssl openssl:build devtools:build -USE_PERL5= build -BUILD_DEPENDS= ${LOCALBASE}/include/expat.h:textproc/expat2 \ - patchelf>0:sysutils/patchelf \ +USE_LINUX= base expat \ + devtools:build expat-devel:build openssl-devel:build \ + zlib-devel:build +BUILD_DEPENDS= patchelf:sysutils/patchelf \ ${BUILD_DEPENDS_${FFMPEG_ARCH}} BUILD_DEPENDS_x86= nasm:devel/nasm @@ -44,7 +43,6 @@ WRKSRC= ${WRKDIR}/makemkv-oss-${DISTVERSION} WRKSRC_bin= ${WRKDIR}/makemkv-bin-${DISTVERSION} WRKSRC_fdkaac= ${WRKDIR}/fdk-aac-${FDKAACVERSION} WRKSRC_ffmpeg= ${WRKDIR}/ffmpeg-${FFMPEGVERSION} -WRKSRC_openssl= ${WRKDIR}/openssl-${OPENSSLFULLVER} CONFLICTS_BUILD= v4l_compat @@ -54,34 +52,24 @@ PLIST_SUB= LINUXBASE=${LINUXBASE} FDKAACVERSION= 2.0.2 FFMPEGVERSION= 5.1 -OPENSSLVERSION= 1.0.2 -OPENSSLPATCHLEVEL= k -OPENSSLFULLVER= ${OPENSSLVERSION}${OPENSSLPATCHLEVEL} DISTFL_MAKEMKV= makemkv-oss-${DISTVERSION}.tar.gz \ makemkv-bin-${DISTVERSION}.tar.gz DISTFL_FDKAAC= fdk-aac-${FDKAACVERSION}.tar.gz DISTFL_FFMPEG= ffmpeg-${FFMPEGVERSION}.tar.bz2 -DISTFL_OPENSSL= openssl-${OPENSSLFULLVER}.tar.gz - -LINUXLIBDIR= ${LINUXBASE}/${"${ARCH:Mi386}":?lib:lib64} -OPENSSLTARGET= linux-${ARCH:S/i386/elf/:S/amd64/x86_64/} -LINUXLIBS= libcrypto.so.10 libexpat.so.1 libz.so.1 -LINUXSYSROOT= ${WRKDIR}/gnuroot OPTIONS_DEFINE= EXAMPLES FDK_AAC OPTIONS_DEFAULT= EXAMPLES FDK_AAC_DESC= Support AAC via statically linked fdk-aac -FDK_AAC_DISTFILES= ${DISTFL_FDKAAC:=:fdkaac} +FDK_AAC_DISTFILES= ${DISTFL_FDKAAC:S/$/:fdkaac/} TARGET_ORDER_OVERRIDE= 290:pre-configure-FDK_AAC-on CC= ${LINUXBASE}/bin/gcc CXX= ${LINUXBASE}/bin/g++ -CPPFLAGS+= -I${LINUXSYSROOT}/include -I${WRKSRC_openssl}/include \ - -D_linux_ -DFORCE_OPENSSL_NO_EC \ +CPPFLAGS+= -D_linux_ -DFORCE_OPENSSL_NO_EC \ ${${OSVERSION}<1300000:?-Dcaddr_t=void\* -D__daddr_t_defined:} -LDFLAGS+= -L${LINUXSYSROOT}/lib PATCHELF_CMD?= ${LOCALBASE}/bin/patchelf +LINUXSYSROOT= ${WRKDIR}/gnuroot HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} --disable-gui --libdir=${PREFIX}/lib/makemkv CONFIGURE_ENV= PKG_CONFIG_PATH=${LINUXSYSROOT}/lib/pkgconfig @@ -96,12 +84,6 @@ FFMPEG_CONFIGURE_ENV= ${CONFIGURE_ENV} CFLAGS="${CPPFLAGS} ${CFLAGS}" FFMPEG_MAKE_ARGS= V=1 ARCH=${FFMPEG_ARCH} FFMPEG_INSTALL_TARGET= ${ALL_TARGET} ${INSTALL_TARGET} -post-extract: - @${MKDIR} ${LINUXSYSROOT}/lib -.for lib in ${LINUXLIBS} - @${LN} -s ${LINUXLIBDIR}/${lib} ${LINUXSYSROOT}/lib/${lib:R} -.endfor - post-patch: @${REINPLACE_CMD} -e 's:INSTALL) -D:INSTALL):' \ ${WRKSRC}/Makefile.in @@ -125,9 +107,6 @@ pre-configure: ${FFMPEG_CONFIGURE_ENV} ./configure ${FFMPEG_CONFIGURE_ARGS}; \ ${MAKE_ENV} ${MAKE_CMD} ${_MAKE_JOBS} \ ${FFMPEG_MAKE_ARGS} ${FFMPEG_INSTALL_TARGET} - # OpenSSL headers - cd ${WRKSRC_openssl}; \ - ./Configure --openssldir= --prefix=/usr ${OPENSSLTARGET} pre-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/makemkv