aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2006-05-09 01:04:50 +0000
committerMaho Nakata <maho@FreeBSD.org>2006-05-09 01:04:50 +0000
commit30bd1a035a39b49213292e96a7460634cf8addc9 (patch)
tree986d19b038dd1ea0d47823faf8174441a6f17ca9 /editors
parent44f1c5a980666da2e1df8cad91e4be394ea4d452 (diff)
downloadports-30bd1a035a39b49213292e96a7460634cf8addc9.tar.gz
ports-30bd1a035a39b49213292e96a7460634cf8addc9.zip
Notes
Diffstat (limited to 'editors')
-rw-r--r--editors/openoffice-3-devel/Makefile25
-rw-r--r--editors/openoffice-3/Makefile25
-rw-r--r--editors/openoffice.org-2-RC/Makefile25
-rw-r--r--editors/openoffice.org-2-devel/Makefile25
-rw-r--r--editors/openoffice.org-2.0-devel/Makefile25
-rw-r--r--editors/openoffice.org-2.0/Makefile25
-rw-r--r--editors/openoffice.org-2/Makefile25
-rw-r--r--editors/openoffice.org-3-RC/Makefile25
-rw-r--r--editors/openoffice.org-3-devel/Makefile25
-rw-r--r--editors/openoffice.org-3/Makefile25
-rw-r--r--editors/openoffice.org-vcltesttool/Makefile25
11 files changed, 275 insertions, 0 deletions
diff --git a/editors/openoffice-3-devel/Makefile b/editors/openoffice-3-devel/Makefile
index a23d5f47c38f..51140f2432b7 100644
--- a/editors/openoffice-3-devel/Makefile
+++ b/editors/openoffice-3-devel/Makefile
@@ -157,6 +157,8 @@ EXTRA_PATCHES+= ${FILESDIR}/cws-maho1.diff ${FILESDIR}/gcj-fbsdworkaround
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -236,6 +238,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
diff --git a/editors/openoffice-3/Makefile b/editors/openoffice-3/Makefile
index 12e8dbb3da1f..fef60b1fd2cf 100644
--- a/editors/openoffice-3/Makefile
+++ b/editors/openoffice-3/Makefile
@@ -158,6 +158,8 @@ EXTRA_PATCHES+= ${FILESDIR}/moz-patch_i59729 #cws pj50
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -237,6 +239,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
diff --git a/editors/openoffice.org-2-RC/Makefile b/editors/openoffice.org-2-RC/Makefile
index 12e8dbb3da1f..fef60b1fd2cf 100644
--- a/editors/openoffice.org-2-RC/Makefile
+++ b/editors/openoffice.org-2-RC/Makefile
@@ -158,6 +158,8 @@ EXTRA_PATCHES+= ${FILESDIR}/moz-patch_i59729 #cws pj50
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -237,6 +239,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
diff --git a/editors/openoffice.org-2-devel/Makefile b/editors/openoffice.org-2-devel/Makefile
index a23d5f47c38f..51140f2432b7 100644
--- a/editors/openoffice.org-2-devel/Makefile
+++ b/editors/openoffice.org-2-devel/Makefile
@@ -157,6 +157,8 @@ EXTRA_PATCHES+= ${FILESDIR}/cws-maho1.diff ${FILESDIR}/gcj-fbsdworkaround
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -236,6 +238,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
diff --git a/editors/openoffice.org-2.0-devel/Makefile b/editors/openoffice.org-2.0-devel/Makefile
index a23d5f47c38f..51140f2432b7 100644
--- a/editors/openoffice.org-2.0-devel/Makefile
+++ b/editors/openoffice.org-2.0-devel/Makefile
@@ -157,6 +157,8 @@ EXTRA_PATCHES+= ${FILESDIR}/cws-maho1.diff ${FILESDIR}/gcj-fbsdworkaround
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -236,6 +238,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
diff --git a/editors/openoffice.org-2.0/Makefile b/editors/openoffice.org-2.0/Makefile
index 12e8dbb3da1f..fef60b1fd2cf 100644
--- a/editors/openoffice.org-2.0/Makefile
+++ b/editors/openoffice.org-2.0/Makefile
@@ -158,6 +158,8 @@ EXTRA_PATCHES+= ${FILESDIR}/moz-patch_i59729 #cws pj50
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -237,6 +239,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
diff --git a/editors/openoffice.org-2/Makefile b/editors/openoffice.org-2/Makefile
index 12e8dbb3da1f..fef60b1fd2cf 100644
--- a/editors/openoffice.org-2/Makefile
+++ b/editors/openoffice.org-2/Makefile
@@ -158,6 +158,8 @@ EXTRA_PATCHES+= ${FILESDIR}/moz-patch_i59729 #cws pj50
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -237,6 +239,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
diff --git a/editors/openoffice.org-3-RC/Makefile b/editors/openoffice.org-3-RC/Makefile
index 12e8dbb3da1f..fef60b1fd2cf 100644
--- a/editors/openoffice.org-3-RC/Makefile
+++ b/editors/openoffice.org-3-RC/Makefile
@@ -158,6 +158,8 @@ EXTRA_PATCHES+= ${FILESDIR}/moz-patch_i59729 #cws pj50
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -237,6 +239,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
diff --git a/editors/openoffice.org-3-devel/Makefile b/editors/openoffice.org-3-devel/Makefile
index a23d5f47c38f..51140f2432b7 100644
--- a/editors/openoffice.org-3-devel/Makefile
+++ b/editors/openoffice.org-3-devel/Makefile
@@ -157,6 +157,8 @@ EXTRA_PATCHES+= ${FILESDIR}/cws-maho1.diff ${FILESDIR}/gcj-fbsdworkaround
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -236,6 +238,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
diff --git a/editors/openoffice.org-3/Makefile b/editors/openoffice.org-3/Makefile
index 12e8dbb3da1f..fef60b1fd2cf 100644
--- a/editors/openoffice.org-3/Makefile
+++ b/editors/openoffice.org-3/Makefile
@@ -158,6 +158,8 @@ EXTRA_PATCHES+= ${FILESDIR}/moz-patch_i59729 #cws pj50
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -237,6 +239,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}
diff --git a/editors/openoffice.org-vcltesttool/Makefile b/editors/openoffice.org-vcltesttool/Makefile
index a23d5f47c38f..51140f2432b7 100644
--- a/editors/openoffice.org-vcltesttool/Makefile
+++ b/editors/openoffice.org-vcltesttool/Makefile
@@ -157,6 +157,8 @@ EXTRA_PATCHES+= ${FILESDIR}/cws-maho1.diff ${FILESDIR}/gcj-fbsdworkaround
#EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
#.endif
+ICONS= ${WRKSRC}/sysui/desktop/icons
+
.include <${FILESDIR}/Makefile.knobs>
pre-everything::
@@ -236,6 +238,29 @@ post-install:
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-spadmin
@${LN} -fs ${PREFIX}/bin/${EXECBASE} ${PREFIX}/bin/${EXECBASE}-swriter
@${PRINTF} "bin/openoffice.org\n" > ${TMPPLIST}
+ @${REINPLACE_CMD} -e 's#${RELEASE_NR}#${OOOVERSION}#g' \
+ -e '/^Exec/s/printeradmin/spadmin/' \
+ ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
+ @${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
+.if defined(WITH_KDE)
+ @ln -sf ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg \
+ ${PREFIX}/share/applnk/${EXECBASE}
+ @${PRINTF} "share/applnk/${EXECBASE}\n" >> ${TMPPLIST}
+.endif
+ @for dir in `ls ${ICONS}/hicolor | grep -v CVS`; do \
+ for app in base calc draw impress math printeradmin writer; do \
+ if [ -r ${ICONS}/hicolor/$${dir}/apps/$${app}.png ]; then \
+ ${CP} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png ; \
+ ${PRINTF} "share/icons/hicolor/$${dir}/apps/openofficeorg-20-$${app}.png\n" >> ${TMPPLIST} ; \
+ fi \
+ done ; \
+ for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
+ ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
+ ${PRINTF} "share/icons/hiclor/$${dir}/mimetypes/$${file}\n" >> ${TMPPLIST} ; \
+ done ; \
+ done
@cd ${PREFIX} ; ${FIND} -s bin -type f | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s bin -type l | ${GREP} ${EXECBASE} >> ${TMPPLIST}
@cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type f >> ${TMPPLIST}