pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/sgb Add PKG_DESTDIR_SUPPORT.
details: https://anonhg.NetBSD.org/pkgsrc/rev/09075764cf6a
branches: trunk
changeset: 555529:09075764cf6a
user: minskim <minskim%pkgsrc.org@localhost>
date: Wed Mar 04 16:54:26 2009 +0000
description:
Add PKG_DESTDIR_SUPPORT.
diffstat:
devel/sgb/Makefile | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 30900ff9f71e -r 09075764cf6a devel/sgb/Makefile
--- a/devel/sgb/Makefile Wed Mar 04 16:47:05 2009 +0000
+++ b/devel/sgb/Makefile Wed Mar 04 16:54:26 2009 +0000
@@ -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 @@
DEPENDS+= teTeX-bin-[0-9]*:../../print/teTeX3-bin
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LIBTOOL= yes
WRKSRC= ${WRKDIR}
@@ -21,12 +23,12 @@
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"
Home |
Main Index |
Thread Index |
Old Index