diff options
Diffstat (limited to 'graphics/gd')
-rw-r--r-- | graphics/gd/Makefile | 21 | ||||
-rw-r--r-- | graphics/gd/buildlink2.mk | 25 |
2 files changed, 36 insertions, 10 deletions
diff --git a/graphics/gd/Makefile b/graphics/gd/Makefile index 5a2607cf6e0..760536fba2e 100644 --- a/graphics/gd/Makefile +++ b/graphics/gd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.35 2002/03/13 17:37:06 fredb Exp $ +# $NetBSD: Makefile,v 1.36 2002/08/25 18:39:02 jlam Exp $ # DISTNAME= gd-1.8.4 @@ -10,8 +10,9 @@ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.boutell.com/gd/ COMMENT= graphics library for fast PNG creation -USE_BUILDLINK_ONLY= YES +USE_BUILDLINK2= YES USE_LIBTOOL= YES +USE_X11= YES REPLACE_PERL= bdftogd .include "../../mk/bsd.prefs.mk" @@ -20,8 +21,8 @@ REPLACE_PERL= bdftogd 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${BUILDLINK_PREFIX.freetype}/include/freetype # freetype.h +CPPFLAGS+= -I${BUILDLINK_PREFIX.xpm}/include/X11 # xpm.h # When the API changes and breaks binary-compatibility with the previous # version, increment the MAJOR by 1 and reset the MINOR to 0. Otherwise, @@ -31,10 +32,10 @@ GD_MAJOR= 1 GD_MINOR= 9 MAKE_ENV+= GD_MAJOR="${GD_MAJOR}" GD_MINOR="${GD_MINOR}" COMPILER="${CC}" -.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/x11.buildlink.mk" +.include "../../devel/zlib/buildlink2.mk" +.include "../../graphics/freetype-lib/buildlink2.mk" +.include "../../graphics/jpeg/buildlink2.mk" +.include "../../graphics/png/buildlink2.mk" +.include "../../graphics/xpm/buildlink2.mk" + .include "../../mk/bsd.pkg.mk" diff --git a/graphics/gd/buildlink2.mk b/graphics/gd/buildlink2.mk new file mode 100644 index 00000000000..7338ae1529d --- /dev/null +++ b/graphics/gd/buildlink2.mk @@ -0,0 +1,25 @@ +# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:39:02 jlam Exp $ + +.if !defined(GD_BUILDLINK2_MK) +GD_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= gd +BUILDLINK_DEPENDS.gd?= gd>=1.8.4nb1 +BUILDLINK_PKGSRCDIR.gd?= ../../graphics/gd + +EVAL_PREFIX+= BUILDLINK_PREFIX.gd=gd +BUILDLINK_PREFIX.gd_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.gd= include/gd*.h +BUILDLINK_FILES.gd+= lib/libgd.* + +.include "../../devel/zlib/buildlink2.mk" +.include "../../graphics/freetype-lib/buildlink2.mk" +.include "../../graphics/jpeg/buildlink2.mk" +.include "../../graphics/png/buildlink2.mk" +.include "../../graphics/xpm/buildlink2.mk" + +BUILDLINK_TARGETS+= gd-buildlink + +gd-buildlink: _BUILDLINK_USE + +.endif # GD_BUILDLINK2_MK |