2170033bf6
Most distributions include a duktape.pc file bundled with the duktape development package. As the duktape source does not include a .pc file, add one to the package/duktape directory and install it to the staging directory. This is used by the polkit duktape patch later in the series. Signed-off-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
34 lines
1.0 KiB
Makefile
34 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# duktape
|
|
#
|
|
################################################################################
|
|
|
|
DUKTAPE_VERSION = 2.6.0
|
|
DUKTAPE_SOURCE = duktape-$(DUKTAPE_VERSION).tar.xz
|
|
DUKTAPE_SITE = \
|
|
https://github.com/svaarala/duktape/releases/download/v$(DUKTAPE_VERSION)
|
|
DUKTAPE_LICENSE = MIT
|
|
DUKTAPE_LICENSE_FILES = LICENSE.txt
|
|
DUKTAPE_INSTALL_STAGING = YES
|
|
|
|
define DUKTAPE_BUILD_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f Makefile.sharedlibrary
|
|
endef
|
|
|
|
define DUKTAPE_INSTALL_STAGING_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f Makefile.sharedlibrary \
|
|
INSTALL_PREFIX=$(STAGING_DIR)/usr install
|
|
$(INSTALL) -D -m 0644 $(DUKTAPE_PKGDIR)/duktape.pc.in \
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/duktape.pc
|
|
$(SED) 's/@VERSION@/$(DUKTAPE_VERSION)/g;' \
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/duktape.pc
|
|
endef
|
|
|
|
define DUKTAPE_INSTALL_TARGET_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f Makefile.sharedlibrary \
|
|
INSTALL_PREFIX=$(TARGET_DIR)/usr install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|