On Sunday 16 August 2009 17:38:23 Alberto Villa wrote: > 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
ops, forgot the plist. new patches attached -- Alberto Villa <villa.albe...@gmail.com> There's something the technicians need to learn from the artists. If it isn't aesthetically pleasing, it's probably wrong.
--- pkg-plist.orig 2009-08-16 17:55:15.232819992 +0200 +++ pkg-plist 2009-08-16 17:56:00.563591905 +0200 @@ -333,7 +333,7 @@ lib/kde4/libhtmlexport.so lib/kde4/libhtmlimport.so lib/kde4/libkarbon1ximport.so -lib/kde4/libkarbonepsimport.so +%%EPS%%lib/kde4/libkarbonepsimport.so lib/kde4/libkarbonpart.so lib/kde4/libkarbonpngexport.so lib/kde4/libkarbonsvgexport.so @@ -2466,7 +2466,7 @@ share/kde4/services/divineproportionshape.desktop share/kde4/services/generic_filter.desktop share/kde4/services/karbon_1x_import.desktop -share/kde4/services/karbon_eps_import.desktop +%%EPS%%share/kde4/services/karbon_eps_import.desktop share/kde4/services/karbon_png_export.desktop share/kde4/services/karbon_svg_export.desktop share/kde4/services/karbon_svg_import.desktop
--- Makefile.orig 2009-08-16 16:54:08.431732136 +0200 +++ Makefile 2009-08-16 17:55:10.732748099 +0200 @@ -55,6 +55,16 @@ 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 +PLIST_SUB+= EPS="" +.else +PLIST_SUB+= EPS="@comment " +.endif + post-patch: # prevent updating mime during build/install ${REINPLACE_CMD} -e '/^update_xdg_mimetypes/d; /SharedMimeInfo/d' \ @@ -65,4 +75,4 @@ post-install: @-update-mime-database ${PREFIX}/share/mime -.include <bsd.port.mk> +.include <bsd.port.post.mk>
_______________________________________________ kde-freebsd mailing list kde-freebsd@kde.org https://mail.kde.org/mailman/listinfo/kde-freebsd See also http://freebsd.kde.org/ for latest information