From d55d988231746fcfda28e436566193fed35bc877 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Fri, 24 Aug 2012 07:25:16 +0000 Subject: [PATCH] Rename GUI option to X11 (to respect global OPTIONS_UNSET=X11 setting when building for e.g. headless servers). Suggested by: crees --- multimedia/handbrake/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/multimedia/handbrake/Makefile b/multimedia/handbrake/Makefile index f90d97b2828f..3ea0cdcdebe9 100644 --- a/multimedia/handbrake/Makefile +++ b/multimedia/handbrake/Makefile @@ -61,22 +61,22 @@ ALL_TARGET= # NOPRECIOUSMAKEVARS= yes # for ffmpeg and x264 -OPTIONS_DEFINE= GUI -GUI_DESC= Build GTK+2 based GUI program -OPTIONS_DEFAULT= GUI +OPTIONS_DEFINE= X11 +X11_DESC= Build GTK+2 based GUI program +OPTIONS_DEFAULT= X11 .include # 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 || \ +.if ${PORT_OPTIONS:MX11} || ${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} +.if ${PORT_OPTIONS:MX11} CONFIGURE_ARGS+= --disable-gtk-update-checks --disable-gst LIB_DEPENDS+= dbus-glib-1:${PORTSDIR}/devel/dbus-glib \ notify:${PORTSDIR}/devel/libnotify @@ -131,7 +131,7 @@ post-patch: do-install: ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/HandBrakeCLI ${PREFIX}/bin -.if ${PORT_OPTIONS:MGUI} +.if ${PORT_OPTIONS:MX11} ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/gtk/src/ghb ${PREFIX}/bin/HandBrake .endif