summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminskim <minskim>2006-12-06 06:39:37 +0000
committerminskim <minskim>2006-12-06 06:39:37 +0000
commit74b8678692cfb372981b24e2fcec5284ccb0d338 (patch)
treeb27c3e6d630f8fc51f1f4c6f110002cafcb59474
parent71f4893ea3bc644ce15a87563ca4a28c690fbdc8 (diff)
downloadpkgsrc-74b8678692cfb372981b24e2fcec5284ccb0d338.tar.gz
Add the twain plug-in to PLIST if the TWAIN framework is available.
Bump PKGREVISION.
-rw-r--r--graphics/gimp24/Makefile10
-rw-r--r--graphics/gimp24/PLIST5
2 files changed, 12 insertions, 3 deletions
diff --git a/graphics/gimp24/Makefile b/graphics/gimp24/Makefile
index 36d5b758b84..83b98f12ec4 100644
--- a/graphics/gimp24/Makefile
+++ b/graphics/gimp24/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.32 2006/12/02 08:39:18 minskim Exp $
+# $NetBSD: Makefile,v 1.33 2006/12/06 06:39:37 minskim Exp $
DISTNAME= gimp-2.3.13
-PKGREVISION=1
+PKGREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.gimp.org/pub/gimp/v2.3/ \
ftp://ftp.cs.umn.edu/pub/gimp/v2.3/ \
@@ -51,6 +51,12 @@ CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
# Ensure we export symbols in the linked shared object.
LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
+.if exists(/System/Library/Frameworks/TWAIN.framework)
+PLIST_SUBST+= TWAIN=""
+.else
+PLIST_SUBST+= TWAIN="@comment "
+.endif
+
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/aalib/buildlink3.mk"
diff --git a/graphics/gimp24/PLIST b/graphics/gimp24/PLIST
index 4378addbfec..518ad346546 100644
--- a/graphics/gimp24/PLIST
+++ b/graphics/gimp24/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.18 2006/11/30 23:41:34 adam Exp $
+@comment $NetBSD: PLIST,v 1.19 2006/12/06 06:39:37 minskim Exp $
bin/gimp-2.3
bin/gimp-console-2.3
bin/gimp-remote-2.3
@@ -367,6 +367,7 @@ lib/gimp/2.0/plug-ins/tiff
lib/gimp/2.0/plug-ins/tile
lib/gimp/2.0/plug-ins/tileit
lib/gimp/2.0/plug-ins/tiler
+${TWAIN}lib/gimp/2.0/plug-ins/twain
lib/gimp/2.0/plug-ins/uniteditor
lib/gimp/2.0/plug-ins/unsharp
lib/gimp/2.0/plug-ins/uri
@@ -987,6 +988,7 @@ share/gimp/2.0/themes/Default/images/stock-question-64.png
share/gimp/2.0/themes/Default/images/stock-warning-64.png
share/gimp/2.0/themes/Small/gtkrc
share/gimp/2.0/tips/gimp-tips.xml
+${TWAIN}share/gimp/2.0/twain/gimp-twain.png
share/gtk-doc/html/libgimp/GimpAspectPreview.html
share/gtk-doc/html/libgimp/GimpBrushSelectButton.html
share/gtk-doc/html/libgimp/GimpDrawablePreview.html
@@ -1928,6 +1930,7 @@ share/mime-info/gimp.keys
@dirrm share/gtk-doc/html/libgimpcolor
@dirrm share/gtk-doc/html/libgimpbase
@dirrm share/gtk-doc/html/libgimp
+${TWAIN}@dirrm share/gimp/2.0/twain
@dirrm share/gimp/2.0/tips
@dirrm share/gimp/2.0/themes/Small
@dirrm share/gimp/2.0/themes/Default/images/preferences