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
|
|
|
|
2015-01-09 08:14:03 +01:00
|
|
|
LIBSVGTINY_SITE = http://git.netsurf-browser.org/libsvgtiny.git
|
|
|
|
LIBSVGTINY_SITE_METHOD = git
|
|
|
|
LIBSVGTINY_VERSION = ea9d99fc8b231c22d06168135e181d61f4eb2f06
|
2010-07-05 11:01:55 +02:00
|
|
|
LIBSVGTINY_INSTALL_STAGING = YES
|
2015-01-09 08:14:03 +01:00
|
|
|
LIBSVGTINY_DEPENDENCIES = \
|
|
|
|
libxml2 host-gperf host-pkgconf host-netsurf-buildsystem
|
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
|
|
|
|
|
2015-01-09 08:14:03 +01:00
|
|
|
define LIBSVGTINY_CONFIGURE_CMDS
|
2017-07-05 13:14:23 +02:00
|
|
|
ln -sf $(HOST_DIR)/share/netsurf-buildsystem $(@D)/build
|
2015-01-09 08:14:03 +01:00
|
|
|
endef
|
|
|
|
|
2020-02-22 22:44:39 +01:00
|
|
|
# Use $(MAKE1) since parallel build fails
|
2010-07-05 11:01:55 +02:00
|
|
|
define LIBSVGTINY_BUILD_CMDS
|
2020-02-22 22:44:39 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE1) -C $(@D) PREFIX=/usr \
|
2014-12-27 22:58:21 +01:00
|
|
|
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) \
|
2020-02-22 22:44:39 +01:00
|
|
|
$(MAKE1) -C $(@D) PREFIX=/usr DESTDIR=$(STAGING_DIR) \
|
2014-12-27 22:58:21 +01:00
|
|
|
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) \
|
2020-02-22 22:44:39 +01:00
|
|
|
$(MAKE1) -C $(@D) PREFIX=/usr DESTDIR=$(TARGET_DIR) \
|
2014-12-27 22:58:21 +01:00
|
|
|
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))
|