summaryrefslogtreecommitdiff
path: root/devel/sgb
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2009-03-04 16:54:26 +0000
committerminskim <minskim@pkgsrc.org>2009-03-04 16:54:26 +0000
commit937812778b4112bffa7b65f8999fee786e85d328 (patch)
tree92d95282c92efb79a7b90bd5fe2433fb2e3b9ffe /devel/sgb
parent9ccdee3f0dcb4413d13078ae32a8aa65fa66d67b (diff)
downloadpkgsrc-937812778b4112bffa7b65f8999fee786e85d328.tar.gz
Add PKG_DESTDIR_SUPPORT.
Diffstat (limited to 'devel/sgb')
-rw-r--r--devel/sgb/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/devel/sgb/Makefile b/devel/sgb/Makefile
index bc602d64633..f27027fc88d 100644
--- a/devel/sgb/Makefile
+++ b/devel/sgb/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2009/01/04 23:14:00 dbj Exp $
+# $NetBSD: Makefile,v 1.3 2009/03/04 16:54:26 minskim Exp $
DISTNAME= sgb-2007-03.28
PKGNAME= sgb-20070328
@@ -11,6 +11,8 @@ COMMENT= The Stanford GraphBase
DEPENDS+= teTeX-bin-[0-9]*:../../print/teTeX3-bin
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LIBTOOL= yes
WRKSRC= ${WRKDIR}
@@ -21,12 +23,12 @@ SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= Makefile
-SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths= -e 's,@PREFIX@,$${DESTDIR}${PREFIX},g'
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sgb
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/sgb
.for f in abstract.dvi README ERRATA
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/sgb
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/sgb
.endfor
.include "../../mk/bsd.pkg.mk"