aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-06-28 14:27:25 +0800
committerdinoex <dinoex@FreeBSD.org>2013-06-28 14:27:25 +0800
commit646a00d86d5c747f2f3d74a01c0d72a8efacca24 (patch)
tree47ffbfb045a2eba0a32df4fe0b5464e2b458370d /graphics
parent18e238d7d8ff2484e4476a98e91510b2101ff26c (diff)
downloadfreebsd-ports-gnome-646a00d86d5c747f2f3d74a01c0d72a8efacca24.tar.gz
freebsd-ports-gnome-646a00d86d5c747f2f3d74a01c0d72a8efacca24.tar.zst
freebsd-ports-gnome-646a00d86d5c747f2f3d74a01c0d72a8efacca24.zip
- add option X11 (default off)
PR: 179929 Submitted by: Dmitry Marakasov - bump PORTREVISION because package has changed
Diffstat (limited to 'graphics')
-rw-r--r--graphics/giflib/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/giflib/Makefile b/graphics/giflib/Makefile
index 47233fb42796..3416e482e7bc 100644
--- a/graphics/giflib/Makefile
+++ b/graphics/giflib/Makefile
@@ -3,7 +3,7 @@
PORTNAME= giflib
PORTVERSION= 4.2.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-4.x
PKGNAMESUFFIX= ${NOX11SUFFIX}${PKGNAMESUFFIX2}
@@ -19,7 +19,7 @@ USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
-OPTIONS_DEFINE= DOCBOOK
+OPTIONS_DEFINE= DOCBOOK X11
DOCBOOK_DESC= Generate API documentation (requires DOCS)
.include <bsd.port.pre.mk>
@@ -32,14 +32,14 @@ PLIST_SUB+= WITH_DOCBOOK=''
PLIST_SUB+= WITH_DOCBOOK='@comment '
.endif
-.if defined(WITHOUT_X11)
-PLIST_SUB+= X11='@comment '
-CONFIGURE_ARGS+= --with-x=no
-NOX11SUFFIX= -nox11
-.else
+.if ${PORT_OPTIONS:MX11}
USE_XORG= sm x11
PLIST_SUB+= X11=''
CPPFLAGS+= -I${LOCALBASE}/include
+.else
+PLIST_SUB+= X11='@comment '
+CONFIGURE_ARGS+= --with-x=no
+NOX11SUFFIX= -nox11
.endif
post-patch: