2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-07-05 11:01:55 +02:00
|
|
|
#
|
|
|
|
# libsvgtiny
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-07-05 11:01:55 +02:00
|
|
|
|
2014-12-31 18:05:15 +01:00
|
|
|
LIBSVGTINY_SITE = svn://svn.netsurf-browser.org/trunk/libsvgtiny
|
|
|
|
LIBSVGTINY_VERSION = 12121
|
2010-07-05 11:01:55 +02:00
|
|
|
LIBSVGTINY_INSTALL_STAGING = YES
|
2012-10-22 17:47:52 +02:00
|
|
|
LIBSVGTINY_DEPENDENCIES = libxml2 host-gperf host-pkgconf
|
2014-06-24 20:55:23 +02:00
|
|
|
LIBSVGTINY_LICENSE = MIT
|
|
|
|
LIBSVGTINY_LICENSE_FILES = README
|
2010-07-05 11:01:55 +02:00
|
|
|
|
2014-12-27 22:58:21 +01:00
|
|
|
# The libsvgtiny build system cannot build both the shared and static
|
|
|
|
# libraries. So when the Buildroot configuration requests to build
|
|
|
|
# both the shared and static variants, we build only the shared one.
|
|
|
|
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
LIBSVGTINY_COMPONENT_TYPE = lib-shared
|
|
|
|
else
|
|
|
|
LIBSVGTINY_COMPONENT_TYPE = lib-static
|
|
|
|
endif
|
|
|
|
|
2010-07-05 11:01:55 +02:00
|
|
|
define LIBSVGTINY_BUILD_CMDS
|
2014-12-27 22:58:21 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=/usr \
|
|
|
|
COMPONENT_TYPE=$(LIBSVGTINY_COMPONENT_TYPE)
|
2010-07-05 11:01:55 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBSVGTINY_INSTALL_STAGING_CMDS
|
2010-07-08 10:24:57 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2014-12-27 22:58:21 +01:00
|
|
|
$(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(STAGING_DIR) \
|
|
|
|
COMPONENT_TYPE=$(LIBSVGTINY_COMPONENT_TYPE) install
|
2010-07-05 11:01:55 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBSVGTINY_INSTALL_TARGET_CMDS
|
2010-07-08 10:24:57 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2014-12-27 22:58:21 +01:00
|
|
|
$(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(TARGET_DIR) \
|
|
|
|
COMPONENT_TYPE=$(LIBSVGTINY_COMPONENT_TYPE) install
|
2010-07-05 11:01:55 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|