summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorheinz <heinz>2007-05-28 23:18:52 +0000
committerheinz <heinz>2007-05-28 23:18:52 +0000
commit4a9808e572ffe566baf0901f96865f09dfee4480 (patch)
tree50479ada062f47d60d1a11d80249fa0c719279d1 /graphics
parent96a8b768cd78cf1c4e9658f8aaa30e29032f2d27 (diff)
downloadpkgsrc-4a9808e572ffe566baf0901f96865f09dfee4480.tar.gz
Added support for installation to DESTDIR. Approved by Min Sik Kim.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/ps2eps/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/graphics/ps2eps/Makefile b/graphics/ps2eps/Makefile
index be6cb90223d..3bae5bd854a 100644
--- a/graphics/ps2eps/Makefile
+++ b/graphics/ps2eps/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/04/08 22:55:40 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2007/05/28 23:18:52 heinz Exp $
DISTNAME= ps2eps-1.58
CATEGORIES= graphics
@@ -9,6 +9,8 @@ MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://www.tm.uka.de/~bless/ps2eps
COMMENT= Tool for generating EPS Format files from one-page PS documents
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= perl:run
WRKSRC= ${WRKDIR}/ps2eps
@@ -20,9 +22,9 @@ do-build:
cd ${WRKSRC:Q}/src/C && ${CC} ${CFLAGS} -o bbox bbox.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC:Q}/src/C/bbox ${PREFIX:Q}/bin
- ${INSTALL_SCRIPT} ${WRKSRC:Q}/bin/ps2eps ${PREFIX:Q}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC:Q}/src/C/bbox ${DESTDIR:Q}${PREFIX:Q}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC:Q}/bin/ps2eps ${DESTDIR:Q}${PREFIX:Q}/bin
${INSTALL_MAN} ${WRKSRC:Q}/doc/man/man1/*.1 \
- ${PREFIX:Q}/${PKGMANDIR:Q}/man1
+ ${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR:Q}/man1
.include "../../mk/bsd.pkg.mk"