mirror of https://git.wownero.com/dsc/mxe.git
25 lines
837 B
Makefile
25 lines
837 B
Makefile
# This file is part of MXE. See LICENSE.md for licensing information.
|
|
|
|
PKG := minizip
|
|
$(PKG)_WEBSITE := https://www.winimage.com/zLibDll/minizip.html
|
|
$(PKG)_IGNORE :=
|
|
$(PKG)_VERSION := 68a48aa
|
|
$(PKG)_CHECKSUM := 3fca5754b6e9f96fc907bb6755a1daef72f869cee172a4e687611c47ee693ada
|
|
$(PKG)_GH_CONF := nmoinvaz/minizip/branches/master
|
|
$(PKG)_DEPS := cc zlib
|
|
|
|
define $(PKG)_BUILD
|
|
# build and install the library
|
|
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \
|
|
-DBUILD_TEST=OFF \
|
|
-DUSE_ZLIB=ON
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
|
|
|
# compile test
|
|
'$(TARGET)-gcc' \
|
|
-W -Wall -Werror \
|
|
'$(SOURCE_DIR)/src/minizip.c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
|
|
`'$(TARGET)-pkg-config' $(PKG) --libs-only-l`
|
|
endef
|