summaryrefslogtreecommitdiffstats
path: root/editors/openoffice-2.0-devel/Makefile
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-09-17 04:06:28 +0000
committermbr <mbr@FreeBSD.org>2003-09-17 04:06:28 +0000
commit2792aad12158dd468d55b8d979061d6b028f9883 (patch)
treebab3e59c710190dd5d34fd6f6a576ca1bf1449d8 /editors/openoffice-2.0-devel/Makefile
parent52e57738694a810c27befaedb66ebf059a948f53 (diff)
downloadFreeBSD-ports-2792aad12158dd468d55b8d979061d6b028f9883.zip
FreeBSD-ports-2792aad12158dd468d55b8d979061d6b028f9883.tar.gz
Make it easier for people, move a big chunk of the startup
wrapper out into a script included by soffice.sh. This way there aren't any traps at first startup time and people hopefully don't ask the same questions anymore. At the same time, make more substitutions, also in oo_setup.resp. Approved by: marcus (portsmgr)
Diffstat (limited to 'editors/openoffice-2.0-devel/Makefile')
-rw-r--r--editors/openoffice-2.0-devel/Makefile26
1 files changed, 16 insertions, 10 deletions
diff --git a/editors/openoffice-2.0-devel/Makefile b/editors/openoffice-2.0-devel/Makefile
index 77741f4..a11269f 100644
--- a/editors/openoffice-2.0-devel/Makefile
+++ b/editors/openoffice-2.0-devel/Makefile
@@ -499,10 +499,10 @@ do-build:
pre-install:
@${CP} ${FILESDIR}/oo_setup.resp \
- ${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
+ ${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/
@${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
- -e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
- ${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
+ -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
+ ${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
@${MKDIR} -p ${WRKSRC}/../solver/${BUILD_NR}/unxfbsd.pro/bin/${LANG_EXT}/osl/
do-install:
@@ -529,13 +529,19 @@ install-user:
post-install:
@${ECHO_MSG} "===> Add wrapper scripts";
- @${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/openoffice
- @${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' ${WRKDIR}/openoffice
- @${SED} -i orig -e 's#%%LANG%%#${USE_LANG}#g' ${WRKDIR}/openoffice
- @${SED} -i orig -e 's#%%BUILD_NR%%#${BUILD_NR}#g' ${WRKDIR}/openoffice
- @${SED} -i orig -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' ${WRKDIR}/openoffice
- @${SED} -i orig -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' ${WRKDIR}/openoffice
- @${INSTALL_SCRIPT} ${WRKDIR}/openoffice ${PREFIX}/bin/openoffice-${RELEASE_NR}
+ @${CP} ${FILESDIR}/openoffice-wrapper ${WRKDIR}/
+ @${CP} ${FILESDIR}/freebsd-local.sh ${WRKDIR}/
+ @${SED} -i orig -e 's#%%PREFIX%%#${PREFIX}#g' \
+ -e 's#%%LANG%%#${USE_LANG}#g' \
+ -e 's#%%BUILD_NR%%#${BUILD_NR}#g' \
+ -e 's#%%RELEASE_NR%%#${RELEASE_NR}#g' \
+ -e 's#%%FRELEASE_NR%%#${FRELEASE_NR}#g' \
+ ${WRKDIR}/openoffice \
+ ${WRKDIR}/freebsd-local.sh
+ @${INSTALL_SCRIPT} ${WRKDIR}/openoffice \
+ ${PREFIX}/bin/openoffice-${RELEASE_NR}
+ @${INSTALL_SCRIPT} ${WRKDIR}/freebsd-local.sh \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/freebsd-local.sh
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sagenda
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-scalc
@${LN} -fs ${PREFIX}/bin/openoffice-${RELEASE_NR} ${PREFIX}/bin/openoffice-${RELEASE_NR}-sdraw
OpenPOWER on IntegriCloud