diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2012-08-23 16:37:51 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2012-08-23 16:37:51 +0000 |
commit | 91e3a31d40bad5d1bd72d209e67f57231370fb32 (patch) | |
tree | dac5d27c8664b55901e0e34b75e76f2db55701f5 /multimedia/handbrake/Makefile | |
parent | 8b4ae52e9d9691bd73c898bc6aaf6190ba3a12f3 (diff) | |
download | ports-91e3a31d40bad5d1bd72d209e67f57231370fb32.tar.gz ports-91e3a31d40bad5d1bd72d209e67f57231370fb32.zip |
Notes
Diffstat (limited to 'multimedia/handbrake/Makefile')
-rw-r--r-- | multimedia/handbrake/Makefile | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/multimedia/handbrake/Makefile b/multimedia/handbrake/Makefile index 09ceb2d9f995..f90d97b2828f 100644 --- a/multimedia/handbrake/Makefile +++ b/multimedia/handbrake/Makefile @@ -7,6 +7,7 @@ PORTNAME= handbrake PORTVERSION= 0.9.8 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= SF/${PORTNAME}/${PORTVERSION} \ http://download.handbrake.fr/handbrake/contrib/:contrib @@ -34,7 +35,7 @@ DISTFILES= HandBrake-${PORTVERSION}.tar.bz2 \ x264-r2146-bcd41db.tar.gz:contrib DIST_SUBDIR= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= dmarion@FreeBSD.org COMMENT= Versatile DVD ripper and video transcoder LICENSE= GPLv2 @@ -46,11 +47,12 @@ USE_AUTOTOOLS= libtool aclocal LIBTOOLFILES= configure USE_GMAKE= yes USE_PYTHON_BUILD= yes +WANT_GNOME= yes WRKSRC= ${WRKDIR}/HandBrake-${PORTVERSION} PLIST_FILES= bin/HandBrakeCLI -CONFIGURE_ARGS= --force --disable-gtk +CONFIGURE_ARGS= --force CONFIGURE_TARGET= build BUILD_WRKSRC= ${WRKSRC}/build @@ -59,15 +61,31 @@ ALL_TARGET= # NOPRECIOUSMAKEVARS= yes # for ffmpeg and x264 +OPTIONS_DEFINE= GUI +GUI_DESC= Build GTK+2 based GUI program +OPTIONS_DEFAULT= GUI + .include <bsd.port.pre.mk> -# Recent binutils are required to handle inline SSSE3 asm (in x264) -.if ${OSVERSION} < 802509 || ${OSVERSION} >= 900000 && ${OSVERSION} < 900033 +# Recent GNU binutils are required to handle inline SSSE3 asm (in x264), and +# to support --exclude-libs option for ld(1) when building GUI program +.if ${PORT_OPTIONS:MGUI} || ${OSVERSION} < 802509 || \ + ${OSVERSION} >= 900000 && ${OSVERSION} < 900033 BUILD_DEPENDS+= as:${PORTSDIR}/devel/binutils CONFIGURE_ENV= COMPILER_PATH=${LOCALBASE}/bin MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin .endif +.if ${PORT_OPTIONS:MGUI} +CONFIGURE_ARGS+= --disable-gtk-update-checks --disable-gst +LIB_DEPENDS+= dbus-glib-1:${PORTSDIR}/devel/dbus-glib \ + notify:${PORTSDIR}/devel/libnotify +USE_GNOME= intltool +PLIST_FILES+= bin/HandBrake +.else +CONFIGURE_ARGS+= --disable-gtk +.endif + run-autotools-aclocal: @${DO_NADA} @@ -113,5 +131,8 @@ post-patch: do-install: ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/HandBrakeCLI ${PREFIX}/bin +.if ${PORT_OPTIONS:MGUI} + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gtk/src/ghb ${PREFIX}/bin/HandBrake +.endif .include <bsd.port.post.mk> |