- use SUB_FILES appropriately instead of SED directly

PR:             ports/142812
Submitted by:   Sevan Janiyan <venture37@geeklan.co.uk>
Approved by:    maintainer timeout (nivit ; 231 days)
This commit is contained in:
Philip M. Gollucci 2010-09-08 22:04:45 +00:00
parent 3ea9ac8e70
commit c07bd2d066
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260783
3 changed files with 7 additions and 9 deletions

View File

@ -18,15 +18,11 @@ ONLY_FOR_ARCHS= i386
NO_BUILD= yes
NO_WRKSUBDIR= yes
SUB_FILES= pkg-message wrapper.sh
# source code version
SOURCE_VERSION= 24.14
post-patch:
# prepare wrapper
@${SED} \
-e 's|%%PREFIX%%|${PREFIX}|' ${FILESDIR}/wrapper.sh > \
${WRKDIR}/wrapper.sh
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/mprime ${PREFIX}/bin/mprime-real
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mprime
@ -36,6 +32,8 @@ do-install:
.endif
post-install:
@${SED} -e 's|/usr/local/|${PREFIX}/|' ${PKGMESSAGE}
.if !defined(NOPORTDOCS)
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.mk>

View File

@ -1,10 +1,10 @@
ATTENTIONATTENTION:
Please, make sure that you read
/usr/local/share/doc/mprime/license.txt
%%DOCSDIR%%/license.txt
and agree to the licensing terms before running this application.
Furthermore, read
/usr/local/share/doc/mprime/readme.txt
%%DOCSDIR%%/readme.txt
It contains important information about both configuring and running
mprime. You will have problems running it if you do not read it.