Date: Fri, 12 Jan 2018 08:51:04 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458807 - head/multimedia/handbrake Message-ID: <201801120851.w0C8p46Q023824@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Fri Jan 12 08:51:04 2018 New Revision: 458807 URL: https://svnweb.freebsd.org/changeset/ports/458807 Log: multimedia/handbrake: Make Python 2.7 build dependency explicit Handbrake has a hard build dependency on Python 2.7 and calls python2 during the build. However lang/python2 might not be installed in the build environment (e.g. with OPTIONS_UNSET=CUPS). python2 /wrkdirs/usr/ports/multimedia/handbrake/work/HandBrake-1.0.7/build/../gtk/src/makedeps.py gmake[4]: python2: Command not found gmake[4]: *** [Makefile:866: widget.deps] Error 127 gmake[4]: Leaving directory '/wrkdirs/usr/ports/multimedia/handbrake/work/HandBrake-1.0.7/build/gtk/src' Modified: head/multimedia/handbrake/Makefile Modified: head/multimedia/handbrake/Makefile ============================================================================== --- head/multimedia/handbrake/Makefile Fri Jan 12 07:47:30 2018 (r458806) +++ head/multimedia/handbrake/Makefile Fri Jan 12 08:51:04 2018 (r458807) @@ -64,7 +64,7 @@ LIB_DEPENDS+= libdvdcss.so:multimedia/libdvdcss GNU_CONFIGURE= yes USE_GCC= yes USES= autoreconf:build compiler:features gmake iconv \ - libtool:build localbase:ldflags pkgconfig python:build + libtool:build localbase:ldflags pkgconfig python:2.7,build MAKE_ENV= V=1 ACLOCAL=${LOCALBASE}/bin/aclocal CONFIGURE_ARGS= --force --enable-x265 @@ -123,6 +123,10 @@ post-extract: .SILENT .for f in ${CONTRIB_FILES} ${CP} ${DISTDIR}/${DIST_SUBDIR}/${f} ${WRKSRC}/download .endfor + +post-patch: + @${REINPLACE_CMD} 's@python2 @${PYTHON_CMD} @' \ + ${WRKSRC}/gtk/src/Makefile.am post-install-X11-on: ${LN} -sf ghb ${STAGEDIR}${PREFIX}/bin/HandBrake
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801120851.w0C8p46Q023824>