[Buildroot] [PATCH v2] package/libsvg: new package
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Jun 30 20:25:04 UTC 2013
Dear Carsten Schoenert,
On Sun, 30 Jun 2013 13:56:03 +0200, Carsten Schoenert wrote:
> +config BR2_PACKAGE_LIBSVG
> + bool "libsvg"
> + select BR2_PACKAGE_LIBXML2 if !BR2_PACKAGE_LIBSVG_EXPAT
I don't think we want the BR2_PACKAGE_LIBSVG_EXPAT option. Just make
this:
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/
> +
> +if BR2_PACKAGE_LIBSVG
> +
> +config BR2_PACKAGE_LIBSVG_EXPAT
> + bool "use expat XML parser library"
> + select BR2_PACKAGE_EXPAT
> + default y
> + help
> + Libsvg needs a XML parsing library!
> + Select expat if you want to use the Expat XML Parser library,
> + otherwhise the libxml2 library will be used.
Remove this option.
> +LIBSVG_VERSION = 0.1.4
> +LIBSVG_SITE = http://cairographics.org/snapshots/
> +LIBSVG_DEPENDENCIES = host-pkgconf libpng libjpeg
> +LIBSVG_INSTALL_STAGING = YES
> +LIBSVG_LICENSE = LGPLv2+
> +LIBSVG_LICENSE_FILES = COPYING
> +
> +# libsvg needs at last a XML parser
> +ifeq ($(BR2_PACKAGE_LIBSVG_EXPAT),y)
ifeq ($(BR2_PACKAGE_EXPAT),y)
> +LIBSVG_CONF_OPT += --with-expat
> +LIBSVG_DEPENDENCIES += expat
> +else ifeq ($(BR2_PACKAGE_LIBXML2),y)
> +LIBSVG_CONF_OPT += --with-libxml2
> +LIBSVG_DEPENDENCIES += libxml2
> +endif
> +
> +$(eval $(autotools-package))
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list