mxe/src/xz.mk

27 lines
798 B
Makefile
Raw Permalink Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2010-02-07 09:43:17 +00:00
PKG := xz
2017-05-19 12:12:41 +01:00
$(PKG)_WEBSITE := https://tukaani.org/xz/
$(PKG)_DESCR := XZ
$(PKG)_IGNORE :=
2020-03-18 15:41:07 +00:00
$(PKG)_VERSION := 5.2.5
$(PKG)_CHECKSUM := f6f4910fd033078738bd82bfba4f49219d03b17eb0794eb91efbae419f4aba10
2010-02-07 09:43:17 +00:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2010-05-31 12:15:16 +01:00
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
2017-05-19 12:12:41 +01:00
$(PKG)_URL := https://tukaani.org/xz/$($(PKG)_FILE)
$(PKG)_DEPS := cc
2010-02-07 09:43:17 +00:00
define $(PKG)_UPDATE
2017-05-19 12:12:41 +01:00
$(WGET) -q -O- 'https://tukaani.org/xz/' | \
2010-02-07 09:43:17 +00:00
$(SED) -n 's,.*xz-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--disable-threads \
2010-02-07 09:43:17 +00:00
--disable-nls
$(MAKE) -C '$(1)'/src/liblzma -j '$(JOBS)' install
endef