Commit 6e581ca9 authored by Aurimas Juška's avatar Aurimas Juška Committed by Michael Natterer

Add JPEG2000 load plug-in written by Aurimas Juška

parent f255dcad
......@@ -1386,6 +1386,32 @@ AC_SUBST(WMF_LIBS)
AC_SUBST(WMF_CFLAGS)
#####################
# Check for libjasper
#####################
AC_ARG_WITH(libjasper, [ --without-libjasper build without JPEG-2000 support])
have_jp2=no
if test "x$with_libjasper" != xno && test -z "$JASPER_LIBS"; then
have_jp2=yes
AC_CHECK_LIB(jasper, jas_init,
FILE_JP2_LOAD='file-jp2-load$(EXEEXT)' ; JP2_LIBS=-ljasper,
[have_jp2="no (JasPer library not found)"
AC_MSG_WARN(*** JP2 plug-in will not be built (JasPer library not found) ***)])
else
have_jp2="no (JasPer support disabled)"
fi
if test "x$have_jp2" = xyes; then
MIME_TYPES="$MIME_TYPES;image/jp2;image/jpeg2000;image/jpx"
fi
AM_CONDITIONAL(BUILD_JP2, test "x$have_jp2" = xyes)
AC_SUBST(FILE_JP2_LOAD)
AC_SUBST(JP2_LIBS)
################
# Check for lcms
################
......@@ -2062,6 +2088,7 @@ Optional Plug-Ins:
Help Browser: $have_webkit
LCMS: $have_lcms
JPEG: $jpeg_ok
JPEG 2000: $have_jp2
MNG: $have_libmng
PDF: $have_poppler
PNG: $have_libpng
......
......@@ -62,6 +62,7 @@
/file-glob
/file-header
/file-html-table
/file-jp2-load
/file-mng
/file-pat
/file-pcx
......
......@@ -97,6 +97,7 @@ libexec_PROGRAMS = \
file-glob \
file-header \
file-html-table \
$(FILE_JP2_LOAD) \
$(FILE_MNG) \
file-pat \
file-pcx \
......@@ -184,6 +185,7 @@ libexec_PROGRAMS = \
EXTRA_PROGRAMS = \
file-aa \
file-jp2-load \
file-mng \
file-pdf \
file-png \
......@@ -1133,6 +1135,20 @@ file_html_table_LDADD = \
$(RT_LIBS) \
$(INTLLIBS)
file_jp2_load_SOURCES = \
file-jp2-load.c
file_jp2_load_LDADD = \
$(libgimp) \
$(libgimpmath) \
$(libgimpconfig) \
$(libgimpcolor) \
$(libgimpbase) \
$(GLIB_LIBS) \
$(JP2_LIBS) \
$(RT_LIBS) \
$(INTLLIBS)
file_mng_SOURCES = \
file-mng.c
......
This diff is collapsed.
......@@ -59,6 +59,7 @@
'file-glob' => {},
'file-header' => { ui => 1 },
'file-html-table' => { ui => 1 },
'file-jp2-load' => { optional => 1, libs => 'JP2_LIBS' },
'file-mng' => { ui => 1, optional => 1, libs => 'MNG_LIBS' },
'file-pat' => { ui => 1 },
'file-pcx' => { ui => 1 },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment