On Wednesday 12 August 2009 14:47:47 Dima Panov wrote:
> SVN commit 5283 by fluffy:
>
> Update to KOffice-2.0.2 release
one of the optional packages mentioned in cmake is graphics/pstoedit. i've
seen that, if it's installed with the svg plugin (WITH_PLOTUTILS=yes), koffice
builds an additional library with an hardcoded call to `pstoedit` (`grep -ir
pstoedit KOFFICE_SOURCES/filters` to have a look). it means that, if you have
pstoedit installed when you build, and then you uninstall it, karbon will
crash if you try to import an eps/svg/whatever
since the svg plugin can be disabled in the pstoedit port, i've written this
little patch to add a conditional dependency in koffice (something similar to
that in kdelibs4: avahi-libdns/mdnsresponder)
i hope it's ok
--
Alberto Villa <[email protected]>
You know you're a little fat if you have stretch marks on your car.
-- Cyrus, Chicago Reader 1/22/82
--- Makefile.orig 2009-08-16 16:54:08.431732136 +0200
+++ Makefile 2009-08-16 17:19:28.807032061 +0200
@@ -55,6 +55,13 @@
CMAKE_ARGS+= -DCMAKE_INCLUDE_PATH:STRING="${LOCALBASE}/include"
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/lib/pstoedit/libp2edrvlplot.so)
+BUILD_DEPENDS+= ${LOCALBASE}/lib/pstoedit/libp2edrvlplot.so:${PORTSDIR}/graphics/pstoedit
+RUN_DEPENDS+= ${LOCALBASE}/lib/pstoedit/libp2edrvlplot.so:${PORTSDIR}/graphics/pstoedit
+.endif
+
post-patch:
# prevent updating mime during build/install
${REINPLACE_CMD} -e '/^update_xdg_mimetypes/d; /SharedMimeInfo/d' \
@@ -65,4 +72,4 @@
post-install:
@-update-mime-database ${PREFIX}/share/mime
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
_______________________________________________
kde-freebsd mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information