[gimp/metadata-browser] configure: Setup to use libgexiv2
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] configure: Setup to use libgexiv2
- Date: Mon, 4 Mar 2013 00:33:11 +0000 (UTC)
commit 5f2bd201df6f07c7ea1e36c33e288298533fa29c
Author: Roman Joost <roman bromeco de>
Date: Tue Feb 26 14:12:15 2013 +1000
configure: Setup to use libgexiv2
configure.ac | 19 +++++++++++++++++++
plug-ins/metadata/Makefile.am | 1 +
plug-ins/metadata/tests/Makefile.am | 1 +
3 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9ea6fa4..f0f3286 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,6 +61,7 @@ m4_define([libcurl_required_version], [7.15.1])
m4_define([dbus_glib_required_version], [0.70])
m4_define([libgudev_required_version], [167])
m4_define([exif_required_version], [0.6.15])
+m4_define([gexiv2_required_version], [0.4])
m4_define([lcms_required_version], [2.2])
m4_define([libpng_required_version], [1.2.37])
m4_define([liblzma_required_version], [5.0.0])
@@ -1299,6 +1300,23 @@ AC_SUBST(EXIF_LIBS)
AM_CONDITIONAL(HAVE_LIBEXIF, test "x$have_libexif" = xyes)
+#####################
+# Check for libgexiv2
+#####################
+
+AC_ARG_WITH(libgexiv2, [ --without-libgexiv2 don't build the metadata plug-in])
+
+have_libgexiv2=no
+if test "x$with_libgexiv2" != xno; then
+ have_libgexiv2=yes
+ PKG_CHECK_MODULES(GEXIV2, gexiv2 >= gexiv2_required_version,
+ AC_DEFINE(HAVE_LIBGEXIV2, 1, [libgexi2v is available]),
+ have_libgexiv2="no (libgexiv2 not found or too old)")
+fi
+
+AM_CONDITIONAL(HAVE_LIBGEXIV2, test "x$have_libgexiv2" = xyes)
+
+
#################
# Check for libaa
#################
@@ -2383,6 +2401,7 @@ Optional Plug-Ins:
Plug-In Features:
EXIF support: $have_libexif
+ XMP support: $have_libexiv2
Optional Modules:
ALSA (MIDI Input): $have_alsa
diff --git a/plug-ins/metadata/Makefile.am b/plug-ins/metadata/Makefile.am
index 6bca0f4..69e8200 100644
--- a/plug-ins/metadata/Makefile.am
+++ b/plug-ins/metadata/Makefile.am
@@ -80,6 +80,7 @@ LDADD = \
$(libgimpcolor) \
$(libgimpbase) \
$(EXIF_LIBS) \
+ $(GEXIV2_LIBS) \
$(GTK_LIBS) \
$(RT_LIBS) \
$(INTLLIBS) \
diff --git a/plug-ins/metadata/tests/Makefile.am b/plug-ins/metadata/tests/Makefile.am
index 9153a91..137cbc2 100644
--- a/plug-ins/metadata/tests/Makefile.am
+++ b/plug-ins/metadata/tests/Makefile.am
@@ -18,6 +18,7 @@ LDADD = \
$(libgimpconfig) \
$(libgimpcolor) \
$(libgimpbase) \
+ $(GEXIV2_LIBS) \
$(GTK_LIBS) \
$(GLIB_LIBS) \
../xmp-parse.o \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]