diff options
author | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
commit | 39d7fb93432416d872ed34e0025741cc93068c06 (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /print/pdflib | |
parent | cce8b72ae5b66d3a54ac565ef8ac6780597301bc (diff) | |
download | pkgsrc-39d7fb93432416d872ed34e0025741cc93068c06.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'print/pdflib')
-rw-r--r-- | print/pdflib/Makefile | 9 | ||||
-rw-r--r-- | print/pdflib/Makefile.common | 4 |
2 files changed, 9 insertions, 4 deletions
diff --git a/print/pdflib/Makefile b/print/pdflib/Makefile index 9b138f357ef..b354414b120 100644 --- a/print/pdflib/Makefile +++ b/print/pdflib/Makefile @@ -1,4 +1,6 @@ -# $NetBSD: Makefile,v 1.24 2006/04/17 14:52:11 wiz Exp $ +# $NetBSD: Makefile,v 1.25 2008/06/12 02:14:43 joerg Exp $ + +PKG_DESTDIR_SUPPORT= user-destdir .include "Makefile.common" @@ -11,14 +13,15 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews BUILD_TARGET= pdflib DOCDIR= ${PREFIX}/share/doc/pdflib +INSTALLATION_DIRS+= ${DOCDIR} + post-install: - ${INSTALL_DATA_DIR} ${DOCDIR} cd ${WRKSRC}/doc; for file in \ PDFlib-license.pdf \ PDFlib-manual.pdf \ aladdin-license.pdf; \ do \ - ${INSTALL_DATA} $${file} ${DOCDIR}; \ + ${INSTALL_DATA} $${file} ${DESTDIR}${DOCDIR}; \ done .include "../../mk/bsd.pkg.mk" diff --git a/print/pdflib/Makefile.common b/print/pdflib/Makefile.common index b9c63ef4fdf..908fcd0e1a0 100644 --- a/print/pdflib/Makefile.common +++ b/print/pdflib/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.20 2008/01/16 04:48:07 tnn Exp $ +# $NetBSD: Makefile.common,v 1.21 2008/06/12 02:14:43 joerg Exp $ DISTNAME= pdflib-${PDFLIB_DIST_VERS} CATEGORIES= print @@ -41,5 +41,7 @@ SUBST_FILES.sed= configure pdflib-config.in SUBST_SED.sed= -e "s|^sed |${SED} |g" SUBST_SED.sed+= -e "s| sed | ${SED} |g" +INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} + .include "../../graphics/png/buildlink3.mk" .include "../../graphics/tiff/buildlink3.mk" |