You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
################################################################################
|
|
#
|
|
# luaposix
|
|
#
|
|
################################################################################
|
|
|
|
LUAPOSIX_VERSION = 31
|
|
LUAPOSIX_DIR = luaposix-$(LUAPOSIX_VERSION)
|
|
LUAPOSIX_SOURCE = luaposix-$(LUAPOSIX_VERSION).tar.gz
|
|
LUAPOSIX_SITE = https://github.com/luaposix/luaposix/archive
|
|
|
|
LUAPOSIX_DEPENDENCIES = $(HOST_LUA) lua luaexpat gnulib slingshot
|
|
|
|
LUAPOSIX_AUTORECONF = YES
|
|
|
|
LUAPOSIX_CONF_ENV = \
|
|
LUA=$(HOST_LUA)
|
|
|
|
LUAPOSIX_CONF_OPTS = \
|
|
--libdir=$(TARGET_libdir)/lua/$(LUA_ABIVERSION) \
|
|
--datadir=$(TARGET_datadir)/lua/$(LUA_ABIVERSION) \
|
|
--mandir=$(TARGET_DIR)$(REMOVE_mandir) \
|
|
--docdir=$(TARGET_DIR)$(REMOVE_docdir)
|
|
|
|
define LUAPOSIX_UNPACK_GNULIB
|
|
tar -C $(PKG_BUILD_DIR)/gnulib --strip=1 -xf $(DL_DIR)/$(GNULIB_SOURCE)
|
|
endef
|
|
LUAPOSIX_POST_PATCH_HOOKS += LUAPOSIX_UNPACK_GNULIB
|
|
|
|
define LUAPOSIX_UNPACK_SLINGSHOT
|
|
tar -C $(PKG_BUILD_DIR)/slingshot --strip=1 -xf $(DL_DIR)/$(SLINGSHOT_SOURCE)
|
|
endef
|
|
LUAPOSIX_POST_PATCH_HOOKS += LUAPOSIX_UNPACK_SLINGSHOT
|
|
|
|
define LUAPOSIX_BOOTSTRAP
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
./bootstrap
|
|
endef
|
|
LUAPOSIX_POST_PATCH_HOOKS += LUAPOSIX_BOOTSTRAP
|
|
|
|
luaposix: | $(TARGET_DIR)
|
|
$(call PREPARE)
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
$(TARGET_CONFIGURE); \
|
|
$(MAKE); \
|
|
$(MAKE) install
|
|
$(call TARGET_FOLLOWUP)
|
|
|