You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.4 KiB
39 lines
1.4 KiB
# This file is part of MXE. See LICENSE.md for licensing information.
|
|
|
|
PKG := libarchive
|
|
$(PKG)_WEBSITE := https://www.libarchive.org/
|
|
$(PKG)_DESCR := Libarchive
|
|
$(PKG)_IGNORE :=
|
|
$(PKG)_VERSION := 3.3.3
|
|
$(PKG)_CHECKSUM := ba7eb1781c9fbbae178c4c6bad1c6eb08edab9a1496c64833d1715d022b30e2e
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
|
$(PKG)_URL := https://www.libarchive.org/downloads/$($(PKG)_FILE)
|
|
$(PKG)_DEPS := cc bzip2 libiconv libxml2 nettle openssl xz zlib
|
|
|
|
define $(PKG)_UPDATE
|
|
$(WGET) -q -O- 'https://www.libarchive.org/downloads/' | \
|
|
$(SED) -n 's,.*libarchive-\([0-9][^<]*\)\.tar.*,\1,p' | \
|
|
$(SORT) -V | \
|
|
tail -1
|
|
endef
|
|
|
|
define $(PKG)_BUILD
|
|
# use nettle instead of bcrypt for CNG(Crypto Next Generation)
|
|
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
|
|
$(MXE_CONFIGURE_OPTS) \
|
|
--disable-bsdtar \
|
|
--disable-bsdcpio \
|
|
--disable-bsdcat \
|
|
--without-cng \
|
|
--with-nettle \
|
|
XML2_CONFIG='$(PREFIX)/$(TARGET)'/bin/xml2-config
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' man_MANS=
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install man_MANS=
|
|
|
|
'$(TARGET)-gcc' \
|
|
-W -Wall -Werror -ansi -pedantic \
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-libarchive.exe' \
|
|
`'$(TARGET)-pkg-config' --libs-only-l --cflags libarchive`
|
|
endef
|