summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-26 16:32:37 +0000
committerjlam <jlam@pkgsrc.org>2001-05-26 16:32:37 +0000
commit86363b2d356ee658435d52858cf25e0069126da5 (patch)
tree1b1dd1106fed10b74fa7dba55d4b89ffbfb21112 /print
parent2ac54684e272051e45f04a6c7322015a4e5ab132 (diff)
downloadpkgsrc-86363b2d356ee658435d52858cf25e0069126da5.tar.gz
Use buildlink.mk files to get dependencies for png, jpeg, and tiff.
Diffstat (limited to 'print')
-rw-r--r--print/cups/Makefile25
1 files changed, 12 insertions, 13 deletions
diff --git a/print/cups/Makefile b/print/cups/Makefile
index 016409eac83..722bd352ff5 100644
--- a/print/cups/Makefile
+++ b/print/cups/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2001/05/24 03:17:18 jlam Exp $
+# $NetBSD: Makefile,v 1.30 2001/05/26 16:32:37 jlam Exp $
DISTNAME= cups-${VERS}-source
PKGNAME= cups-${VERS}
@@ -19,10 +19,6 @@ COMMENT= Common UNIX Printing System
CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]*
-DEPENDS+= jpeg-6b:../../graphics/jpeg
-DEPENDS+= png>=1.0.11:../../graphics/png
-DEPENDS+= tiff-*:../../graphics/tiff
-
USE_GMAKE= # defined
USE_LIBTOOL= # defined
GNU_CONFIGURE= # defined
@@ -34,17 +30,14 @@ CONFIGURE_ARGS+= --enable-libtool-unsupported="${LIBTOOL}"
USE_SSL= # defined
CONFIGURE_ARGS+= --enable-ssl
-CFLAGS+= -I${LOCALBASE}/include
-CXXFLAGS+= -I${LOCALBASE}/include
-
.include "../../mk/bsd.prefs.mk"
-
-.if (${OPSYS} == "SunOS")
-DEPENDS+= zlib>=1.1.3:../../devel/zlib
-.endif
+.include "../../devel/zlib/buildlink.mk"
+.include "../../graphics/jpeg/buildlink.mk"
+.include "../../graphics/png/buildlink.mk"
+.include "../../graphics/tiff/buildlink.mk"
.if defined(USE_PAM)
-DEPENDS+= PAM-*:../../security/PAM
+.include "../../security/PAM/buildlink.mk"
CONFIGURE_ARGS+= --enable-pam
PLIST_SRC= ${PKGDIR}/PLIST.pam
PLIST_SRC+= ${PKGDIR}/PLIST
@@ -53,6 +46,10 @@ CONFIGURE_ARGS+= --disable-pam
PLIST_SRC= ${PKGDIR}/PLIST
.endif
+CFLAGS+= -I${BUILDLINK_INCDIR}
+CXXFLAGS+= -I${BUILDLINK_INCDIR}
+LDFLAGS+= -L${BUILDLINK_LIBDIR}
+
# CUPS_USER username of the CUPS administrator
# CUPS_GROUP group of the CUPS administrator
#
@@ -84,6 +81,8 @@ EGDIR= ${PREFIX}/share/examples/cups
post-extract:
cd ${WRKSRC}/conf; ${MV} -f cupsd.conf cupsd.conf.in
+pre-configure: ${BUILDLINK_TARGETS}
+
post-build:
${SED} -e "s|@CUPS_USER@|${CUPS_USER}|g" \
-e "s|@CUPS_GROUP@|${CUPS_GROUP}|g" \