summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-11-08 20:03:21 +0000
committerjoerg <joerg@pkgsrc.org>2007-11-08 20:03:21 +0000
commitc5a62d141a0b28edb03bc91711518e8c69d6f82d (patch)
tree82e39f7a42cebf3ceeb9d9e3b925bf59484f43f0 /print
parentc655cc20706e1861e9e3b20f3f229ea62d982dc1 (diff)
downloadpkgsrc-c5a62d141a0b28edb03bc91711518e8c69d6f82d.tar.gz
Add DESTDIR support.
Diffstat (limited to 'print')
-rw-r--r--print/cups/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/print/cups/Makefile b/print/cups/Makefile
index 059fa25d4ac..76329507e0e 100644
--- a/print/cups/Makefile
+++ b/print/cups/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.128 2007/11/05 20:16:19 adrianp Exp $
+# $NetBSD: Makefile,v 1.129 2007/11/08 20:03:21 joerg Exp $
#
# The CUPS author is very good about taking back changes into the main
# CUPS distribution. The correct place to send patches or bug-fixes is:
@@ -24,6 +24,8 @@ MAINTAINER= jlam@pkgsrc.org
HOMEPAGE= http://www.cups.org/
COMMENT= Common UNIX Printing System
+PKG_DESTDIR_SUPPORT= user-destdir
+
CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]*
#PKG_INSTALLATION_TYPES= overwrite pkgviews
@@ -143,6 +145,9 @@ SUBST_MESSAGE.rpathfix= Adding rpath to cups-config.
SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${LOCALBASE}/lib|g'
SUBST_STAGE.rpathfix= post-patch
+INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}
+INSTALL_ENV+= DSTROOT=${DESTDIR:Q}
+
pre-configure:
cd ${WRKSRC} && aclocal && autoconf
@@ -150,22 +155,22 @@ post-extract:
${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam
post-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
- for file in LICENSE.txt README.txt; do \
- ${INSTALL_DATA} ${WRKSRC}/$${file} ${DOCDIR}/$${file}; \
+ for file in LICENSE.txt README.txt; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${file} \
+ ${DESTDIR}${DOCDIR}/$${file}; \
done
- ${INSTALL_DATA_DIR} ${EGDIR}
cd ${WRKSRC}/conf; for file in *.conf mime.*; do \
case $${file} in \
pam.conf) \
;; \
*) \
- ${INSTALL_DATA} $${file} ${EGDIR}/$${file}; \
+ ${INSTALL_DATA} $${file} \
+ ${DESTDIR}${EGDIR}/$${file}; \
;; \
esac; \
done
.if !empty(PKG_OPTIONS:Mpam)
- ${INSTALL_DATA} ${WRKDIR}/cups.pam ${EGDIR}
+ ${INSTALL_DATA} ${WRKDIR}/cups.pam ${DESTDIR}${EGDIR}
.endif
.include "../../mk/bsd.pkg.mk"