diff options
author | jlam <jlam> | 2008-03-04 16:38:11 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-04 16:38:11 +0000 |
commit | 94625269680b5597c061a1e864b87074eff20b47 (patch) | |
tree | 3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/nawk | |
parent | a29ce4f7d451f2d5d4a2d323b35045448aa1d767 (diff) | |
download | pkgsrc-94625269680b5597c061a1e864b87074eff20b47.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'lang/nawk')
-rw-r--r-- | lang/nawk/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lang/nawk/Makefile b/lang/nawk/Makefile index 88405dd9180..794ba093055 100644 --- a/lang/nawk/Makefile +++ b/lang/nawk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.30 2007/02/22 19:26:38 wiz Exp $ +# $NetBSD: Makefile,v 1.31 2008/03/04 16:38:12 jlam Exp $ DISTNAME= nawk-20050424 CATEGORIES= lang @@ -10,6 +10,7 @@ HOMEPAGE= http://cm.bell-labs.com/who/bwk/ COMMENT= Brian Kernighan's pattern-directed scanning and processing language PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir CFLAGS+= ${CPPFLAGS} MAKE_FLAGS+= CC=${CC:Q} CFLAGS=${CFLAGS:M*:Q} @@ -24,7 +25,8 @@ do-extract: @${CP} -R ${FILESDIR} ${WRKSRC} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/a.out ${PREFIX}/bin/nawk - ${INSTALL_MAN} ${WRKSRC}/nawk.1 ${PREFIX}/${PKGMANDIR}/man1/nawk.1 + ${INSTALL_PROGRAM} ${WRKSRC}/a.out ${DESTDIR}${PREFIX}/bin/nawk + ${INSTALL_MAN} ${WRKSRC}/nawk.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nawk.1 .include "../../mk/bsd.pkg.mk" |