1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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/.
This commit is contained in:
Peter Pentchev 2008-05-25 21:47:41 +00:00
parent f52b04d279
commit 3d9e03513c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=213664
3 changed files with 7 additions and 6 deletions

View File

@ -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>

View File

@ -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.

View File

@ -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.