diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 19:21:10 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 19:21:10 +0000 |
commit | 39843c2c61acd3e8f1b7d0fa6eb0f76884067d10 (patch) | |
tree | 49bcc2e4ee778e69c05972f13c0e319fdf272a66 /misc/cowsay | |
parent | 0523c1825d9b781d6f10c2ef70daf0a164e0f142 (diff) | |
download | pkgsrc-39843c2c61acd3e8f1b7d0fa6eb0f76884067d10.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'misc/cowsay')
-rw-r--r-- | misc/cowsay/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/misc/cowsay/Makefile b/misc/cowsay/Makefile index f7822c6bbe3..dd7678c384d 100644 --- a/misc/cowsay/Makefile +++ b/misc/cowsay/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2007/01/07 09:14:00 rillig Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/04 19:21:11 jlam Exp $ DISTNAME= cowsay-3.03 PKGREVISION= 1 @@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.nog.net/~tony/warez/cowsay.shtml COMMENT= Configurable talking cow +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= perl:run SUBST_CLASSES+= pap @@ -23,10 +25,10 @@ NO_BUILD= yes INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/cows do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/cowsay ${PREFIX}/bin - cd ${PREFIX}/bin; ${LN} -s cowsay cowthink - ${INSTALL_DATA} ${WRKSRC}/cowsay.1 ${PREFIX}/${PKGMANDIR}/man1 - cd ${PREFIX}/${PKGMANDIR}/man1; ${LN} -s cowsay.1 cowthink.1 - ${INSTALL_DATA} ${WRKSRC}/cows/*.cow ${PREFIX}/share/cows + ${INSTALL_SCRIPT} ${WRKSRC}/cowsay ${DESTDIR}${PREFIX}/bin + cd ${DESTDIR}${PREFIX}/bin; ${LN} -s cowsay cowthink + ${INSTALL_DATA} ${WRKSRC}/cowsay.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; ${LN} -s cowsay.1 cowthink.1 + ${INSTALL_DATA} ${WRKSRC}/cows/*.cow ${DESTDIR}${PREFIX}/share/cows .include "../../mk/bsd.pkg.mk" |