summaryrefslogtreecommitdiff
path: root/graphics/gd2
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-08-24 14:08:11 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-08-24 14:08:11 +0000
commit63a15f29709b8cfe1c93c22c562af999417578fe (patch)
tree6d4cca84255b7377e4d778a79c8cc7003ef95536 /graphics/gd2
parentLine 737 of the configure.in file should have a no instead of a yes for use_g... (diff)
Conditionalize the dependency on bzip2.
De-portlint a bit.
Notes
Notes: svn path=/head/; revision=46790
Diffstat (limited to 'graphics/gd2')
-rw-r--r--graphics/gd2/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/graphics/gd2/Makefile b/graphics/gd2/Makefile
index a6c514e9e9bd..321305c1c151 100644
--- a/graphics/gd2/Makefile
+++ b/graphics/gd2/Makefile
@@ -19,12 +19,15 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER?= ports@FreeBSD.org
-USE_FREETYPE2= yes
-BUILD_DEPENDS= bzip2:${PORTSDIR}/archivers/bzip2
+.if !exists(/usr/bin/bzip2)
+BUILD_DEPENDS+= bzip2:${PORTSDIR}/archivers/bzip2
+.endif
LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg \
freetype:${PORTSDIR}/print/freetype2
+USE_FREETYPE2= yes
+
.if defined(WITH_X11)
USE_XLIB= yes
USE_XPM= yes
@@ -32,7 +35,7 @@ USE_XPM= yes
INSTALLS_SHLIB= yes
-post-extract:
+post-extract:
bzip2 -d < ${_DISTDIR}/gd_gif_in.c.bz2 > ${WRKSRC}/gd_gif_in.c
pre-everything: