1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Rename GUI option to X11 (to respect global OPTIONS_UNSET=X11 setting when

building for e.g. headless servers).

Suggested by:	crees
This commit is contained in:
Alexey Dokuchaev 2012-08-24 07:25:16 +00:00
parent d8ca24c8ab
commit d55d988231
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=303058

View File

@ -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 <bsd.port.pre.mk>
# 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