From ba171a91fab519f587b027c1a2888cb6e3fce049 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 12 Jun 2008 02:14:13 +0000 Subject: Add DESTDIR support. --- graphics/pstoedit/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'graphics/pstoedit') diff --git a/graphics/pstoedit/Makefile b/graphics/pstoedit/Makefile index 156c72e8875..9ac6f119388 100644 --- a/graphics/pstoedit/Makefile +++ b/graphics/pstoedit/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2007/02/02 19:20:21 joerg Exp $ +# $NetBSD: Makefile,v 1.37 2008/06/12 02:14:32 joerg Exp $ DISTNAME= pstoedit-3.41 PKGREVISION= 2 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.pstoedit.net/ COMMENT= Convert PostScript / PDF into various vector graphic formats +PKG_DESTDIR_SUPPORT= user-destdir + RESTRICTED?= "The author writes: If you include this program on a CDROM, please send me a copy of the CD, or if it goes with a book, of the book." NO_SRC_ON_CDROM= ${RESTRICTED} NO_BIN_ON_CDROM= ${RESTRICTED} @@ -31,13 +33,13 @@ DOCDIR= ${PREFIX}/share/doc/pstoedit HTMLDIR= ${PREFIX}/share/doc/html/pstoedit DOCSRC= ${WRKSRC}/doc +INSTALLATION_DIRS= ${DOCDIR} ${HTMLDIR} + post-install: - ${INSTALL_DATA_DIR} ${DOCDIR} - ${INSTALL_DATA_DIR} ${HTMLDIR} for f in ${DOCSRC}/*.htm; do \ - ${INSTALL_DATA} $${f} ${HTMLDIR}; \ + ${INSTALL_DATA} $${f} ${DESTDIR}${HTMLDIR}; \ done - ${INSTALL_DATA} ${DOCSRC}/readme.txt ${DOCDIR} + ${INSTALL_DATA} ${DOCSRC}/readme.txt ${DESTDIR}${DOCDIR} .include "../../graphics/plotutils/buildlink3.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3