2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2013-12-31 14:38:00 +00:00
|
|
|
|
|
|
|
PKG := mman-win32
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_WEBSITE := https://code.google.com/p/mman-win32/
|
|
|
|
$(PKG)_DESCR := MMA-Win32
|
2014-01-28 05:12:26 +00:00
|
|
|
$(PKG)_IGNORE :=
|
2018-09-23 22:14:28 +01:00
|
|
|
$(PKG)_VERSION := 9f115ad
|
|
|
|
$(PKG)_CHECKSUM := 8ef745c80ab2b0ea52eba4830c45b20926fd9dcbc16c3da31f66607316dd7751
|
2018-03-13 14:08:58 +00:00
|
|
|
$(PKG)_GH_CONF := witwall/mman-win32/branches/master
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc
|
2013-12-31 14:38:00 +00:00
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2018-03-13 14:08:58 +00:00
|
|
|
# build and install the library
|
|
|
|
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \
|
2016-11-05 22:21:50 +00:00
|
|
|
-DBUILD_TESTS=OFF
|
2018-03-13 14:08:58 +00:00
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
|
|
|
|
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
|
2015-12-02 07:28:07 +00:00
|
|
|
|
|
|
|
'$(TARGET)-gcc' -W -Wall \
|
|
|
|
'$(1)/test.c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
|
|
|
|
-lmman
|
2013-12-31 14:38:00 +00:00
|
|
|
endef
|