summaryrefslogtreecommitdiff
path: root/misc/cowsay
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cowsay')
-rw-r--r--misc/cowsay/Makefile14
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"