Commit 6f8c4127 authored by Barak Itkin's avatar Barak Itkin

plug-ins: add the new file-pdf-save plugin (Bug #382688)

parent 7f10c24f
......@@ -46,6 +46,7 @@ m4_define([glib_required_version], [2.24.0])
m4_define([gtk_required_version], [2.20.0])
m4_define([gdk_pixbuf_required_version], [gtk_required_version])
m4_define([cairo_required_version], [1.8.0])
m4_define([cairo_pdf_required_version], [1.8.0])
m4_define([pangocairo_required_version], [1.20.1])
m4_define([fontconfig_required_version], [2.2.0])
m4_define([gtkdoc_required_version], [1.0])
......@@ -1328,6 +1329,29 @@ fi
AC_SUBST(FILE_PDF_LOAD)
#####################
# Check for cairo-pdf
#####################
AC_ARG_WITH(cairo_pdf,[ --without-cairo-pdf build without cairo-pdf support])
have_cairo_pdf=no
if test "x$with_cairo_pdf" != xno; then
have_cairo_pdf=yes
PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf >= cairo_pdf_required_version,
FILE_PDF_LOAD='file-pdf-load$(EXEEXT)',
have_cairo_pdf="no (cairo-pdf not found)")
else
have_cairo_pdf="no (cairo-pdf support disabled)"
fi
AC_SUBST(FILE_PDF_SAVE)
## If both poppler and cairo-pdf are enabled then we have complete PDF support
if test "x$have_cairo_pdf" = xyes && test "x$have_poppler" = xyes; then
MIME_TYPES="$MIME_TYPES;application/pdf"
fi
################################
# Check for gio/gvfs and libcurl
################################
......@@ -2195,6 +2219,7 @@ Optional Plug-Ins:
JPEG 2000: $have_jp2
MNG: $have_libmng
PDF (import): $have_poppler
PDF (export): $have_cairo_pdf
PNG: $have_libpng
Print: $enable_print
PSP: $have_zlib
......
......@@ -132,6 +132,8 @@
/file-pcx.exe
/file-pdf-load
/file-pdf-load.exe
/file-pdf-save
/file-pdf-save.exe
/file-pix
/file-pix.exe
/file-png
......
......@@ -102,6 +102,7 @@ libexec_PROGRAMS = \
file-pat \
file-pcx \
$(FILE_PDF_LOAD) \
$(FILE_PDF_SAVE) \
file-pix \
$(FILE_PNG) \
file-pnm \
......@@ -187,6 +188,7 @@ EXTRA_PROGRAMS = \
file-jp2-load \
file-mng \
file-pdf-load \
file-pdf-save \
file-png \
file-psp \
file-svg \
......@@ -1217,6 +1219,25 @@ file_pdf_load_LDADD = \
$(RT_LIBS) \
$(INTLLIBS)
file_pdf_save_CFLAGS = $(CAIRO_PDF_CFLAGS)
file_pdf_save_SOURCES = \
file-pdf-save.c
file_pdf_save_LDADD = \
$(libgimpui) \
$(libgimpwidgets) \
$(libgimpmodule) \
$(libgimp) \
$(libgimpmath) \
$(libgimpconfig) \
$(libgimpcolor) \
$(libgimpbase) \
$(GTK_LIBS) \
$(CAIRO_PDF_LIBS) \
$(RT_LIBS) \
$(INTLLIBS)
file_pix_SOURCES = \
file-pix.c
......
This diff is collapsed.
......@@ -67,6 +67,7 @@
'file-png' => { ui => 1, optional => 1, libs => 'PNG_LIBS', cflags => 'PNG_CFLAGS' },
'file-pnm' => { ui => 1 },
'file-pdf-load' => { ui => 1, optional => 1, libs => 'POPPLER_LIBS', cflags => 'POPPLER_CFLAGS' },
'file-pdf-save' => { ui => 1, optional => 1, libs => 'CAIRO_PDF_LIBS', cflags => 'CAIRO_PDF_CFLAGS' },
'file-ps' => { ui => 1 },
'file-psp' => { ui => 1, optional => 1, libs => 'Z_LIBS' },
'file-raw' => { 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