summaryrefslogtreecommitdiff
path: root/games/sl
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
commit29d85ddd6a393a4bfaf03a504f8916a55cec3687 (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/sl
parent38dd76219d21c71b412129d8960dd0c0b88a92b8 (diff)
downloadpkgsrc-29d85ddd6a393a4bfaf03a504f8916a55cec3687.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/sl')
-rw-r--r--games/sl/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/games/sl/Makefile b/games/sl/Makefile
index 250f9d6c782..aad0f4f593d 100644
--- a/games/sl/Makefile
+++ b/games/sl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2007/01/07 09:13:54 rillig Exp $
+# $NetBSD: Makefile,v 1.15 2008/03/04 06:59:06 jlam Exp $
#
DISTNAME= sl
@@ -19,13 +19,15 @@ DIST_SUBDIR= ${PKGNAME_NOREV}
BUILD_DEPENDS+= nkf-[0-9]*:../../converters/nkf
+PKG_DESTDIR_SUPPORT= user-destdir
INSTALLATION_DIRS= bin ${PKGMANDIR}/ja_JP.EUC/man1
post-build:
nkf -e ${WRKSRC}/sl.1 > ${WRKSRC}/sl.1.euc
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sl ${PREFIX}/bin/sl
- ${INSTALL_DATA} ${WRKSRC}/sl.1.euc ${PREFIX}/${PKGMANDIR}/ja_JP.EUC/man1/sl.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/sl ${DESTDIR}${PREFIX}/bin/sl
+ ${INSTALL_DATA} ${WRKSRC}/sl.1.euc \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/ja_JP.EUC/man1/sl.1
.include "../../mk/bsd.pkg.mk"