summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lzma.mk4
-rw-r--r--src/ucl.mk2
-rw-r--r--src/upx.mk18
-rw-r--r--src/zlib.mk2
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) :=
diff --git a/src/ucl.mk b/src/ucl.mk
index d374a2f..020c575 100644
--- a/src/ucl.mk
+++ b/src/ucl.mk
@@ -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/' | \
diff --git a/src/upx.mk b/src/upx.mk
index 4b86d42..db6ad76 100644
--- a/src/upx.mk
+++ b/src/upx.mk
@@ -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/' | \