pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7f21e78e8cf6
branches:  trunk
changeset: 570244:7f21e78e8cf6
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jan 27 13:33:02 2010 +0000

description:
DESTDIR support.

diffstat:

 print/hpijs/Makefile |  18 +++++++++---------
 print/ijs/Makefile   |   9 ++++++---
 2 files changed, 15 insertions(+), 12 deletions(-)

diffs (71 lines):

diff -r 3ef9c92e2d4e -r 7f21e78e8cf6 print/hpijs/Makefile
--- a/print/hpijs/Makefile      Wed Jan 27 13:21:58 2010 +0000
+++ b/print/hpijs/Makefile      Wed Jan 27 13:33:02 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2010/01/18 09:59:22 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2010/01/27 13:42:20 joerg Exp $
 
 DISTNAME=      hpijs-2.1.4
 PKGREVISION=   2
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://hpinkjet.sourceforge.net/
 COMMENT=       HP inkjet printer driver server
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 CONFLICTS=     ghostscript<=6.01nb4 ghostscript-nox11<=6.01nb4
 
 USE_LANGUAGES=         c c++
@@ -17,16 +19,14 @@
 
 USE_TOOLS+=            gzip
 ONLY_FOR_COMPILER=     gcc
-INSTALLATION_DIRS=     bin
+INSTALLATION_DIRS=     bin share/ppd share/doc/html/hpijs
 
 do-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/ppd
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/hpijs
-       cd ${WRKSRC} && ${CP} hpijs ${PREFIX}/bin/hpijs
-       cd ${WRKSRC} && ${CP} hpijs_readme.html gs_hpijs.png \
-                ${PREFIX}/share/doc/html/hpijs/
-       cd ${WRKSRC} && ${CP} ppd/HP* ${PREFIX}/share/ppd/
-       ${GZIP_CMD} ${PREFIX}/share/ppd/HP*.ppd
+       ${INSTALL_PROGRAM} ${WRKSRC}/hpijs ${DESTDIR}${PREFIX}/bin/hpijs
+       cd ${WRKSRC} && ${INSTALL_DATA} hpijs_readme.html gs_hpijs.png \
+                ${DESTDIR}${PREFIX}/share/doc/html/hpijs/
+       ${INSTALL_DATA} ${WRKSRC}/ppd/HP* ${DESTDIR}${PREFIX}/share/ppd/
+       ${GZIP_CMD} ${DESTDIR}${PREFIX}/share/ppd/HP*.ppd
 
 .include "../../graphics/jpeg/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 3ef9c92e2d4e -r 7f21e78e8cf6 print/ijs/Makefile
--- a/print/ijs/Makefile        Wed Jan 27 13:21:58 2010 +0000
+++ b/print/ijs/Makefile        Wed Jan 27 13:33:02 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/07/07 19:01:43 drochner Exp $
+# $NetBSD: Makefile,v 1.16 2010/01/27 13:33:02 joerg Exp $
 
 DISTNAME=      ijs-0.35
 CATEGORIES=    print
@@ -8,6 +8,8 @@
 HOMEPAGE=      http://www.linuxprinting.org/ijs/
 COMMENT=       Protocol library for raster page transmission
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_TOOLS+=            gmake
 USE_LIBTOOL=           yes
 GNU_CONFIGURE=         yes
@@ -17,8 +19,9 @@
 MAKE_ENV+=             IJS_VERSION_INFO="0:0"
 PKGCONFIG_OVERRIDE=    ijs.pc.in
 
+INSTALLATION_DIRS=     share/doc/ijs
+
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ijs
-       ${INSTALL_DATA} ${WRKSRC}/ijs_spec.pdf ${PREFIX}/share/doc/ijs
+       ${INSTALL_DATA} ${WRKSRC}/ijs_spec.pdf ${DESTDIR}${PREFIX}/share/doc/ijs
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index