aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/giflib/Makefile12
-rw-r--r--graphics/giflib/pkg-plist2
-rw-r--r--graphics/libungif/Makefile12
-rw-r--r--graphics/libungif/pkg-plist2
4 files changed, 22 insertions, 6 deletions
diff --git a/graphics/giflib/Makefile b/graphics/giflib/Makefile
index 0ea612834d2e..5186e533a1d9 100644
--- a/graphics/giflib/Makefile
+++ b/graphics/giflib/Makefile
@@ -12,10 +12,18 @@ MASTER_SITES= ftp://prtr-13.ucsc.edu/pub/libungif/
MAINTAINER= ports@FreeBSD.org
-USE_XLIB= yes
-USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
+.ifdef (NO_X)
+PLIST_SUB+= X11='@comment '
+CONFIGURE_ARGS+=--with-x=no
+PKGNAMESUFFIX= -nox11
+.else
+USE_XLIB= yes
+PLIST_SUB+= X11=''
+.endif
+
DOCDIR= ${PREFIX}/share/doc/libungif
post-install:
diff --git a/graphics/giflib/pkg-plist b/graphics/giflib/pkg-plist
index cce7a95c3cd8..8885bbf3f4ad 100644
--- a/graphics/giflib/pkg-plist
+++ b/graphics/giflib/pkg-plist
@@ -1,7 +1,7 @@
bin/gif2epsn
bin/gif2ps
bin/gif2rgb
-bin/gif2x11
+%%X11%%bin/gif2x11
bin/gifasm
bin/gifbg
bin/gifburst
diff --git a/graphics/libungif/Makefile b/graphics/libungif/Makefile
index 0ea612834d2e..5186e533a1d9 100644
--- a/graphics/libungif/Makefile
+++ b/graphics/libungif/Makefile
@@ -12,10 +12,18 @@ MASTER_SITES= ftp://prtr-13.ucsc.edu/pub/libungif/
MAINTAINER= ports@FreeBSD.org
-USE_XLIB= yes
-USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
+.ifdef (NO_X)
+PLIST_SUB+= X11='@comment '
+CONFIGURE_ARGS+=--with-x=no
+PKGNAMESUFFIX= -nox11
+.else
+USE_XLIB= yes
+PLIST_SUB+= X11=''
+.endif
+
DOCDIR= ${PREFIX}/share/doc/libungif
post-install:
diff --git a/graphics/libungif/pkg-plist b/graphics/libungif/pkg-plist
index cce7a95c3cd8..8885bbf3f4ad 100644
--- a/graphics/libungif/pkg-plist
+++ b/graphics/libungif/pkg-plist
@@ -1,7 +1,7 @@
bin/gif2epsn
bin/gif2ps
bin/gif2rgb
-bin/gif2x11
+%%X11%%bin/gif2x11
bin/gifasm
bin/gifbg
bin/gifburst