summaryrefslogtreecommitdiff
path: root/net/xnap/Makefile
diff options
context:
space:
mode:
authorjmmv <jmmv>2003-07-02 18:28:42 +0000
committerjmmv <jmmv>2003-07-02 18:28:42 +0000
commita929f195f6fc9ed9331c509ba422eeacffa0a4b1 (patch)
tree79c3c1719a65654c867fc2d5dbcc3049ee26690a /net/xnap/Makefile
parent6cc33370ffd471b617c7c7c819c53c19bfeaacd9 (diff)
downloadpkgsrc-a929f195f6fc9ed9331c509ba422eeacffa0a4b1.tar.gz
Avoid hardcoding /usr/pkg in patch files.
Diffstat (limited to 'net/xnap/Makefile')
-rw-r--r--net/xnap/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/xnap/Makefile b/net/xnap/Makefile
index c91221e1e07..e651f568c3d 100644
--- a/net/xnap/Makefile
+++ b/net/xnap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2002/12/31 15:44:29 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2003/07/02 18:28:42 jmmv Exp $
#
DISTNAME= xnap-2.0
@@ -11,6 +11,13 @@ COMMENT= Java filesharing client with support for OpenNap
NO_BUILD= yes
+post-extract:
+ cd ${WRKSRC} && ${MV} xnap.sh xnap.sh.in
+
+pre-configure:
+ cd ${WRKSRC} && ${SED} \
+ -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