summaryrefslogtreecommitdiff
path: root/net/xnap
diff options
context:
space:
mode:
authorjoerg <joerg>2010-02-11 22:57:40 +0000
committerjoerg <joerg>2010-02-11 22:57:40 +0000
commit75db0a8d4d8c1b10e90f51a0827f26c0c9eabfac (patch)
tree892f24338b971c99ecdc3db1d871d95d58c28c61 /net/xnap
parent99d44c5e24649baeca752737a9e4b5ec5e030970 (diff)
downloadpkgsrc-75db0a8d4d8c1b10e90f51a0827f26c0c9eabfac.tar.gz
DESTDIR support
Diffstat (limited to 'net/xnap')
-rw-r--r--net/xnap/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/net/xnap/Makefile b/net/xnap/Makefile
index 3a2403f9f78..97d2788f641 100644
--- a/net/xnap/Makefile
+++ b/net/xnap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2007/02/22 19:27:01 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2010/02/11 23:23:11 joerg Exp $
#
DISTNAME= xnap-2.0
@@ -10,9 +10,11 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://xnap.sourceforge.net/
COMMENT= Java filesharing client with support for OpenNap
+PKG_DESTDIR_SUPPORT= user-destdir
+
NO_BUILD= yes
-INSTALLATION_DIRS= bin
+INSTALLATION_DIRS= bin share/xnap share/doc/xnap
post-extract:
cd ${WRKSRC} && ${MV} xnap.sh xnap.sh.in
@@ -22,12 +24,9 @@ pre-configure:
-e 's|@PREFIX@|${PREFIX}|g' < xnap.sh.in > xnap.sh
do-install:
- ${CP} ${WRKSRC}/xnap.sh ${PREFIX}/bin/xnap
- ${INSTALL_PROGRAM_DIR} ${PREFIX}/share/xnap
- ${CP} ${WRKSRC}/xnap.jar ${PREFIX}/share/xnap/xnap.jar
- ${INSTALL_PROGRAM_DIR} ${PREFIX}/share/doc/xnap
- ${CP} ${WRKSRC}/README ${PREFIX}/share/doc/xnap
- ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/xnap ${PREFIX}/share/doc/xnap
+ ${INSTALL_SCRIPT} ${WRKSRC}/xnap.sh ${DESTDIR}${PREFIX}/bin/xnap
+ ${INSTALL_DATA} ${WRKSRC}/xnap.jar ${PREFIX}/share/xnap/xnap.jar
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xnap
.include "../../mk/java-vm.mk"