Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
Newer expat versions use different declarations of the following functions:
|
||||
|
||||
static void _svg_parser_sax_start_element ();
|
||||
static void _svg_parser_sax_end_element ();
|
||||
static void _svg_parser_sax_characters ();
|
||||
|
||||
We need to patch the libsvg source to not follow into a build error like
|
||||
"static declaration of 'foo' follows non-static declaration"
|
||||
and use the functions from the expat library instead from the libsvg source.
|
||||
|
||||
Patch based on
|
||||
http://oe-lite.org/redmine/projects/xorg/repository/revisions/c4df7951e846e1be718f37f2455696a1d0861f3d/entry/recipes/cairo/libsvg-0.1.4/gcc4_and_expat.patch
|
||||
|
||||
Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com>
|
||||
|
||||
diff -bur libsvg-0.1.4~orig/src/svg_parser_expat.c libsvg-0.1.4/src/svg_parser_expat.c
|
||||
--- libsvg-0.1.4~orig/src/svg_parser_expat.c 2005-02-14 11:26:26.000000000 -0600
|
||||
+++ libsvg-0.1.4/src/svg_parser_expat.c 2006-02-10 21:58:20.000000000 -0600
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "svgint.h"
|
||||
#include "svg_hash.h"
|
||||
|
||||
+#ifndef LIBSVG_EXPAT
|
||||
static void
|
||||
_svg_parser_sax_start_element (void *closure,
|
||||
const XML_Char *name,
|
||||
@@ -43,6 +44,7 @@
|
||||
_svg_parser_sax_characters (void *closure,
|
||||
const XML_Char *ch,
|
||||
int len);
|
||||
+#endif
|
||||
|
||||
static void
|
||||
@@ -0,0 +1,32 @@
|
||||
From 213e5749947fad08d985eda8d06839efedda78ef Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Thu, 5 Mar 2015 21:42:52 +0100
|
||||
Subject: [PATCH] Fix undefined symbol png_set_gray_1_2_4_to_8
|
||||
|
||||
Since libpng-1.4.0 the function png_set_gray_1_2_4_to_8() was
|
||||
removed, the replacement function is called
|
||||
png_set_expand_gray_1_2_4_to_8() (see [1]).
|
||||
|
||||
[1] http://libpng.sourceforge.net/ANNOUNCE-1.4.0.txt
|
||||
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
src/svg_image.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/svg_image.c b/src/svg_image.c
|
||||
index cd8a95a..f256943 100755
|
||||
--- a/src/svg_image.c
|
||||
+++ b/src/svg_image.c
|
||||
@@ -271,7 +271,7 @@ _svg_image_read_png (const char *filename,
|
||||
|
||||
/* expand gray bit depth if needed */
|
||||
if (color_type == PNG_COLOR_TYPE_GRAY && depth < 8)
|
||||
- png_set_gray_1_2_4_to_8 (png);
|
||||
+ png_set_expand_gray_1_2_4_to_8 (png);
|
||||
|
||||
/* transform transparency to alpha */
|
||||
if (png_get_valid(png, info, PNG_INFO_tRNS))
|
||||
--
|
||||
2.1.4
|
||||
|
||||
12
deprecated/firmware/buildroot/package/libsvg/Config.in
Normal file
12
deprecated/firmware/buildroot/package/libsvg/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_LIBSVG
|
||||
bool "libsvg"
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
select BR2_PACKAGE_JPEG
|
||||
select BR2_PACKAGE_LIBXML2 if !BR2_PACKAGE_EXPAT
|
||||
help
|
||||
Libsvg provides a parser for SVG content in files or buffers.
|
||||
Libsvg does not do any rendering, but instead provides a
|
||||
function-based interface that can be used by various rendering
|
||||
engines.
|
||||
|
||||
http://cairographics.org/snapshots/
|
||||
5
deprecated/firmware/buildroot/package/libsvg/libsvg.hash
Normal file
5
deprecated/firmware/buildroot/package/libsvg/libsvg.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From http://cairographics.org/snapshots/libsvg-0.1.4.tar.gz.md5
|
||||
md5 ce0715e3013f78506795fba16e8455d3 libsvg-0.1.4.tar.gz
|
||||
|
||||
# Locally calculated
|
||||
sha256 4c3bf9292e676a72b12338691be64d0f38cd7f2ea5e8b67fbbf45f1ed404bc8f libsvg-0.1.4.tar.gz
|
||||
23
deprecated/firmware/buildroot/package/libsvg/libsvg.mk
Normal file
23
deprecated/firmware/buildroot/package/libsvg/libsvg.mk
Normal file
@@ -0,0 +1,23 @@
|
||||
################################################################################
|
||||
#
|
||||
# libsvg
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBSVG_VERSION = 0.1.4
|
||||
LIBSVG_SITE = http://cairographics.org/snapshots
|
||||
LIBSVG_DEPENDENCIES = host-pkgconf libpng jpeg
|
||||
LIBSVG_INSTALL_STAGING = YES
|
||||
LIBSVG_LICENSE = LGPLv2+
|
||||
LIBSVG_LICENSE_FILES = COPYING
|
||||
|
||||
# libsvg needs at last a XML parser
|
||||
ifeq ($(BR2_PACKAGE_EXPAT),y)
|
||||
LIBSVG_CONF_OPTS += --with-expat
|
||||
LIBSVG_DEPENDENCIES += expat
|
||||
else
|
||||
LIBSVG_CONF_OPTS += --with-libxml2
|
||||
LIBSVG_DEPENDENCIES += libxml2
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user