aboutsummaryrefslogtreecommitdiffstats
path: root/editors/openoffice-3-devel
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2007-06-26 09:17:48 +0800
committerjkim <jkim@FreeBSD.org>2007-06-26 09:17:48 +0800
commitaeac99e1eb67d448f7e637002b8a270bb38e3342 (patch)
tree1733cd7c3cf285889783bbedb81fd1199cae941e /editors/openoffice-3-devel
parentf553816467a49eccd03af82099f0641eb69c4187 (diff)
downloadfreebsd-ports-gnome-aeac99e1eb67d448f7e637002b8a270bb38e3342.tar.gz
freebsd-ports-gnome-aeac99e1eb67d448f7e637002b8a270bb38e3342.tar.zst
freebsd-ports-gnome-aeac99e1eb67d448f7e637002b8a270bb38e3342.zip
Make OpenOffice.org/freedesktop.org integration more robust.
- Rename icon files to have unique file names per each port. - Patch *.desktop files to reflect the change. - Prefer install(1) to cp(1) for installing the desktops, icons and mime types. - Run update-desktop-database after installing these files. - Add GNOME desktopfileutils component for the update-desktop-database. - While I am here, micro-optimize use of find(1) in the plist build. Approved by: maho (maintainer)
Diffstat (limited to 'editors/openoffice-3-devel')
-rw-r--r--editors/openoffice-3-devel/Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/editors/openoffice-3-devel/Makefile b/editors/openoffice-3-devel/Makefile
index a5b105a22c82..49e66b5f073d 100644
--- a/editors/openoffice-3-devel/Makefile
+++ b/editors/openoffice-3-devel/Makefile
@@ -32,7 +32,7 @@ DISTFILES+= ${CWSARCHIVE}:cws
CWSARCHIVE= ${WITH_CWS}.tar.gz
NO_LATEST_LINK= yes
-USE_GNOME= gtk20
+USE_GNOME= desktopfileutils gtk20
MOZILLA_VERSION= 1.7.5
MOZILLA_SOURCE= mozilla-source-${MOZILLA_VERSION}.tar.gz
.if !defined(WITHOUT_MOZILLA)
@@ -134,9 +134,9 @@ CONFIGURE_ARGS+= --with-gnu-cp=${LOCALBASE}/bin/gcp \
--enable-symbols=SMALL
.if ${ARCH} == amd64
WITHOUT_MOZILLA= yes
+LIB_DEPENDS+= boost_regex:${PORTSDIR}/devel/boost
+CONFIGURE_ARGS+= --with-system-boost=yes #i58343#
.endif
-#LIB_DEPENDS+= boost_regex:${PORTSDIR}/devel/boost
-#CONFIGURE_ARGS+= --with-system-boost=yes #i58343#
.if (${OSVERSION} <= 602102)
EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
.endif
@@ -242,6 +242,7 @@ post-install:
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop
@for app in base calc draw impress math printeradmin writer; do \
${REINPLACE_CMD} -e "s/^Exec.*/Exec=${EXECBASE} -$${app} %U/" \
+ -e "s/^Icon.*/Icon=${EXECBASE}-$${app}.png/" \
${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/$${app}.desktop ; \
done
@${RM} ${PREFIX}/${INSTALLATION_BASEDIR}/share/xdg/*.desktop.bak
@@ -254,23 +255,23 @@ post-install:
@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/openofficeorg23-$${app}.png ; \
- ${ECHO_CMD} "share/icons/hicolor/$${dir}/apps/openofficeorg23-$${app}.png" >> ${TMPPLIST} ; \
+ ${INSTALL_DATA} ${ICONS}/hicolor/$${dir}/apps/$${app}.png \
+ ${PREFIX}/share/icons/hicolor/$${dir}/apps/${EXECBASE}-$${app}.png ; \
+ ${ECHO_CMD} "share/icons/hicolor/$${dir}/apps/${EXECBASE}-$${app}.png" >> ${TMPPLIST} ; \
fi \
done ; \
for file in `cd ${ICONS}/hicolor/$${dir}/mimetypes; ls *.png`; do \
- ${CP} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
+ ${INSTALL_DATA} ${ICONS}/hicolor/$${dir}/mimetypes/$${file} \
${PREFIX}/share/icons/hicolor/$${dir}/mimetypes/ ; \
${ECHO_CMD} "share/icons/hicolor/$${dir}/mimetypes/$${file}" >> ${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}
- @cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type l >> ${TMPPLIST}
- @cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} -type d > ${WRKDIR}/dir.tmp
- @${SORT} -r ${WRKDIR}/dir.tmp | ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST}
+ @${PREFIX}/bin/update-desktop-database 2>/dev/null || ${TRUE}
+ @${ECHO_CMD} "@exec ${PREFIX}/bin/update-desktop-database 2>/dev/null || ${TRUE}" >> ${TMPPLIST}
+ @cd ${PREFIX} ; ${FIND} -s bin \( -type f -or -type l \) -name "${EXECBASE}*" >> ${TMPPLIST}
+ @cd ${PREFIX} ; ${FIND} -s ${INSTALLATION_BASEDIR} \( -type f -or -type l \) >> ${TMPPLIST}
+ @cd ${PREFIX} ; ${FIND} ${INSTALLATION_BASEDIR} -type d | ${SORT} -r | \
+ ${XARGS} -n 1 ${ECHO_CMD} @dirrm >> ${TMPPLIST}
@${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
@${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \
-e 's#%%INSTALLATION_BASEDIR%%#${INSTALLATION_BASEDIR}#g' \