added a check for librsvg-2.0.

2003-09-18  Sven Neumann  <sven@gimp.org>

	* configure.in: added a check for librsvg-2.0.

	* plug-ins/common/mkgen.pl
	* plug-ins/common/svg.c: added SVG import plug-in. This plug-in
	was written by Dom Lachowicz and used to live in the librsvg source
	tree (bug #103039).

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl: regenerated.
This commit is contained in:
Sven Neumann 2003-09-18 01:42:04 +00:00 committed by Sven Neumann
parent 90bf56c75b
commit 81fba62c35
9 changed files with 74 additions and 19 deletions

View File

@ -1,3 +1,15 @@
2003-09-18 Sven Neumann <sven@gimp.org>
* configure.in: added a check for librsvg-2.0.
* plug-ins/common/mkgen.pl
* plug-ins/common/svg.c: added SVG import plug-in. This plug-in
was written by Dom Lachowicz and used to live in the librsvg source
tree (bug #103039).
* plug-ins/common/Makefile.am
* plug-ins/common/plugin-defs.pl: regenerated.
2003-09-18 Simon Budig <simon@gimp.org>
* app/tools/gimpvectortool.c: Cursor keys now move the currently

View File

@ -25,6 +25,7 @@ GIMPPRINT_REQUIRED_VERSION=4.2.0
GIMPPRINT_TOONEW_VERSION=4.3.0
AC_SUBST(FONTCONFIG_REQUIRED_VERSION)
AC_SUBST(PANGOFT2_REQUIRED_VERSION)
AC_SUBST(GTK_REQUIRED_VERSION)
AC_SUBST(GIMPPRINT_REQUIRED_VERSION)
AC_SUBST(GIMPPRINT_TOONEW_VERSION)
@ -934,6 +935,19 @@ AC_SUBST(GTKHTML2_LIBS)
AM_CONDITIONAL(BUILD_HELPBROWSER, test x$have_gtkhtml2 = xyes)
###################
# Check for librsvg
###################
PKG_CHECK_MODULES(SVG, librsvg-2.0,
SVG=svg
LIBSVG=$SVG_LIBS,
AC_MSG_WARN([*** SVG import plug-in will not be built (librsvg not found) ***]))
AC_SUBST(SVG)
AC_SUBST(SVG_CFLAGS)
AC_SUBST(LIBSVG)
######################
# Check for gimp-print
######################

View File

@ -112,6 +112,7 @@ spheredesigner
spread
struc
sunras
svg
tga
threshold_alpha
tiff

View File

@ -13,10 +13,11 @@ EXTRA_DIST = \
plugin-defs.pl
INCLUDES = \
-I$(top_srcdir) \
@GTK_CFLAGS@ \
@X_CFLAGS@ \
@EXIF_CFLAGS@ \
-I$(top_srcdir) \
@GTK_CFLAGS@ \
@X_CFLAGS@ \
@EXIF_CFLAGS@ \
@SVG_CFLAGS@ \
-I$(includedir)
libexec_PROGRAMS = \
@ -130,6 +131,7 @@ libexec_PROGRAMS = \
spread \
struc \
sunras \
$(SVG) \
tga \
threshold_alpha \
$(TIFF) \
@ -163,6 +165,7 @@ EXTRA_PROGRAMS = \
png \
psp \
screenshot \
svg \
tiff \
url \
winclipboard \
@ -1480,6 +1483,19 @@ sunras_LDADD = \
@GTK_LIBS@ \
@INTLLIBS@
svg_SOURCES = \
svg.c
svg_LDADD = \
$(top_builddir)/libgimp/libgimpui-$(LT_RELEASE).la \
$(top_builddir)/libgimpwidgets/libgimpwidgets-$(LT_RELEASE).la \
$(top_builddir)/libgimp/libgimp-$(LT_RELEASE).la \
$(top_builddir)/libgimpcolor/libgimpcolor-$(LT_RELEASE).la \
$(top_builddir)/libgimpbase/libgimpbase-$(LT_RELEASE).la \
$(LIBSVG) \
@GTK_LIBS@ \
@INTLLIBS@
tga_SOURCES = \
tga.c

View File

@ -53,10 +53,11 @@ EXTRA_DIST = \\
plugin-defs.pl$extra
INCLUDES = \\
-I\$(top_srcdir) \\
\@GTK_CFLAGS\@ \\
\@X_CFLAGS\@ \\
\@EXIF_CFLAGS\@ \\
-I\$(top_srcdir) \\
\@GTK_CFLAGS\@ \\
\@X_CFLAGS\@ \\
\@EXIF_CFLAGS\@ \\
\@SVG_CFLAGS\@ \\
-I\$(includedir)
libexec_PROGRAMS = \\

View File

@ -109,6 +109,7 @@
'spread' => { libdep => 'gtk', ui => 1 },
'struc' => { libdep => 'gtk', ui => 1 },
'sunras' => { libdep => 'gtk', ui => 1 },
'svg' => { libdep => 'gtk', ui => 1, optional => 1 },
'tga' => { libdep => 'gtk', ui => 1 },
'threshold_alpha' => { libdep => 'gtk', ui => 1 },
'tiff' => { libdep => 'gtk', ui => 1, optional => 1 },

View File

@ -28,12 +28,19 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rsvg.h>
#include <librsvg/rsvg.h>
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
#define VERSION "2.4.0"
typedef struct
{
double scale;
@ -60,15 +67,12 @@ typedef struct
GtkAdjustment *scale;
} LoadDialogVals;
/* TODO: remove me, initialize gimp i18n services */
#define _(String) (String)
static void query (void);
static void run (const gchar *name,
gint nparams,
const GimpParam *param,
gint *nreturn_vals,
GimpParam **return_vals);
static void query (void);
static void run (const gchar *name,
gint nparams,
const GimpParam *param,
gint *nreturn_vals,
GimpParam **return_vals);
GimpPlugInInfo PLUG_IN_INFO = {
NULL, /* init_proc */

View File

@ -1,3 +1,7 @@
2003-09-18 Sven Neumann <sven@gimp.org>
* POTFILES.in: added new files.
2003-09-17 Danilo Šegan <dsegan@gmx.net>
* sr.po, sr@Latn.po: Minor update to Serbian translation.

View File

@ -59,9 +59,9 @@ plug-ins/common/gee.c
plug-ins/common/gee_zoom.c
plug-ins/common/gicon.c
plug-ins/common/gif.c
plug-ins/common/gih.c
plug-ins/common/gifload.c
plug-ins/common/gih.c
plug-ins/common/gih.c
plug-ins/common/glasstile.c
plug-ins/common/gqbist.c
plug-ins/common/gradmap.c
@ -121,6 +121,7 @@ plug-ins/common/spheredesigner.c
plug-ins/common/spread.c
plug-ins/common/struc.c
plug-ins/common/sunras.c
plug-ins/common/svg.c
plug-ins/common/tga.c
plug-ins/common/threshold_alpha.c
plug-ins/common/tiff.c
@ -168,6 +169,7 @@ plug-ins/gimpressionist/preview.c
plug-ins/gimpressionist/repaint.c
plug-ins/gimpressionist/size.c
plug-ins/gimpressionist/sizemap.c
plug-ins/helpbrowser/dialog.c
plug-ins/helpbrowser/helpbrowser.c
plug-ins/ifscompose/ifscompose.c
plug-ins/imagemap/imap_about.c