[gimp] configure.ac, plug-ins: make libtiff a hard dependency
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] configure.ac, plug-ins: make libtiff a hard dependency
- Date: Wed, 2 Dec 2015 11:36:14 +0000 (UTC)
commit 48046d258a945276458db5c0056459b8122dab07
Author: Michael Natterer <mitch gimp org>
Date: Wed Dec 2 12:33:31 2015 +0100
configure.ac, plug-ins: make libtiff a hard dependency
so file-tiff-load and file-tiff-save are always built. Also move them
to their own folder plug-ins/file-tiff/ because they will soon share
some common GIO code.
configure.ac | 18 ++-----
plug-ins/Makefile.am | 1 +
plug-ins/common/.gitignore | 4 --
plug-ins/common/Makefile.am | 42 ---------------
plug-ins/common/gimprc.common | 2 -
plug-ins/common/plugin-defs.pl | 2 -
plug-ins/file-tiff/.gitignore | 9 +++
plug-ins/file-tiff/Makefile.am | 62 +++++++++++++++++++++++
plug-ins/{common => file-tiff}/file-tiff-load.c | 0
plug-ins/{common => file-tiff}/file-tiff-save.c | 0
po-plug-ins/POTFILES.in | 4 +-
11 files changed, 79 insertions(+), 65 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ef100a9..018d70b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1223,10 +1223,8 @@ MIME_TYPES="image/bmp;image/g3fax;image/gif;image/x-fits;image/x-pcx;image/x-por
# Check for libtiff
###################
-AC_ARG_WITH(libtiff, [ --without-libtiff build without TIFF support])
-
have_libtiff=no
-if test "x$with_libtiff" != xno && test -z "$TIFF_LIBS"; then
+if test -z "$TIFF_LIBS"; then
have_libtiff=yes
AC_CHECK_LIB(tiff, TIFFReadScanline,
[AC_CHECK_HEADER(tiffio.h,
@@ -1243,18 +1241,12 @@ if test "x$with_libtiff" != xno && test -z "$TIFF_LIBS"; then
[have_libtiff="no (TIFF library not found)"], -ljpeg -lz -lm)], -ljpeg -lz -lm)], -lm)
fi
-if test "x$with_libtiff" != xno && test -z "$TIFF_LIBS"; then
- AC_MSG_ERROR([
-*** Checks for TIFF library failed. You can build without it by passing
-*** --without-libtiff to configure but you won't be able to use TIFFs then.])
+if test -z "$TIFF_LIBS"; then
+ AC_MSG_ERROR([Checks for TIFF library failed])
fi
-if test "x$have_libtiff" = xyes; then
- MIME_TYPES="$MIME_TYPES;image/tiff"
-fi
+MIME_TYPES="$MIME_TYPES;image/tiff"
-AC_SUBST(FILE_TIFF_LOAD)
-AC_SUBST(FILE_TIFF_SAVE)
AC_SUBST(TIFF_LIBS)
@@ -2306,6 +2298,7 @@ plug-ins/file-ico/Makefile
plug-ins/file-jpeg/Makefile
plug-ins/file-psd/Makefile
plug-ins/file-sgi/Makefile
+plug-ins/file-tiff/Makefile
plug-ins/flame/Makefile
plug-ins/fractal-explorer/Makefile
plug-ins/fractal-explorer/examples/Makefile
@@ -2462,7 +2455,6 @@ Optional Plug-Ins:
Python 2: $enable_python
Script-Fu: $have_script_fu
SVG: $have_librsvg
- TIFF: $have_libtiff
TWAIN (MacOS X): $mac_twain_ok
TWAIN (Win32): $os_win32
Webpage: $have_webkit
diff --git a/plug-ins/Makefile.am b/plug-ins/Makefile.am
index ab304d0..cb7ff14 100644
--- a/plug-ins/Makefile.am
+++ b/plug-ins/Makefile.am
@@ -43,6 +43,7 @@ SUBDIRS = \
file-jpeg \
file-psd \
file-sgi \
+ file-tiff \
flame \
fractal-explorer \
gfig \
diff --git a/plug-ins/common/.gitignore b/plug-ins/common/.gitignore
index f661e5c..61c986d 100644
--- a/plug-ins/common/.gitignore
+++ b/plug-ins/common/.gitignore
@@ -110,10 +110,6 @@
/file-svg.exe
/file-tga
/file-tga.exe
-/file-tiff-load
-/file-tiff-load.exe
-/file-tiff-save
-/file-tiff-save.exe
/file-wmf
/file-wmf.exe
/file-xbm
diff --git a/plug-ins/common/Makefile.am b/plug-ins/common/Makefile.am
index 899a817..f419a3e 100644
--- a/plug-ins/common/Makefile.am
+++ b/plug-ins/common/Makefile.am
@@ -98,8 +98,6 @@ libexec_PROGRAMS = \
file-sunras \
$(FILE_SVG) \
file-tga \
- $(FILE_TIFF_LOAD) \
- $(FILE_TIFF_SAVE) \
$(FILE_WMF) \
file-xbm \
$(FILE_XMC) \
@@ -148,8 +146,6 @@ EXTRA_PROGRAMS = \
file-pdf-save \
file-ps \
file-svg \
- file-tiff-load \
- file-tiff-save \
file-wmf \
file-xmc \
file-xpm \
@@ -1126,44 +1122,6 @@ file_tga_LDADD = \
$(INTLLIBS) \
$(file_tga_RC)
-file_tiff_load_SOURCES = \
- file-tiff-load.c
-
-file_tiff_load_LDADD = \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpmodule) \
- $(libgimp) \
- $(libgimpmath) \
- $(libgimpconfig) \
- $(libgimpcolor) \
- $(libgimpbase) \
- $(GTK_LIBS) \
- $(GEGL_LIBS) \
- $(TIFF_LIBS) \
- $(RT_LIBS) \
- $(INTLLIBS) \
- $(file_tiff_load_RC)
-
-file_tiff_save_SOURCES = \
- file-tiff-save.c
-
-file_tiff_save_LDADD = \
- $(libgimpui) \
- $(libgimpwidgets) \
- $(libgimpmodule) \
- $(libgimp) \
- $(libgimpmath) \
- $(libgimpconfig) \
- $(libgimpcolor) \
- $(libgimpbase) \
- $(GTK_LIBS) \
- $(GEGL_LIBS) \
- $(TIFF_LIBS) \
- $(RT_LIBS) \
- $(INTLLIBS) \
- $(file_tiff_save_RC)
-
file_wmf_CFLAGS = $(WMF_CFLAGS)
file_wmf_SOURCES = \
diff --git a/plug-ins/common/gimprc.common b/plug-ins/common/gimprc.common
index 1045642..0ff328d 100644
--- a/plug-ins/common/gimprc.common
+++ b/plug-ins/common/gimprc.common
@@ -52,8 +52,6 @@ file_raw_data_RC = file-raw-data.rc.o
file_sunras_RC = file-sunras.rc.o
file_svg_RC = file-svg.rc.o
file_tga_RC = file-tga.rc.o
-file_tiff_load_RC = file-tiff-load.rc.o
-file_tiff_save_RC = file-tiff-save.rc.o
file_wmf_RC = file-wmf.rc.o
file_xbm_RC = file-xbm.rc.o
file_xmc_RC = file-xmc.rc.o
diff --git a/plug-ins/common/plugin-defs.pl b/plug-ins/common/plugin-defs.pl
index a402065..f18418c 100644
--- a/plug-ins/common/plugin-defs.pl
+++ b/plug-ins/common/plugin-defs.pl
@@ -53,8 +53,6 @@
'file-sunras' => { ui => 1, gegl => 1 },
'file-svg' => { ui => 1, optional => 1, libs => 'SVG_LIBS', cflags => 'SVG_CFLAGS' },
'file-tga' => { ui => 1, gegl => 1 },
- 'file-tiff-load' => { ui => 1, gegl => 1, optional => 1, libs => 'TIFF_LIBS' },
- 'file-tiff-save' => { ui => 1, gegl => 1, optional => 1, libs => 'TIFF_LIBS' },
'file-wmf' => { ui => 1, gegl => 1, optional => 1, libs => 'WMF_LIBS', cflags => 'WMF_CFLAGS' },
'file-xbm' => { ui => 1, gegl => 1 },
'file-xmc' => { ui => 1, gegl => 1, optional => 1, libs => 'XMC_LIBS' },
diff --git a/plug-ins/file-tiff/.gitignore b/plug-ins/file-tiff/.gitignore
new file mode 100644
index 0000000..5936c50
--- /dev/null
+++ b/plug-ins/file-tiff/.gitignore
@@ -0,0 +1,9 @@
+/Makefile.in
+/Makefile
+/.deps
+/_libs
+/.libs
+/file-tiff-load
+/file-tiff-load.exe
+/file-tiff-save
+/file-tiff-save.exe
diff --git a/plug-ins/file-tiff/Makefile.am b/plug-ins/file-tiff/Makefile.am
new file mode 100644
index 0000000..0fa9dd1
--- /dev/null
+++ b/plug-ins/file-tiff/Makefile.am
@@ -0,0 +1,62 @@
+## Process this file with automake to produce Makefile.in
+
+libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
+libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
+libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
+libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
+libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
+libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
+libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la
+
+if OS_WIN32
+mwindows = -mwindows
+endif
+
+if HAVE_WINDRES
+include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
+file_tiff_load_RC = file-tiff-load.rc.o
+file_tiff_save_RC = file-tiff-save.rc.o
+endif
+
+AM_LDFLAGS = $(mwindows)
+
+libexecdir = $(gimpplugindir)/plug-ins
+
+AM_CPPFLAGS = \
+ -I$(top_srcdir) \
+ $(GTK_CFLAGS) \
+ $(EXIF_CFLAGS) \
+ $(LCMS_CFLAGS) \
+ $(GEGL_CFLAGS) \
+ $(GEXIV2_CFLAGS) \
+ -I$(includedir)
+
+libexec_PROGRAMS = file-tiff-load file-tiff-save
+
+file_tiff_load_SOURCES = \
+ file-tiff-load.c
+
+file_tiff_save_SOURCES = \
+ file-tiff-save.c
+
+ldadd = \
+ $(libgimpui) \
+ $(libgimpwidgets) \
+ $(libgimpconfig) \
+ $(libgimp) \
+ $(libgimpcolor) \
+ $(libgimpmath) \
+ $(libgimpbase) \
+ $(TIFF_LIBS) \
+ $(GTK_LIBS) \
+ $(GEGL_LIBS) \
+ $(RT_LIBS) \
+ $(INTLLIBS)
+
+file_tiff_load_LDADD = \
+ $(ldadd) \
+ $(file_tiff_load_RC)
+
+file_tiff_save_LDADD = \
+ $(ldadd) \
+ $(file_tiff_load_RC)
diff --git a/plug-ins/common/file-tiff-load.c b/plug-ins/file-tiff/file-tiff-load.c
similarity index 100%
rename from plug-ins/common/file-tiff-load.c
rename to plug-ins/file-tiff/file-tiff-load.c
diff --git a/plug-ins/common/file-tiff-save.c b/plug-ins/file-tiff/file-tiff-save.c
similarity index 100%
rename from plug-ins/common/file-tiff-save.c
rename to plug-ins/file-tiff/file-tiff-save.c
diff --git a/po-plug-ins/POTFILES.in b/po-plug-ins/POTFILES.in
index 27c70eb..081a81c 100644
--- a/po-plug-ins/POTFILES.in
+++ b/po-plug-ins/POTFILES.in
@@ -57,8 +57,6 @@ plug-ins/common/file-raw-data.c
plug-ins/common/file-sunras.c
plug-ins/common/file-svg.c
plug-ins/common/file-tga.c
-plug-ins/common/file-tiff-load.c
-plug-ins/common/file-tiff-save.c
plug-ins/common/file-wmf.c
plug-ins/common/file-xbm.c
plug-ins/common/file-xmc.c
@@ -119,6 +117,8 @@ plug-ins/file-psd/psd-thumb-load.c
plug-ins/file-psd/psd-util.c
plug-ins/file-psd/psd.c
plug-ins/file-sgi/sgi.c
+plug-ins/file-tiff/file-tiff-load.c
+plug-ins/file-tiff/file-tiff-save.c
plug-ins/flame/flame.c
plug-ins/fractal-explorer/fractal-explorer-dialogs.c
plug-ins/fractal-explorer/fractal-explorer.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]