Browse Source

- luacurl: build from git repository

master
vanhofen 6 years ago
parent
commit
6b2c0d34a1
  1. 41
      make/system-libs.mk

41
make/system-libs.mk

@ -647,31 +647,24 @@ $(D)/luaexpat: $(D)/expat $(D)/lua $(ARCHIVE)/luaexpat-$(LUAEXPAT_VER).tar.gz |
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
LUACURL_VER = v3 LUACURL_VER = git
LUACURL_SOURCE = lua-curlv3.$(LUACURL_VER)
$(ARCHIVE)/Lua-cURL$(LUACURL_VER).tar.xz: LUACURL_URL = https://github.com/lua-curl/$(LUACURL_SOURCE)
$(WGET) http://neutrino-images.de/neutrino-images/archives/Lua-cURL$(LUACURL_VER).tar.xz
$(D)/luacurl: $(D)/libcurl $(D)/lua | $(TARGET_DIR)
LUACURL_PATCH = lua-curl-Makefile.diff $(REMOVE)/$(LUACURL_SOURCE)
get-git-source.sh $(LUACURL_URL) $(ARCHIVE)/$(LUACURL_SOURCE)
$(D)/luacurl: $(D)/libcurl $(D)/lua $(ARCHIVE)/Lua-cURL$(LUACURL_VER).tar.xz | $(TARGET_DIR) $(CPDIR)/$(LUACURL_SOURCE)
$(REMOVE)/Lua-cURL$(LUACURL_VER) $(CHDIR)/$(LUACURL_SOURCE); \
$(UNTAR)/Lua-cURL$(LUACURL_VER).tar.xz
$(CHDIR)/Lua-cURL$(LUACURL_VER); \
$(call apply_patches, $(LUACURL_PATCH)); \
$(BUILDENV) \ $(BUILDENV) \
CC=$(TARGET)-gcc \ $(MAKE) CC=$(TARGET)-gcc \
LUA_CMOD=/lib/lua/$(LUA_ABIVER) \ LDFLAGS="$(TARGET_LDFLAGS)" \
LUA_LMOD=/share/lua/$(LUA_ABIVER) \ LIBDIR=$(TARGET_LIB_DIR) \
LIBDIR=$(TARGET_LIB_DIR) \ LUA_INC=$(TARGET_INCLUDE_DIR); \
LUA_INC=$(TARGET_INCLUDE_DIR) \ $(MAKE) install DESTDIR=$(TARGET_DIR) \
CURL_LIBS="$(TARGET_LDFLAGS) -lcurl" \ LUA_CMOD=/lib/lua/$(LUA_ABIVER) \
$(MAKE); \ LUA_LMOD=/share/lua/$(LUA_ABIVER)
LUA_CMOD=/lib/lua/$(LUA_ABIVER) \ $(REMOVE)/$(LUACURL_SOURCE)
LUA_LMOD=/share/lua/$(LUA_ABIVER) \
DESTDIR=$(TARGET_DIR) \
$(MAKE) install
$(REMOVE)/Lua-cURL$(LUACURL_VER)
$(TOUCH) $(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

Loading…
Cancel
Save