summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-28 03:52:12 +0000
committerjlam <jlam@pkgsrc.org>2001-05-28 03:52:12 +0000
commita14c03cec17dfd59c4a92595ef32a08d1822ed71 (patch)
treeb4ef3631cf1aa956df20d3ce1a4d802be6c5ff49 /print
parentd471faaa5a765d66036f8ae51788e022639396d1 (diff)
downloadpkgsrc-a14c03cec17dfd59c4a92595ef32a08d1822ed71.tar.gz
Use buildlink.mk files to get dependencies and to find libraries and
headers for png and ja-vflib-lib.
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript-nox11/Makefile.common12
1 files changed, 8 insertions, 4 deletions
diff --git a/print/ghostscript-nox11/Makefile.common b/print/ghostscript-nox11/Makefile.common
index d390e4880a3..fd54aca587e 100644
--- a/print/ghostscript-nox11/Makefile.common
+++ b/print/ghostscript-nox11/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.13 2001/05/22 09:33:32 wiz Exp $
+# $NetBSD: Makefile.common,v 1.14 2001/05/28 03:52:12 jlam Exp $
DISTNAME= ghostscript-${GS_VERS}
GS_VERS= 6.01
@@ -11,9 +11,7 @@ MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.cs.wisc.edu/~ghost/index.html
DEPENDS+= ghostscript-fonts-6.0:../../fonts/ghostscript-fonts
-DEPENDS+= ja-vflib-lib-2.*:../../japanese/vflib-lib
DEPENDS+= watanabe-vfont-19930318:../../fonts/watanabe_vfont
-DEPENDS+= png>=1.0.11:../../graphics/png
GS_SOURCES= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= ${GS_SOURCES}
@@ -99,6 +97,8 @@ MAKEFILE= src/unix-gcc.mak
ALL_TARGET= std
.include "../../mk/bsd.prefs.mk"
+.include "../../graphics/png/buildlink.mk"
+.include "../../japanese/vflib-lib/buildlink.mk"
# arm32 compiler has an optimizer problem
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "arm32"
@@ -109,9 +109,11 @@ CFLAGS=
CFLAGS+= -DA4
.endif
-CFLAGS+= -I${LOCALBASE}/include # png.h, VF.h
+CFLAGS+= -I${BUILDLINK_INCDIR}
CFLAGS+= -DHAVE_MKSTEMP=1
+LDFLAGS+= -L${BUILDLINK_LIBDIR}
+
.if ${OPSYS} == "SunOS"
LDFLAGS+= -L${LOCALBASE}/bsd/lib -Wl,-R${LOCALBASE}/bsd/lib
.endif
@@ -177,6 +179,8 @@ post-patch:
${SED} -e "s|epsimage\.src|${GSINST_DIR}/lib/escp_24.src|g" \
${WRKDIR}/dmp_site.ps.bak > ${WRKDIR}/dmp_site.ps
+pre-configure: ${BUILDLINK_TARGETS}
+
do-configure:
#
# Append build rules for extra drivers to contrib.mak