diff options
author | maho <maho@FreeBSD.org> | 2006-05-09 09:04:50 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2006-05-09 09:04:50 +0800 |
commit | 82d0dd5d1e489686f1d2ab83d1bc68663142355b (patch) | |
tree | a99fab18ccde774b42f4b2bdfad04501e3e16349 /editors/openoffice.org-2-devel | |
parent | 6f9777b0d332e393d5e370c3fdcddc240905feec (diff) | |
download | freebsd-ports-graphics-82d0dd5d1e489686f1d2ab83d1bc68663142355b.tar.gz freebsd-ports-graphics-82d0dd5d1e489686f1d2ab83d1bc68663142355b.tar.zst freebsd-ports-graphics-82d0dd5d1e489686f1d2ab83d1bc68663142355b.zip |
Automatically fixup the *.desktop files and hook them into KDE
Submitted by: jhb
Diffstat (limited to 'editors/openoffice.org-2-devel')
-rw-r--r-- | editors/openoffice.org-2-devel/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/editors/openoffice.org-2-devel/Makefile b/editors/openoffice.org-2-devel/Makefile index a23d5f47c38..51140f2432b 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} |