summaryrefslogtreecommitdiff
path: root/misc/xpns/Makefile
diff options
context:
space:
mode:
authorAde Lovett <ade@FreeBSD.org>2000-10-13 20:22:31 +0000
committerAde Lovett <ade@FreeBSD.org>2000-10-13 20:22:31 +0000
commit07234fb9fc56f65f6b50be8a25d8d9ea2469f3e3 (patch)
tree21241b65694c369c074af8e70cae00c4eefd55d4 /misc/xpns/Makefile
parentSupport CC/CFLAGS/X11BASE/PREFIX/MAKE properly (diff)
Support CC/CFLAGS/X11BASE/PREFIX properly
Change location of data files from lib/ to share/ PR: 21581 Submitted by: Ports Fury Approved by: maintainer
Notes
Notes: svn path=/head/; revision=33784
Diffstat (limited to 'misc/xpns/Makefile')
-rw-r--r--misc/xpns/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/misc/xpns/Makefile b/misc/xpns/Makefile
index eca6f6ea84a2..7323448253f7 100644
--- a/misc/xpns/Makefile
+++ b/misc/xpns/Makefile
@@ -13,22 +13,24 @@ DISTFILES= pns_source.tar.Z
MAINTAINER= giffunip@asme.org
-USE_X_PREFIX= yes
NO_WRKSUBDIR= yes
+USE_X_PREFIX= yes
MAKEFILE= makefile
ALL_TARGET= pns
+post-patch:
+ @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/xpns
+
do-install:
- ${MKDIR} ${PREFIX}/lib/xpns
- ${INSTALL_PROGRAM} ${WRKSRC}/pns ${PREFIX}/lib/xpns/
- ${INSTALL_DATA} ${WRKSRC}/pns.hlp ${PREFIX}/lib/xpns/
- ${INSTALL_DATA} ${WRKSRC}/pns.shell ${PREFIX}/lib/xpns/
${INSTALL_SCRIPT} ${WRKSRC}/xpns ${PREFIX}/bin/xpns
-
-post-install:
+ ${MKDIR} ${PREFIX}/libexec/xpns
+ ${INSTALL_PROGRAM} ${WRKSRC}/pns ${PREFIX}/libexec/xpns
+ ${MKDIR} ${PREFIX}/share/xpns
+ ${INSTALL_DATA} ${WRKSRC}/pns.hlp ${PREFIX}/share/xpns
+ ${INSTALL_DATA} ${WRKSRC}/pns.shell ${PREFIX}/share/xpns
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/xpns
- ${CP} ${WRKSRC}/*.net ${PREFIX}/share/doc/xpns/
+ ${INSTALL_DATA} ${WRKSRC}/*.net ${PREFIX}/share/doc/xpns
.endif
.include <bsd.port.mk>