aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authordhn <dhn@FreeBSD.org>2009-06-03 01:33:48 +0800
committerdhn <dhn@FreeBSD.org>2009-06-03 01:33:48 +0800
commitf8431c4d77ac73b637d881d621b43bf8f30107d1 (patch)
tree54869cca82b4b1fa0773a66aa2e55b85f891d2ea /comms
parent4d724f148b0c7ceca01fa64a1119804e8e98eb69 (diff)
downloadfreebsd-ports-graphics-f8431c4d77ac73b637d881d621b43bf8f30107d1.tar.gz
freebsd-ports-graphics-f8431c4d77ac73b637d881d621b43bf8f30107d1.tar.zst
freebsd-ports-graphics-f8431c4d77ac73b637d881d621b43bf8f30107d1.zip
- Respect PREFIX/MANPREFIX
Reported by: QAT
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 c7c37484272..c94935cb7b2 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 4218543306c..f78aa94bee1 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