diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-08-19 00:04:22 +0000 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-08-19 00:04:22 +0000 |
commit | 77c575302597cac7ba0731230dd10355c1a3df60 (patch) | |
tree | 7ef3ec1ed845bda84f6e888590fa4de00eca1cd6 /graphics/kdegraphics2 | |
parent | 820572e359846332a3c238141f53f99385124b0a (diff) | |
download | FreeBSD-ports-77c575302597cac7ba0731230dd10355c1a3df60.zip FreeBSD-ports-77c575302597cac7ba0731230dd10355c1a3df60.tar.gz |
Add the WITH_SANE option to include sane-backends as dependency, and
compile the Kooka application.
Also, temporarily disable compilation of the Kamera stuff, which requires
gphoto2, and leave a hint in pkg-plist to enable it later (I know it's ugly
but it should at least get binary packages up and running for most people).
Diffstat (limited to 'graphics/kdegraphics2')
-rw-r--r-- | graphics/kdegraphics2/Makefile | 13 | ||||
-rw-r--r-- | graphics/kdegraphics2/pkg-plist | 80 |
2 files changed, 53 insertions, 40 deletions
diff --git a/graphics/kdegraphics2/Makefile b/graphics/kdegraphics2/Makefile index 7e45e7e..deb7acf 100644 --- a/graphics/kdegraphics2/Makefile +++ b/graphics/kdegraphics2/Makefile @@ -16,11 +16,24 @@ MAINTAINER= will@FreeBSD.org BUILD_DEPENDS= dvips:${PORTSDIR}/print/teTeX RUN_DEPENDS= dvips:${PORTSDIR}/print/teTeX +# temporarily disable kamera, it requires gphoto2 +PLIST_SUB+= KAMERA:="@comment " + +.if defined(WITH_SANE) +LIB_DEPENDS= sane.1:${PORTSDIR}/graphics/sane-backends +PLIST_SUB+= SANE:="" +.else +PLIST_SUB+= SANE:="@comment " +pre-everything:: + @${ECHO_MSG} "===> If you want to compile this port with scanner support, use \"make WITH_SANE=yes\"" +.endif + USE_KDELIBS_VER=2 USE_BZIP2= yes INSTALLS_SHLIB= yes GNU_CONFIGURE= yes USE_GMAKE= yes +CONFIGURE_ARGS+=--without-kamera pre-configure: ${PERL} -pi -e "s@libkscan_la_LIBADD =@libkscan_la_LIBADD= -lintl@g" ${WRKSRC}/libkscan/Makefile.in diff --git a/graphics/kdegraphics2/pkg-plist b/graphics/kdegraphics2/pkg-plist index c228c5e..6602632 100644 --- a/graphics/kdegraphics2/pkg-plist +++ b/graphics/kdegraphics2/pkg-plist @@ -5,34 +5,34 @@ bin/kfax bin/kfract bin/kghostview bin/kiconedit -bin/kooka +%%SANE:%%bin/kooka bin/kpaint bin/kruler bin/ksnapshot bin/kview bin/kviewshell -include/devselector.h -include/dispgamma.h -include/gammadialog.h -include/img_canvas.h -include/imgscaledialog.h -include/kgammatable.h -include/kscandevice.h -include/kscanoption.h -include/kscanoptset.h -include/kscanslider.h -include/massscandialog.h -include/previewer.h -include/scanparams.h -include/scansourcedialog.h +%%SANE:%%include/devselector.h +%%SANE:%%include/dispgamma.h +%%SANE:%%include/gammadialog.h +%%SANE:%%include/img_canvas.h +%%SANE:%%include/imgscaledialog.h +%%SANE:%%include/kgammatable.h +%%SANE:%%include/kscandevice.h +%%SANE:%%include/kscanoption.h +%%SANE:%%include/kscanoptset.h +%%SANE:%%include/kscanslider.h +%%SANE:%%include/massscandialog.h +%%SANE:%%include/previewer.h +%%SANE:%%include/scanparams.h +%%SANE:%%include/scansourcedialog.h lib/kcolorchooser.la lib/kcolorchooser.so -lib/kio_kamera.la -lib/kio_kamera.so +%%KAMERA:%%lib/kio_kamera.la +%%KAMERA:%%lib/kio_kamera.so lib/kview.la lib/kview.so -lib/libkcm_kamera.la -lib/libkcm_kamera.so +%%KAMERA:%%lib/libkcm_kamera.la +%%KAMERA:%%lib/libkcm_kamera.so lib/libkdvi.la lib/libkdvi.so lib/libkfax.la @@ -45,9 +45,9 @@ lib/libkmultipage.so lib/libkmultipage.so.0 lib/libkpagetest.la lib/libkpagetest.so -lib/libkscan.la -lib/libkscan.so -lib/libkscan.so.1 +%%SANE:%%lib/libkscan.la +%%SANE:%%lib/libkscan.so +%%SANE:%%lib/libkscan.so.1 lib/libkviewerpart.la lib/libkviewerpart.so lib/libkviewpart.la @@ -63,8 +63,8 @@ share/applnk/Graphics/kpaint.desktop share/applnk/Graphics/kruler.desktop share/applnk/Graphics/ksnapshot.desktop share/applnk/Graphics/kview.desktop -share/applnk/Settings/Peripherals/kamera.desktop -share/applnk/Utilities/kooka.desktop +%%KAMERA:%%share/applnk/Settings/Peripherals/kamera.desktop +%%SANE:%%share/applnk/Utilities/kooka.desktop share/apps/kdvi/kdvi_part.rc share/apps/kdvi/toolbar/forwpage.xpm share/apps/kdvi/toolbar/largetext.xpm @@ -105,16 +105,16 @@ share/apps/kiconedit/toolbar/selectrect.png share/apps/kiconedit/toolbar/spraycan-cursor.xpm share/apps/kiconedit/toolbar/spraycan.png share/apps/kiconedit/toolbar/transform.png -share/apps/kooka/kookaui.rc -share/apps/kooka/pics/mirror-both.png -share/apps/kooka/pics/mirror-horiz.png -share/apps/kooka/pics/mirror-vert.png -share/apps/kooka/pics/newfromselect.png -share/apps/kooka/pics/ocr-select.png -share/apps/kooka/pics/ocr.png -share/apps/kooka/pics/scaleorig.png -share/apps/kooka/pics/scaletoheight.png -share/apps/kooka/pics/scaletowidth.png +%%SANE:%%share/apps/kooka/kookaui.rc +%%SANE:%%share/apps/kooka/pics/mirror-both.png +%%SANE:%%share/apps/kooka/pics/mirror-horiz.png +%%SANE:%%share/apps/kooka/pics/mirror-vert.png +%%SANE:%%share/apps/kooka/pics/newfromselect.png +%%SANE:%%share/apps/kooka/pics/ocr-select.png +%%SANE:%%share/apps/kooka/pics/ocr.png +%%SANE:%%share/apps/kooka/pics/scaleorig.png +%%SANE:%%share/apps/kooka/pics/scaletoheight.png +%%SANE:%%share/apps/kooka/pics/scaletowidth.png share/apps/kpaint/kpaint.rc share/apps/kpaint/toolbar/areaselect.xpm share/apps/kpaint/toolbar/brush.xpm @@ -180,10 +180,10 @@ share/doc/HTML/en/kview/snapshot6.png share/doc/HTML/en/kview/snapshot7.png share/doc/HTML/en/kview/snapshot8.png share/doc/HTML/en/kview/snapshot9.png -share/icons/hicolor/16x16/actions/palette_color.png -share/icons/hicolor/16x16/actions/palette_gray.png -share/icons/hicolor/16x16/actions/palette_halftone.png -share/icons/hicolor/16x16/actions/palette_lineart.png +%%SANE:%%share/icons/hicolor/16x16/actions/palette_color.png +%%SANE:%%share/icons/hicolor/16x16/actions/palette_gray.png +%%SANE:%%share/icons/hicolor/16x16/actions/palette_halftone.png +%%SANE:%%share/icons/hicolor/16x16/actions/palette_lineart.png share/icons/hicolor/16x16/apps/kcoloredit.png share/icons/hicolor/16x16/apps/kdvi.png share/icons/hicolor/16x16/apps/kfax.png @@ -215,8 +215,8 @@ share/icons/hicolor/48x48/apps/ksnapshot.png share/icons/hicolor/48x48/apps/kview.png share/icons/locolor/16x16/apps/kcoloredit.png share/icons/locolor/32x32/apps/kcoloredit.png -share/services/kamera.protocol -share/services/scanservice.desktop +%%KAMERA:%%share/services/kamera.protocol +%%SANE:%%share/services/scanservice.desktop @dirrm share/icons/locolor/32x32/apps @dirrm share/icons/locolor/16x16/apps @dirrm share/icons/hicolor/48x48/apps |