gimp_2.3.8.bb : fix configure.in so it is possible to disable libwmf
authorGraeme Gregory <dp@xora.org.uk>
Wed, 31 May 2006 09:49:03 +0000 (09:49 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 31 May 2006 09:49:03 +0000 (09:49 +0000)
with a --without-libwmf argument.

packages/gimp/files/.mtn2git_empty [new file with mode: 0644]
packages/gimp/files/configure-libwmf.patch [new file with mode: 0644]
packages/gimp/gimp_2.3.8.bb

diff --git a/packages/gimp/files/.mtn2git_empty b/packages/gimp/files/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/gimp/files/configure-libwmf.patch b/packages/gimp/files/configure-libwmf.patch
new file mode 100644 (file)
index 0000000..ca3697c
--- /dev/null
@@ -0,0 +1,21 @@
+--- gimp-2.3.8/configure.in.orig       2006-05-31 10:16:40.000000000 +0100
++++ gimp-2.3.8/configure.in    2006-05-31 10:18:56.000000000 +0100
+@@ -1342,7 +1342,10 @@
+ # Check for libwmf2
+ ###################
++AC_ARG_WITH(libwmf, [  --without-libwmf          build without libwmf support])
++
+ have_libwmf=no
++if test "x$with_libwmf" != xno; then
+ AC_PATH_PROG(WMF_CONFIG, libwmf-config, no)
+ if test "x$WMF_CONFIG" != "xno" ; then
+   have_libwmf=yes
+@@ -1359,6 +1362,7 @@
+ else
+   have_libwmf="no (libwmf not found)"
+ fi
++fi
+ AC_SUBST(LIBWMF)
+ AC_SUBST(WMF_CFLAGS)
index 89d9be3..84b35b1 100644 (file)
@@ -3,7 +3,8 @@ HOMEPAGE =      "http://www.gimp.org"
 LICENSE =      "GPL"
 MAINTAINER =   "Koen Kooi <koen@handhelds.org>"
 
-SRC_URI =      "ftp://ftp.gimp.org/pub/gimp/v2.3/gimp-${PV}.tar.bz2"
+SRC_URI =      "ftp://ftp.gimp.org/pub/gimp/v2.3/gimp-${PV}.tar.bz2 \
+                 file://configure-libwmf.patch;patch=1"
 
 DEPENDS =      "sed-native libart-lgpl gtk+ jpeg libpng libexif tiff"
 
@@ -12,7 +13,8 @@ inherit autotools pkgconfig
 EXTRA_OECONF =         " --disable-gtktest \
                --disable-print \
                --disable-python \
-               --enable-mp"
+               --enable-mp \
+               --without-libwmf"
 
 do_configure_append() {
        find ${S} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g