From 2694d160bedfa1efabf18fb8767ea73c80995b53 Mon Sep 17 00:00:00 2001 From: roam Date: Sun, 25 May 2008 21:47:41 +0000 Subject: 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/. --- x11-wm/wmanager/Makefile | 5 +++++ x11-wm/wmanager/files/pkg-message.in | 4 ++-- x11-wm/wmanager/pkg-message | 4 ---- 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 x11-wm/wmanager/pkg-message (limited to 'x11-wm/wmanager') 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 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. -- cgit