diff options
author | joerg <joerg> | 2007-11-08 20:03:21 +0000 |
---|---|---|
committer | joerg <joerg> | 2007-11-08 20:03:21 +0000 |
commit | 2a250582a3838e55bb23c75d56fd1f4aabd32bed (patch) | |
tree | 82e39f7a42cebf3ceeb9d9e3b925bf59484f43f0 /print | |
parent | 73f61e4b4e3f4afecff6fbff651b21d051b4dedd (diff) | |
download | pkgsrc-2a250582a3838e55bb23c75d56fd1f4aabd32bed.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'print')
-rw-r--r-- | print/cups/Makefile | 19 |
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" |