mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
feaacaf681
commit
48046d258a
18
configure.ac
18
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
|
||||
|
|
|
@ -43,6 +43,7 @@ SUBDIRS = \
|
|||
file-jpeg \
|
||||
file-psd \
|
||||
file-sgi \
|
||||
file-tiff \
|
||||
flame \
|
||||
fractal-explorer \
|
||||
gfig \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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' },
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
/Makefile.in
|
||||
/Makefile
|
||||
/.deps
|
||||
/_libs
|
||||
/.libs
|
||||
/file-tiff-load
|
||||
/file-tiff-load.exe
|
||||
/file-tiff-save
|
||||
/file-tiff-save.exe
|
|
@ -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)
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue