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.
mxe/src/zstd.mk

27 lines
977 B

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := zstd
$(PKG)_WEBSITE := https://github.com/facebook/zstd
$(PKG)_DESCR := Zstandard is a fast lossless compression algorithm
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.4.2
$(PKG)_CHECKSUM := 7a6e1dad34054b35e2e847eb3289be8820a5d378228802239852f913c6dcf6a7
$(PKG)_GH_CONF := facebook/zstd/tags,v
$(PKG)_DEPS := cc
define $(PKG)_BUILD
# build and install the library
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)/build/cmake' \
-DZSTD_BUILD_STATIC=$(CMAKE_STATIC_BOOL) \
-DZSTD_BUILD_SHARED=$(CMAKE_SHARED_BOOL) \
-DZSTD_BUILD_PROGRAMS=OFF
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
# compile test
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' lib$(PKG) --cflags --libs`
endef