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.
30 lines
1.0 KiB
30 lines
1.0 KiB
# This file is part of MXE. See LICENSE.md for licensing information.
|
|
|
|
PKG := xxhash
|
|
$(PKG)_WEBSITE := https://cyan4973.github.io/xxHash/
|
|
$(PKG)_DESCR := xxHash
|
|
$(PKG)_IGNORE :=
|
|
$(PKG)_VERSION := 0.7.0
|
|
$(PKG)_CHECKSUM := b34792646d5e19964bb7bba24f06cb13aecaac623ab91a54da08aa19d3686d7e
|
|
$(PKG)_GH_CONF := Cyan4973/xxHash/tags,v
|
|
$(PKG)_DEPS := cc
|
|
|
|
define $(PKG)_BUILD
|
|
cd '$(BUILD_DIR)' && '$(TARGET)-cmake' '$(SOURCE_DIR)/cmake_unofficial'
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
|
|
|
# create pkg-config files
|
|
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
|
|
(echo 'Name: $(PKG)'; \
|
|
echo 'Version: $($(PKG)_VERSION)'; \
|
|
echo 'Description: xxHash'; \
|
|
echo 'Libs: -lxxhash';) \
|
|
> '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc'
|
|
|
|
'$(TARGET)-gcc' \
|
|
-W -Wall -Werror -ansi -pedantic \
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
|
|
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`
|
|
endef
|