summaryrefslogtreecommitdiff
path: root/editors/openoffice-3/Makefile
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2003-09-17 04:06:28 +0000
committerMartin Blapp <mbr@FreeBSD.org>2003-09-17 04:06:28 +0000
commitf95a4f2995b7b811c30555137a7899d62b5e5de1 (patch)
tree10d0b988fbe5a6d43377088b5376b1ef000cd4e3 /editors/openoffice-3/Makefile
parentAdd XFree86-4-Server-snap (diff)
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)
Notes
Notes: svn path=/head/; revision=89015
Diffstat (limited to 'editors/openoffice-3/Makefile')
-rw-r--r--editors/openoffice-3/Makefile26
1 files changed, 16 insertions, 10 deletions
diff --git a/editors/openoffice-3/Makefile b/editors/openoffice-3/Makefile
index 77741f44e526..a11269f11635 100644
--- a/editors/openoffice-3/Makefile
+++ b/editors/openoffice-3/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