diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-16 19:50:57 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-16 19:50:57 +0000 |
commit | 0f5b5101f41b5f885ac5df67cd3264f2b7708f76 (patch) | |
tree | 99320549cecfb7f8c85c874987b3ac016e76f4b9 | |
parent | 35b12a3c8030bff3dc854236a2c67bb5afc570cb (diff) | |
download | pkgsrc-0f5b5101f41b5f885ac5df67cd3264f2b7708f76.tar.gz |
Convrt to use buildlink.mk.
-rw-r--r-- | audio/esound/Makefile | 19 | ||||
-rw-r--r-- | graphics/netpbm/Makefile | 8 | ||||
-rw-r--r-- | graphics/netpbm/distinfo | 4 | ||||
-rw-r--r-- | graphics/netpbm/patches/patch-aa | 18 | ||||
-rw-r--r-- | x11/gtk/Makefile | 21 |
5 files changed, 47 insertions, 23 deletions
diff --git a/audio/esound/Makefile b/audio/esound/Makefile index c2a5f34730e..f82c3775dc2 100644 --- a/audio/esound/Makefile +++ b/audio/esound/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2001/04/06 22:41:37 rh Exp $ +# $NetBSD: Makefile,v 1.20 2001/06/16 19:50:57 jlam Exp $ DISTNAME= esound-0.2.22 CATEGORIES= audio @@ -8,10 +8,23 @@ MAINTAINER= root@garbled.net HOMEPAGE= http://www.tux.org/~ricdude/EsounD.html COMMENT= the Enlightened sound daemon -DEPENDS+= libaudiofile-*:../../audio/libaudiofile - GNU_CONFIGURE= YES USE_LIBTOOL= YES LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig +USE_CONFIG_WRAPPER= YES + +.include "../../audio/libaudiofile/buildlink.mk" +.include "../../devel/libgetopt/buildlink.mk" + +# Fix esd-config by removing buildlink directory references. +post-build: + @cd ${WRKSRC}; \ + ${MV} -f esd-config esd-config.fixme; \ + ${SED} -e "/^audiofile/s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \ + -e "/^audiofile/s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g" \ + esd-config.fixme > esd-config; \ + ${RM} -f esd-config.fixme; \ + ${CHMOD} +x esd-config + .include "../../mk/bsd.pkg.mk" diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile index 2fcc1c8b20e..84fb5d33e0e 100644 --- a/graphics/netpbm/Makefile +++ b/graphics/netpbm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.55 2001/05/22 09:32:22 wiz Exp $ +# $NetBSD: Makefile,v 1.56 2001/06/16 19:50:57 jlam Exp $ DISTNAME= netpbm-9.7 CATEGORIES= graphics @@ -9,9 +9,6 @@ MAINTAINER= tron@netbsd.org HOMEPAGE= http://netpbm.sourceforge.net/ COMMENT= toolkit for conversion of images between different formats -DEPENDS+= tiff>=3.5.4:../../graphics/tiff -DEPENDS+= png>=1.0.11:../../graphics/png - USE_GMAKE= yes USE_LIBTOOL= yes @@ -25,6 +22,9 @@ MAKEFILE= GNUmakefile CFLAGS= .endif +.include "../../graphics/png/buildlink.mk" +.include "../../graphics/tiff/buildlink.mk" + .if (${OPSYS} == SunOS) MAKE_ENV+= NETWORKLD="-lsocket -lnsl" .else diff --git a/graphics/netpbm/distinfo b/graphics/netpbm/distinfo index ef046a4b9a4..47bd394ccbd 100644 --- a/graphics/netpbm/distinfo +++ b/graphics/netpbm/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.2 2001/04/21 09:54:21 wiz Exp $ +$NetBSD: distinfo,v 1.3 2001/06/16 19:50:57 jlam Exp $ SHA1 (netpbm-9.7.tgz) = 81b42fc267970777b0062cc01edb09907930a1c7 Size (netpbm-9.7.tgz) = 1942307 bytes -SHA1 (patch-aa) = a3e6ae9cc8d7aa3457318bacc18ee329ef114498 +SHA1 (patch-aa) = 2f8010fd5b14be20ca5ba3187a59c43a14f99cfd SHA1 (patch-ab) = abc5ee8778d84a15d958014ed12a0fa56e649056 SHA1 (patch-ac) = c61bdaa9b7516b81ad02ab55a9113bac8fe99b62 SHA1 (patch-ad) = 2bb69d6408b76707d8501de88bb27df6da1fc0c7 diff --git a/graphics/netpbm/patches/patch-aa b/graphics/netpbm/patches/patch-aa index 0a194df334e..7f29a6dc58b 100644 --- a/graphics/netpbm/patches/patch-aa +++ b/graphics/netpbm/patches/patch-aa @@ -1,7 +1,7 @@ -$NetBSD: patch-aa,v 1.12 2001/01/14 13:17:55 tron Exp $ +$NetBSD: patch-aa,v 1.13 2001/06/16 19:50:57 jlam Exp $ ---- Makefile.config~ Thu Jun 22 19:48:03 2000 -+++ Makefile.config Sun Jan 14 14:09:14 2001 +--- Makefile.config.orig Thu Jun 22 13:48:03 2000 ++++ Makefile.config Fri Jun 15 17:42:45 2001 @@ -29,8 +29,8 @@ # # For cygwin, only static libraries work, so set STATICLIB = Y . @@ -75,8 +75,8 @@ $NetBSD: patch-aa,v 1.12 2001/01/14 13:17:55 tron Exp $ #NetBSD: -#TIFFHDR_DIR = $(LOCALBASE)/include -#TIFFLIB_DIR = $(LOCALBASE)/lib -+TIFFHDR_DIR = $(LOCALBASE)/include -+TIFFLIB_DIR = $(LOCALBASE)/lib ++TIFFHDR_DIR = ${BUILDLINK_DIR}/include ++TIFFLIB_DIR = ${BUILDLINK_DIR}/lib # OSF, Tru64: #TIFFHDR_DIR = /usr/local1/DEC/include #TIFFLIB_DIR = /usr/local1/DEC/lib @@ -91,8 +91,8 @@ $NetBSD: patch-aa,v 1.12 2001/01/14 13:17:55 tron Exp $ # Netbsd: -#JPEGLIB_DIR = ${LOCALBASE}/lib -#JPEGHDR_DIR = ${LOCALBASE}/include -+JPEGLIB_DIR = ${LOCALBASE}/lib -+JPEGHDR_DIR = ${LOCALBASE}/include ++JPEGLIB_DIR = ${BUILDLINK_DIR}/lib ++JPEGHDR_DIR = ${BUILDLINK_DIR}/include # OSF, Tru64: #JPEGLIB_DIR = /usr/local1/DEC/lib #JPEGHDR_DIR = /usr/local1/DEC/include @@ -107,8 +107,8 @@ $NetBSD: patch-aa,v 1.12 2001/01/14 13:17:55 tron Exp $ # NetBSD: -#PNGLIB_DIR = $(LOCALBASE)/lib -#PNGHDR_DIR = $(LOCALBASE)/include -+PNGLIB_DIR = $(LOCALBASE)/lib -+PNGHDR_DIR = $(LOCALBASE)/include ++PNGLIB_DIR = ${BUILDLINK_LIBDIR}/lib ++PNGHDR_DIR = ${BUILDLINK_LIBDIR}/include # OSF/Tru64: #PNGLIB_DIR = /usr/local1/DEC/lib #PNGHDR_DIR = /usr/local1/DEC/include diff --git a/x11/gtk/Makefile b/x11/gtk/Makefile index 90151661559..0d82c6e4dfc 100644 --- a/x11/gtk/Makefile +++ b/x11/gtk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.58 2001/06/11 06:34:58 jlam Exp $ +# $NetBSD: Makefile,v 1.59 2001/06/16 19:50:58 jlam Exp $ DISTNAME= gtk+-1.2.10 CATEGORIES= x11 @@ -11,15 +11,15 @@ MAINTAINER= tron@netbsd.org HOMEPAGE= http://www.gtk.org/ COMMENT= Gimp toolkit. Libraries for building X11 user interfaces -DEPENDS+= glib>=1.2.8:../../devel/glib BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5 BUILD_USES_MSGFMT= yes -USE_LIBINTL= yes +#USE_LIBINTL= yes USE_LIBTOOL= yes LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig USE_X11BASE= yes USE_GMAKE= yes +USE_CONFIG_WRAPPER= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-xinput=xfree @@ -27,8 +27,9 @@ CONFIGURE_ENV+= X_LDFLAGS="${X_LDFLAGS}" INFO_FILES= gdk.info gtk.info -CPPFLAGS= -I${LOCALBASE}/include # libintl.h -LDFLAGS= -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib # -lintl +.include "../../devel/gettext-lib/buildlink.mk" +.include "../../devel/glib/buildlink.mk" + MAKE_ENV+= PKGLOCALEDIR="${PKGLOCALEDIR}" PLIST_SUBST+= LOCALBASE=${LOCALBASE} @@ -37,6 +38,16 @@ PLIST_SUBST+= LOCALBASE=${LOCALBASE} # X_LDFLAGS= -Wl,-R${X11BASE}/lib -L${X11BASE}/lib +# Fix gtk-config by removing buildlink directory references. +post-build: + @cd ${WRKSRC}; \ + ${MV} -f gtk-config gtk-config.fixme; \ + ${SED} -e "/^glib/s|-I${BUILDLINK_DIR}/|-I${LOCALBASE}/|g" \ + -e "/^glib/s|-L${BUILDLINK_DIR}/|-L${LOCALBASE}/|g" \ + gtk-config.fixme > gtk-config; \ + ${RM} -f gtk-config.fixme; \ + ${CHMOD} +x gtk-config + post-install: ${TEST} ${PREFIX} = ${LOCALBASE} || \ ${LN} -fs ${PREFIX}/share/aclocal/gtk.m4 \ |