aboutsummaryrefslogtreecommitdiff
path: root/comms/ncid
diff options
context:
space:
mode:
authorDennis Herrmann <dhn@FreeBSD.org>2009-06-02 17:33:48 +0000
committerDennis Herrmann <dhn@FreeBSD.org>2009-06-02 17:33:48 +0000
commit0901a37cde75511f23a547edb4035adf438dfe6b (patch)
treeb3c0ab17b5b3a7c962907936d860d57b30ec8fb5 /comms/ncid
parent5d63ebd5f52a7a8b31ff3ab054c15a255c1fc2ba (diff)
downloadports-0901a37cde75511f23a547edb4035adf438dfe6b.tar.gz
ports-0901a37cde75511f23a547edb4035adf438dfe6b.zip
Notes
Diffstat (limited to 'comms/ncid')
-rw-r--r--comms/ncid/Makefile7
-rw-r--r--comms/ncid/pkg-plist20
2 files changed, 17 insertions, 10 deletions
diff --git a/comms/ncid/Makefile b/comms/ncid/Makefile
index c7c37484272a..c94935cb7b26 100644
--- a/comms/ncid/Makefile
+++ b/comms/ncid/Makefile
@@ -38,6 +38,13 @@ post-patch:
'/install:/s,install-(etc|logrotate),,'
@${REINPLACE_CMD} -Ee '/mkdir.*(INIT|ROTATE|BIN|LOG|ETC)/d;\
/CFLAGS.*=/s|=|+=|;s|-O||' ${WRKSRC}/Makefile
+# Respect PREFIX/MANPREFIX/DATADIR
+ @${REINPLACE_CMD} -e's|prefix.*= /usr/local|prefix=$${PREFIX}|g' \
+ -e 's|$$(prefix)/bin|$${PREFIX}/bin|g' \
+ -e 's|$$(prefix)/sbin|$${PREFIX}/sbin|g' \
+ -e 's|$$(prefix)/share|$${PREFIX}/share|g' \
+ -e 's|$$(SHARE)/man|$${MANPREFIX}/man/|g' \
+ -e 's|$$(SHARE)/ncid|$${DATADIR}|g' ${WRKSRC}/Makefile
post-install:
@${INSTALL} -d ${ETCDIR}/
diff --git a/comms/ncid/pkg-plist b/comms/ncid/pkg-plist
index 4218543306c1..f78aa94bee11 100644
--- a/comms/ncid/pkg-plist
+++ b/comms/ncid/pkg-plist
@@ -18,14 +18,14 @@ etc/rc.d/ncid-mythtv
etc/rc.d/ncid-speak
etc/rc.d/ncidd
etc/rc.d/sip2ncid
-share/ncid/ncidrotate
-share/ncid/ncid-kpopup
-share/ncid/ncid-mythtv
-share/ncid/ncid-page
-share/ncid/ncid-samba
-share/ncid/ncid-skel
-share/ncid/ncid-speak
-share/ncid/ncid-tivo
-share/ncid/ncid-yac
-@dirrm share/ncid
+%%DATADIR%%/ncidrotate
+%%DATADIR%%/ncid-kpopup
+%%DATADIR%%/ncid-mythtv
+%%DATADIR%%/ncid-page
+%%DATADIR%%/ncid-samba
+%%DATADIR%%/ncid-skel
+%%DATADIR%%/ncid-speak
+%%DATADIR%%/ncid-tivo
+%%DATADIR%%/ncid-yac
+@dirrm %%DATADIR%%
share/pixmaps/ncid.gif