aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/wmanager
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2008-05-26 05:47:41 +0800
committerroam <roam@FreeBSD.org>2008-05-26 05:47:41 +0800
commit2694d160bedfa1efabf18fb8767ea73c80995b53 (patch)
tree29af8223dde2fa777f066681ebdb6a3b2c3829bc /x11-wm/wmanager
parent0a9a0703e792d5b924f3379b3b7dbf04ab20f831 (diff)
downloadfreebsd-ports-gnome-2694d160bedfa1efabf18fb8767ea73c80995b53.tar.gz
freebsd-ports-gnome-2694d160bedfa1efabf18fb8767ea73c80995b53.tar.zst
freebsd-ports-gnome-2694d160bedfa1efabf18fb8767ea73c80995b53.zip
Build pkg-message dynamically, substituting the real path to
the package's documentation and samples directories. No PORTREVISION bump since nothing changes for the default build with a PREFIX of /usr/local/.
Diffstat (limited to 'x11-wm/wmanager')
-rw-r--r--x11-wm/wmanager/Makefile5
-rw-r--r--x11-wm/wmanager/files/pkg-message.in4
-rw-r--r--x11-wm/wmanager/pkg-message4
3 files changed, 7 insertions, 6 deletions
diff --git a/x11-wm/wmanager/Makefile b/x11-wm/wmanager/Makefile
index 56c87d54655b..4ef0e18c1100 100644
--- a/x11-wm/wmanager/Makefile
+++ b/x11-wm/wmanager/Makefile
@@ -19,6 +19,8 @@ LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
USE_XORG= x11 xext
USE_GL= gl
USE_GMAKE= yes
@@ -37,6 +39,7 @@ RUN_DEPENDS+= wmanager-loop:${PORTSDIR}/x11-wm/wmanager-addons
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/wmanager ${PREFIX}/bin
.if !defined(NOPORTDOCS)
+ ${SED} -e "s@%%DOCSDIR%%@${DOCSDIR}@; s@%%EXAMPLESDIR%%@${EXAMPLESDIR}@" ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
@${MKDIR} ${DOCSDIR}
.for file in FAQ HISTORY INSTALL NEWS README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
@@ -44,6 +47,8 @@ do-install:
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/.wmanagerrc ${EXAMPLESDIR}/wmanagerrc_sample
${INSTALL_DATA} ${WRKSRC}/.xinitrc ${EXAMPLESDIR}/xinitrc_sample
+.else
+ ${RM} -f ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>
diff --git a/x11-wm/wmanager/files/pkg-message.in b/x11-wm/wmanager/files/pkg-message.in
index 427e446625ae..cfcbdd901146 100644
--- a/x11-wm/wmanager/files/pkg-message.in
+++ b/x11-wm/wmanager/files/pkg-message.in
@@ -1,4 +1,4 @@
-Documentation has been installed in /usr/local/share/doc/wmanager/ and
-example files in /usr/local/share/examples/wmanager/
+Documentation has been installed in %%DOCSDIR%%/ and
+example files in %%EXAMPLESDIR%%/
You are advised to have a look at the sample .wmanagerrc
and .xinitrc files available there.
diff --git a/x11-wm/wmanager/pkg-message b/x11-wm/wmanager/pkg-message
deleted file mode 100644
index 427e446625ae..000000000000
--- a/x11-wm/wmanager/pkg-message
+++ /dev/null
@@ -1,4 +0,0 @@
-Documentation has been installed in /usr/local/share/doc/wmanager/ and
-example files in /usr/local/share/examples/wmanager/
-You are advised to have a look at the sample .wmanagerrc
-and .xinitrc files available there.