summaryrefslogtreecommitdiff
path: root/graphics/gd/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-28 20:02:56 +0000
committerjlam <jlam@pkgsrc.org>2001-06-28 20:02:56 +0000
commitb1ee4157e6283e7acd190c3b7c4addaddef66b35 (patch)
tree4ed2efe2581dfa8dce9a62e50b256792fd1ad2e4 /graphics/gd/Makefile
parentbdb1760985f67d661a6c6eac88394ce8424559fd (diff)
downloadpkgsrc-b1ee4157e6283e7acd190c3b7c4addaddef66b35.tar.gz
Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. Also
use REPLACE_PERL instead of patching to replace /usr/bin/perl.
Diffstat (limited to 'graphics/gd/Makefile')
-rw-r--r--graphics/gd/Makefile39
1 files changed, 15 insertions, 24 deletions
diff --git a/graphics/gd/Makefile b/graphics/gd/Makefile
index 7337d64c69a..f783f3b4138 100644
--- a/graphics/gd/Makefile
+++ b/graphics/gd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2001/06/14 06:36:50 kei Exp $
+# $NetBSD: Makefile,v 1.30 2001/06/28 20:02:56 jlam Exp $
# FreeBSD Id: Makefile,v 1.2 1997/02/14 07:55:45 asami Exp
#
@@ -10,24 +10,21 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.boutell.com/gd/
COMMENT= graphics library for fast PNG creation
-DEPENDS+= freetype-lib>=1.3.1:../../graphics/freetype-lib
-DEPENDS+= png>=1.0.11:../../graphics/png
-DEPENDS+= jpeg-*:../../graphics/jpeg
-
-USE_X11= YES
-USE_XPM= YES
-USE_LIBTOOL= YES
-
-NO_CONFIGURE= YES
+USE_BUILDLINK_ONLY= YES
+USE_X11= YES
+USE_LIBTOOL= YES
+REPLACE_PERL= bdftogd
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
-DEPENDS+= zlib-*:../../devel/zlib
-CPPFLAGS+= -I${LOCALBASE}/include # zlib.h
-MAKE_ENV+= EXTRA_LIBS="-lsocket -lnsl ${LOCALBASE}/lib/libz.a"
+MAKE_ENV+= EXTRA_LIBS="-lsocket -lnsl"
.endif
+CPPFLAGS+= -I${BUILDLINK_DIR}/include/freetype # freetype.h
+CPPFLAGS+= -I${BUILDLINK_DIR}/include/X11 # xpm.h
+CPPFLAGS+= -I${X11BASE}/include
+
# When the API changes and breaks binary-compatibility with the previous
# version, increment the MAJOR by 1 and reset the MINOR to 0. Otherwise,
# bump the MINOR when a new version comes out.
@@ -36,15 +33,9 @@ GD_MAJOR= 1
GD_MINOR= 9
MAKE_ENV+= GD_MAJOR="${GD_MAJOR}" GD_MINOR="${GD_MINOR}" COMPILER="${CC}"
-EVAL_PREFIX+= XPMDIR=xpm
-CPPFLAGS+= -I${LOCALBASE}/include/freetype # freetype.h
-CPPFLAGS+= -I${LOCALBASE}/include # png.h
-CPPFLAGS+= -I${XPMDIR}/include -I${XPMDIR}/include/X11 # xpm.h
-CPPFLAGS+= -I${X11BASE}/include
-
-post-patch:
- cd ${WRKSRC}; \
- ${MV} bdftogd bdftogd.orig; \
- ${SED} -e 's_@PREFIX@_${PREFIX}_' bdftogd.orig > bdftogd
-
+.include "../../devel/zlib/buildlink.mk"
+.include "../../graphics/freetype-lib/buildlink.mk"
+.include "../../graphics/jpeg/buildlink.mk"
+.include "../../graphics/png/buildlink.mk"
+.include "../../graphics/xpm/buildlink.mk"
.include "../../mk/bsd.pkg.mk"