summaryrefslogtreecommitdiffstats
path: root/src/lzma.mk
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-08-30 14:26:00 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-11-10 01:24:09 (GMT)
commit1185a87aaf321183ef1706513ad94c8e4f5c2c8f (patch)
tree723c65209d33afc912fc4323a0da1145110f2dc5 /src/lzma.mk
parentc47f22edffe45c42e99744d3365281b616550e5c (diff)
downloadmxe-1185a87aaf321183ef1706513ad94c8e4f5c2c8f.zip
mxe-1185a87aaf321183ef1706513ad94c8e4f5c2c8f.tar.gz
mxe-1185a87aaf321183ef1706513ad94c8e4f5c2c8f.tar.bz2
add package lzma
Diffstat (limited to 'src/lzma.mk')
-rw-r--r--src/lzma.mk42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/lzma.mk b/src/lzma.mk
new file mode 100644
index 0000000..239ae39
--- /dev/null
+++ b/src/lzma.mk
@@ -0,0 +1,42 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := lzma
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 920
+$(PKG)_CHECKSUM := 8ac221acdca8b6f6dd110120763af42b3707363752fc04e63c7bbff76774a445
+$(PKG)_SUBDIR := .
+$(PKG)_FILE := lzma$(subst .,,$($(PKG)_VERSION)).tar.bz2
+$(PKG)_URL := http://www.7-zip.org/a/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://www.7-zip.org/sdk.html' | \
+ $(SED) -n 's,.*lzma\([0-9][^"]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ $(MAKE) all -C '$(1)/C/Util/Lzma' \
+ -f makefile.gcc -j '$(JOBS)' \
+ 'PROG=lzma.exe' \
+ 'CC=$(TARGET)-gcc' \
+ 'CXX=$(TARGET)-g++' \
+ 'LD=$(TARGET)-ld' \
+ 'AR=$(TARGET)-ar' \
+ 'PKG_CONFIG=$(TARGET)-pkg-config'
+ $(MAKE) all -C '$(1)/CPP/7zip/Bundles/LzmaCon' \
+ -f makefile.gcc -j '$(JOBS)' \
+ 'IS_MINGW=1' \
+ 'PROG=lzma.exe' \
+ 'CXX=$(TARGET)-g++ -O2 -Wall' \
+ 'CXX_C=$(TARGET)-gcc -O2 -Wall' \
+ 'CC=$(TARGET)-gcc' \
+ 'LD=$(TARGET)-ld' \
+ 'AR=$(TARGET)-ar' \
+ 'PKG_CONFIG=$(TARGET)-pkg-config'
+ cp '$(1)/C/Util/Lzma/lzma.exe' \
+ '$(PREFIX)/$(TARGET)/bin/lzma.exe'
+ cp '$(1)/CPP/7zip/Bundles/LzmaCon/lzma.exe' \
+ '$(PREFIX)/$(TARGET)/bin/lzma-cxx.exe'
+endef