aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
Diffstat (limited to 'comms')
-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