aboutsummaryrefslogtreecommitdiffstats
path: root/editors/openoffice.org-2.0/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'editors/openoffice.org-2.0/Makefile')
-rw-r--r--editors/openoffice.org-2.0/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/editors/openoffice.org-2.0/Makefile b/editors/openoffice.org-2.0/Makefile
index 5c8daf1fae2..3792b35c715 100644
--- a/editors/openoffice.org-2.0/Makefile
+++ b/editors/openoffice.org-2.0/Makefile
@@ -359,6 +359,8 @@ post-extract:
post-patch:
@${MAKE} patch-mozilla
+ @${MAKE} fix-kdewrappers
+ @${MAKE} fix-gnomewrappers
.if defined(WITH_TTF_BYTECODE_ENABLED)
@if [ "`echo ${PATCHDIR}/optpatch-*`" != "${PATCHDIR}/optpatch-*" ]; then \
${ECHO_MSG} "===> Applying additional TTF bytecode patches for ${PKGNAME}" ; \
@@ -410,6 +412,14 @@ post-patch:
@${FIND} ${WRKSRC}/.. | ${EGREP} "\.(cxx|h|c)$$" | ${XARGS} \
${PERL} -pi -e "s|<malloc.h>|<stdlib.h>|g"
+fix-kdewrappers:
+ @${PERL} -pi -e 's|"Exec", "\\"\<progpath\>/program/|"Exec", "\\"${PREFIX}/bin/openoffice_${RELEASE_NR}-|' \
+ ${WRKSRC}/../sysui/oounix/office/kde2/kdeint
+
+fix-gnomewrappers:
+ @${PERL} -pi -e 's|"Exec", "<progpath>/program/|"Exec", "${PREFIX}/bin/openoffice_${RELEASE_NR}-|' \
+ ${WRKSRC}/../sysui/oounix/office/gnome/gnomeint
+
extract-mozilla:
.if ! exists(${WRKDIR}/mozilla/Makefile)
@${ECHO_MSG} "===> Extracting mozilla sub project"
@@ -524,9 +534,6 @@ pre-install:
-e 's#%%PORTVERSION%%#${BUILD_NR}#g' \
${WRKSRC}/../instsetoo/unxfbsd.pro/${LANG_EXT}/normal/oo_setup.resp
@${MKDIR} -p ${WRKSRC}/../solver/644/unxfbsd.pro/bin/${LANG_EXT}/osl/
- # fix KDE-files to use our wrapper skrips.
- @${FIND} ${WRKSRC}/../sysui/unxfbsd.pro | ${EGREP} "\.desktop$$" | ${XARGS} \
- ${PERL} -pi -e 's|Exec="\<progpath\>/program/|Exec="${PREFIX}/bin/openoffice_${RELEASE_NR}-|'
do-install:
.if !defined(DISPLAY)