0849e8193e
Thanks to the pkgparentdir and pkgname functions, we can rewrite the GENTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
############################################################
|
|
#
|
|
# libsvgtiny
|
|
#
|
|
############################################################
|
|
|
|
LIBSVGTINY_SITE = svn://svn.netsurf-browser.org/trunk/libsvgtiny
|
|
LIBSVGTINY_VERSION = 12121
|
|
|
|
LIBSVGTINY_INSTALL_STAGING = YES
|
|
LIBSVGTINY_INSTALL_TARGET = YES
|
|
LIBSVGTINY_DEPENDENCIES = libxml2 host-gperf host-pkg-config
|
|
|
|
define LIBSVGTINY_BUILD_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=/usr
|
|
endef
|
|
|
|
define LIBSVGTINY_INSTALL_STAGING_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
$(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(STAGING_DIR) install
|
|
endef
|
|
|
|
define LIBSVGTINY_UNINSTALL_STAGING_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
$(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(STAGING_DIR) uninstall
|
|
endef
|
|
|
|
define LIBSVGTINY_INSTALL_TARGET_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
$(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
define LIBSVGTINY_UNINSTALL_TARGET_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
$(MAKE) -C $(@D) PREFIX=/usr DESTDIR=$(TARGET_DIR) uninstall
|
|
endef
|
|
|
|
define LIBSVGTINY_CLEAN_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) clean
|
|
endef
|
|
|
|
$(eval $(call GENTARGETS))
|