diff options
author | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-03 17:45:33 +0000 |
commit | 7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/sgi-stl | |
parent | e629efdae96bb93a089e74409a36149a86e10f81 (diff) | |
download | pkgsrc-7a1142123798f48c48fc2d1fe38690a6b94d1df7.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/sgi-stl')
-rw-r--r-- | devel/sgi-stl/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/devel/sgi-stl/Makefile b/devel/sgi-stl/Makefile index a983b3bcafe..2acc12c616c 100644 --- a/devel/sgi-stl/Makefile +++ b/devel/sgi-stl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2006/03/04 21:29:29 jlam Exp $ +# $NetBSD: Makefile,v 1.16 2008/03/03 17:45:37 jlam Exp $ DISTNAME= stl PKGNAME= sgi-stl-3.3 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.sgi.com/tech/stl/ COMMENT= SGI Standard Template Library +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} DIST_SUBDIR= ${PKGNAME_NOREV} @@ -16,10 +18,10 @@ NO_CONFIGURE= yes NO_BUILD= yes do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/include/sgi-stl + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/sgi-stl cd ${WRKSRC}; for file in `${GREP} "^include/sgi-stl/" ${PLIST_SRC} \ | ${SED} "s,^include/sgi-stl/,,g"`; do \ - ${INSTALL_DATA} $${file} ${PREFIX}/include/sgi-stl/$${file}; \ + ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/include/sgi-stl/$${file}; \ done .include "../../mk/bsd.pkg.mk" |