diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2016-01-09 19:41:25 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2016-01-10 10:43:13 (GMT) |
commit | 513096f06ec35a4c9fcdb1d7941a05f78883d1bb (patch) | |
tree | f854dc98db86d2ad3fe1fc202cf6b9cf2a20c141 | |
parent | 31e57014bca7c5a8e9896b5689001efa78ab009e (diff) | |
download | mxe-513096f06ec35a4c9fcdb1d7941a05f78883d1bb.zip mxe-513096f06ec35a4c9fcdb1d7941a05f78883d1bb.tar.gz mxe-513096f06ec35a4c9fcdb1d7941a05f78883d1bb.tar.bz2 |
add native builds for upx, ucl, zlib
fix #988
-rw-r--r-- | src/lzma.mk | 4 | ||||
-rw-r--r-- | src/ucl.mk | 2 | ||||
-rw-r--r-- | src/upx.mk | 18 | ||||
-rw-r--r-- | src/zlib.mk | 2 |
4 files changed, 26 insertions, 0 deletions
diff --git a/src/lzma.mk b/src/lzma.mk index 239ae39..fc565d2 100644 --- a/src/lzma.mk +++ b/src/lzma.mk @@ -9,6 +9,8 @@ $(PKG)_SUBDIR := . $(PKG)_FILE := lzma$(subst .,,$($(PKG)_VERSION)).tar.bz2 $(PKG)_URL := http://www.7-zip.org/a/$($(PKG)_FILE) $(PKG)_DEPS := gcc +$(PKG)_DEPS_$(BUILD) := +$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS) define $(PKG)_UPDATE $(WGET) -q -O- 'http://www.7-zip.org/sdk.html' | \ @@ -40,3 +42,5 @@ define $(PKG)_BUILD cp '$(1)/CPP/7zip/Bundles/LzmaCon/lzma.exe' \ '$(PREFIX)/$(TARGET)/bin/lzma-cxx.exe' endef + +$(PKG)_BUILD_$(BUILD) := @@ -9,6 +9,8 @@ $(PKG)_SUBDIR := ucl-$($(PKG)_VERSION) $(PKG)_FILE := ucl-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://www.oberhumer.com/opensource/ucl/download/$($(PKG)_FILE) $(PKG)_DEPS := gcc +$(PKG)_DEPS_$(BUILD) := +$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS) define $(PKG)_UPDATE $(WGET) -q -O- 'http://www.oberhumer.com/opensource/ucl/' | \ @@ -9,6 +9,8 @@ $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)-src $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION)-src.tar.bz2 $(PKG)_URL := http://upx.sourceforge.net/download/$($(PKG)_FILE) $(PKG)_DEPS := gcc ucl zlib lzma +$(PKG)_DEPS_$(BUILD) := ucl zlib lzma +$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS) define $(PKG)_UPDATE $(WGET) -q -O- 'http://upx.sourceforge.net/' | \ @@ -32,3 +34,19 @@ define $(PKG)_BUILD 'exeext=.exe' cp '$(1)/src/upx.exe' '$(PREFIX)/$(TARGET)/bin/' endef + +define $(PKG)_BUILD_$(BUILD) + $(call PREPARE_PKG_SOURCE,ucl,$(1)) + mkdir '$(1)/lzma' + $(call PREPARE_PKG_SOURCE,lzma,$(1)/lzma) + UPX_UCLDIR='$(1)/$(ucl_SUBDIR)' \ + UPX_LZMADIR='$(1)/lzma' \ + UPX_LZMA_VERSION=0x$(subst .,,$(lzma_VERSION)) \ + $(MAKE) -C '$(1)' -j '$(JOBS)' all \ + 'CXX=$(BUILD_CXX)' \ + 'CC=$(BUILD_CC)' \ + 'PKG_CONFIG=$(PREFIX)/$(BUILD)/bin/pkgconf' \ + 'LIBS=-L$(PREFIX)/$(BUILD)/lib -lucl -lz' \ + 'exeext=' + cp '$(1)/src/upx' '$(PREFIX)/$(BUILD)/bin/' +endef diff --git a/src/zlib.mk b/src/zlib.mk index 860709c..a2626fc 100644 --- a/src/zlib.mk +++ b/src/zlib.mk @@ -10,6 +10,8 @@ $(PKG)_FILE := zlib-$($(PKG)_VERSION).tar.xz $(PKG)_URL := http://zlib.net/$($(PKG)_FILE) $(PKG)_URL_2 := http://$(SOURCEFORGE_MIRROR)/project/libpng/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := gcc +$(PKG)_DEPS_$(BUILD) := +$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS) define $(PKG)_UPDATE $(WGET) -q -O- 'http://zlib.net/' | \ |