summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2019-05-29 12:34:52 +0000
committerwiz <wiz@pkgsrc.org>2019-05-29 12:34:52 +0000
commitb709bf79a0d37b85819bd812bdf0aff11d81f73f (patch)
treefcc8bcb41ce23891ade8e72c1bb6c7d287ab79bf /graphics
parentf1fed94ab5e273f8aebff65e6057359f79ffda8e (diff)
downloadpkgsrc-b709bf79a0d37b85819bd812bdf0aff11d81f73f.tar.gz
graphics/librsvg-c: re-import librsvg-2.40.20nb4 (previously in graphics/librsvg)
librsvg is Raph's scalable vector graphics library. It provides support for SVG graphics, and is used by the GNOME desktop. This package provides the librsvg library as well as some addons -- a pixbuf loader and a theme engine -- for the GTK+ toolkit. This package provides the older 2.40.x branch of librsvg that is written in plain C.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/librsvg-c/DESCR8
-rw-r--r--graphics/librsvg-c/Makefile61
-rw-r--r--graphics/librsvg-c/PLIST41
-rw-r--r--graphics/librsvg-c/distinfo7
-rw-r--r--graphics/librsvg-c/patches/patch-test-driver15
5 files changed, 132 insertions, 0 deletions
diff --git a/graphics/librsvg-c/DESCR b/graphics/librsvg-c/DESCR
new file mode 100644
index 00000000000..b366d9b88e2
--- /dev/null
+++ b/graphics/librsvg-c/DESCR
@@ -0,0 +1,8 @@
+librsvg is Raph's scalable vector graphics library. It provides support for
+SVG graphics, and is used by the GNOME desktop.
+
+This package provides the librsvg library as well as some addons -- a pixbuf
+loader and a theme engine -- for the GTK+ toolkit.
+
+This package provides the older 2.40.x branch of librsvg that is written
+in plain C.
diff --git a/graphics/librsvg-c/Makefile b/graphics/librsvg-c/Makefile
new file mode 100644
index 00000000000..be8cde3bf4d
--- /dev/null
+++ b/graphics/librsvg-c/Makefile
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile,v 1.1 2019/05/29 12:34:52 wiz Exp $
+
+DISTNAME= librsvg-2.40.20
+PKGREVISION= 4
+CATEGORIES= graphics gnome
+MASTER_SITES= ${MASTER_SITE_GNOME:=sources/librsvg/${PKGVERSION_NOREV:R}/}
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://wiki.gnome.org/LibRsvg
+COMMENT= SVG library for GNOME (2.40.xx branch, C only)
+LICENSE= gnu-lgpl-v2
+
+CONFLICTS+= librsvg2-gtk-[0-9]* librsvg2-[0-9]*
+
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config gmake
+USE_LANGUAGES+= c c++
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --disable-tools
+CONFIGURE_ARGS+= --enable-Bsymbolic=auto
+
+PKGCONFIG_OVERRIDE= librsvg.pc.in
+
+TEST_TARGET= check
+
+CONFIGURE_ARGS.Darwin+= --disable-Bsymbolic
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.librsvg
+PKG_SUPPORTED_OPTIONS= introspection
+PKG_SUGGESTED_OPTIONS= introspection
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= introspection
+
+.if !empty(PKG_OPTIONS:Mintrospection)
+PLIST.introspection= yes
+CONFIGURE_ARGS+= --enable-introspection
+BUILDLINK_DEPMETHOD.gobject-introspection+= build
+.include "../../devel/gobject-introspection/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-introspection
+.endif
+
+BUILDLINK_API_DEPENDS.glib2+= glib2>=2.24.0
+.include "../../devel/glib2/buildlink3.mk"
+BUILDLINK_API_DEPENDS.pango+= pango>=1.38
+.include "../../devel/pango/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+BUILDLINK_API_DEPENDS.cairo+= cairo>=1.2.0
+.include "../../graphics/cairo/buildlink3.mk"
+BUILDLINK_DEPMETHOD.cairo-gobject+= build
+.include "../../graphics/cairo-gobject/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/gdk-pixbuf2/loaders.mk"
+BUILDLINK_API_DEPENDS.libcroco+= libcroco>=0.6.1
+.include "../../textproc/libcroco/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libxml2+= libxml2>=2.9
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/librsvg-c/PLIST b/graphics/librsvg-c/PLIST
new file mode 100644
index 00000000000..602d6308762
--- /dev/null
+++ b/graphics/librsvg-c/PLIST
@@ -0,0 +1,41 @@
+@comment $NetBSD: PLIST,v 1.1 2019/05/29 12:34:52 wiz Exp $
+bin/rsvg-convert
+include/librsvg-2.0/librsvg/librsvg-enum-types.h
+include/librsvg-2.0/librsvg/librsvg-features.h
+include/librsvg-2.0/librsvg/rsvg-cairo.h
+include/librsvg-2.0/librsvg/rsvg.h
+lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la
+${PLIST.introspection}lib/girepository-1.0/Rsvg-2.0.typelib
+lib/librsvg-2.la
+lib/pkgconfig/librsvg-2.0.pc
+man/man1/rsvg-convert.1
+${PLIST.introspection}share/gir-1.0/Rsvg-2.0.gir
+share/gtk-doc/html/rsvg-2.0/RsvgHandle.html
+share/gtk-doc/html/rsvg-2.0/annotation-glossary.html
+share/gtk-doc/html/rsvg-2.0/api-index-2-14.html
+share/gtk-doc/html/rsvg-2.0/api-index-2-22.html
+share/gtk-doc/html/rsvg-2.0/api-index-2-32.html
+share/gtk-doc/html/rsvg-2.0/api-index-2-36.html
+share/gtk-doc/html/rsvg-2.0/api-index-2-4.html
+share/gtk-doc/html/rsvg-2.0/api-index-2-8.html
+share/gtk-doc/html/rsvg-2.0/api-index-2-9.html
+share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html
+share/gtk-doc/html/rsvg-2.0/api-index-full.html
+share/gtk-doc/html/rsvg-2.0/home.png
+share/gtk-doc/html/rsvg-2.0/index.html
+share/gtk-doc/html/rsvg-2.0/left-insensitive.png
+share/gtk-doc/html/rsvg-2.0/left.png
+share/gtk-doc/html/rsvg-2.0/licence.html
+share/gtk-doc/html/rsvg-2.0/object-tree.html
+share/gtk-doc/html/rsvg-2.0/right-insensitive.png
+share/gtk-doc/html/rsvg-2.0/right.png
+share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2
+share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html
+share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html
+share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html
+share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html
+share/gtk-doc/html/rsvg-2.0/rsvg.html
+share/gtk-doc/html/rsvg-2.0/style.css
+share/gtk-doc/html/rsvg-2.0/up-insensitive.png
+share/gtk-doc/html/rsvg-2.0/up.png
+share/thumbnailers/librsvg.thumbnailer
diff --git a/graphics/librsvg-c/distinfo b/graphics/librsvg-c/distinfo
new file mode 100644
index 00000000000..b95ed1f2da4
--- /dev/null
+++ b/graphics/librsvg-c/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/05/29 12:34:52 wiz Exp $
+
+SHA1 (librsvg-2.40.20.tar.xz) = 244441b0f83ea8b3888cea2e9337eed3426f0149
+RMD160 (librsvg-2.40.20.tar.xz) = e697e1220779f77e81a890718ef5cda5b5e6b740
+SHA512 (librsvg-2.40.20.tar.xz) = cdd8224deb4c3786e29f48ed02c32ed9dff5cb15aba574a5ef845801ad3669cfcc3eedb9d359c22213dc7a29de24c363248825adad5877c40abf73b3688ff12f
+Size (librsvg-2.40.20.tar.xz) = 1796376 bytes
+SHA1 (patch-test-driver) = 802362f69cc54ce59483715f4c943d629a1680a7
diff --git a/graphics/librsvg-c/patches/patch-test-driver b/graphics/librsvg-c/patches/patch-test-driver
new file mode 100644
index 00000000000..232c07a5995
--- /dev/null
+++ b/graphics/librsvg-c/patches/patch-test-driver
@@ -0,0 +1,15 @@
+$NetBSD: patch-test-driver,v 1.1 2019/05/29 12:34:52 wiz Exp $
+
+Fix unportable test(1) operator.
+
+--- test-driver.orig 2017-07-20 01:11:47.000000000 +0000
++++ test-driver
+@@ -59,7 +59,7 @@ enable_hard_errors=yes
+ while test $# -gt 1; do
+ arg=${1%=*}
+ val=${1#*=}
+- if [ $arg == $val ]; then
++ if [ $arg = $val ]; then
+ val=$2
+ shift
+ fi