Browse Source

- luaposix: rework build

master
vanhofen 3 years ago
parent
commit
e6aa62a998
  1. 13
      package/gnulib/gnulib.mk
  2. 50
      package/luaposix/luaposix.mk
  3. 13
      package/slingshot/slingshot.mk

13
package/gnulib/gnulib.mk

@ -0,0 +1,13 @@
################################################################################
#
# gnulib
#
################################################################################
GNULIB_VERSION = 20140202
GNULIB_DIR = gnulib-$(GNULIB_VERSION)-stable
GNULIB_SOURCE = gnulib-$(GNULIB_VERSION)-stable.tar.gz
GNULIB_SITE = http://erislabs.net/ianb/projects/gnulib
gnulib:
$(call DOWNLOAD,$($(PKG)_SOURCE))

50
package/luaposix/luaposix.mk

@ -9,10 +9,7 @@ LUAPOSIX_DIR = luaposix-$(LUAPOSIX_VERSION)
LUAPOSIX_SOURCE = luaposix-$(LUAPOSIX_VERSION).tar.gz LUAPOSIX_SOURCE = luaposix-$(LUAPOSIX_VERSION).tar.gz
LUAPOSIX_SITE = https://github.com/luaposix/luaposix/archive LUAPOSIX_SITE = https://github.com/luaposix/luaposix/archive
$(DL_DIR)/$(LUAPOSIX_SOURCE): LUAPOSIX_DEPENDENCIES = $(HOST_LUA) lua luaexpat gnulib slingshot
$(download) $(LUAPOSIX_SITE)/v$(LUAPOSIX_VERSION).tar.gz -O $(@)
LUAPOSIX_DEPENDENCIES = $(HOST_LUA) lua luaexpat
LUAPOSIX_AUTORECONF = YES LUAPOSIX_AUTORECONF = YES
@ -25,30 +22,21 @@ LUAPOSIX_CONF_OPTS = \
--mandir=$(TARGET_DIR)$(REMOVE_mandir) \ --mandir=$(TARGET_DIR)$(REMOVE_mandir) \
--docdir=$(TARGET_DIR)$(REMOVE_docdir) --docdir=$(TARGET_DIR)$(REMOVE_docdir)
GNULIB_VERSION = 20140202 define LUAPOSIX_UNPACK_GNULIB
GNULIB_SOURCE = gnulib-$(GNULIB_VERSION)-stable.tar.gz tar -C $(PKG_BUILD_DIR)/gnulib --strip=1 -xf $(DL_DIR)/$(GNULIB_SOURCE)
GNULIB_SITE = http://erislabs.net/ianb/projects/gnulib endef
LUAPOSIX_POST_PATCH_HOOKS += LUAPOSIX_UNPACK_GNULIB
$(DL_DIR)/$(GNULIB_SOURCE):
$(download) $(GNULIB_SITE)/$(GNULIB_SOURCE) define LUAPOSIX_UNPACK_SLINGSHOT
tar -C $(PKG_BUILD_DIR)/slingshot --strip=1 -xf $(DL_DIR)/$(SLINGSHOT_SOURCE)
SLINGSHOT_VERSION = 6 endef
SLINGSHOT_SOURCE = slingshot-$(SLINGSHOT_VERSION).tar.gz LUAPOSIX_POST_PATCH_HOOKS += LUAPOSIX_UNPACK_SLINGSHOT
SLINGSHOT_SITE = https://github.com/gvvaughan/slingshot/archive
define LUAPOSIX_BOOTSTRAP
$(DL_DIR)/$(SLINGSHOT_SOURCE): $(CHDIR)/$($(PKG)_DIR); \
$(download) $(SLINGSHOT_SITE)/v$(SLINGSHOT_VERSION).tar.gz -O $(@) ./bootstrap
endef
luaposix: $(LUAPOSIX_DEPENDENCIES) $(DL_DIR)/$(SLINGSHOT_SOURCE) $(DL_DIR)/$(GNULIB_SOURCE) $(DL_DIR)/$(LUAPOSIX_SOURCE) | $(TARGET_DIR) LUAPOSIX_POST_PATCH_HOOKS += LUAPOSIX_BOOTSTRAP
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE) luaposix: | $(TARGET_DIR)
$(call APPLY_PATCHES,$(PKG_PATCHES_DIR)) $(call autotools-package)
$(CHDIR)/$(PKG_DIR); \
tar -C gnulib --strip=1 -xf $(DL_DIR)/$(GNULIB_SOURCE); \
tar -C slingshot --strip=1 -xf $(DL_DIR)/$(SLINGSHOT_SOURCE); \
./bootstrap; \
$(CONFIGURE); \
$(MAKE); \
$(MAKE) install
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

13
package/slingshot/slingshot.mk

@ -0,0 +1,13 @@
################################################################################
#
# slingshot
#
################################################################################
SLINGSHOT_VERSION = 6
SLINGSHOT_DIR = slingshot-$(SLINGSHOT_VERSION)
SLINGSHOT_SOURCE = slingshot-$(SLINGSHOT_VERSION).tar.gz
SLINGSHOT_SITE = $(call github,gvvaughan,slingshot,v$(SLINGSHOT_VERSION))
slingshot:
$(call DOWNLOAD,$($(PKG)_SOURCE))
Loading…
Cancel
Save