diff --git a/math/mprime/Makefile b/math/mprime/Makefile index 2c09ddc71f6e..6b4458a42fd9 100644 --- a/math/mprime/Makefile +++ b/math/mprime/Makefile @@ -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 diff --git a/math/mprime/pkg-message b/math/mprime/files/pkg-message.in similarity index 78% rename from math/mprime/pkg-message rename to math/mprime/files/pkg-message.in index 3c0c8b1aed04..46a39c0949cd 100644 --- a/math/mprime/pkg-message +++ b/math/mprime/files/pkg-message.in @@ -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. diff --git a/math/mprime/files/wrapper.sh b/math/mprime/files/wrapper.sh.in similarity index 100% rename from math/mprime/files/wrapper.sh rename to math/mprime/files/wrapper.sh.in