2013-11-24 21:33:33 +00:00
|
|
|
# This file is part of MXE.
|
|
|
|
# See index.html for further information.
|
|
|
|
|
|
|
|
PKG := dlfcn-win32
|
|
|
|
$(PKG)_IGNORE :=
|
2014-09-03 03:37:40 +01:00
|
|
|
$(PKG)_VERSION := 1.0.0
|
2015-09-23 09:32:58 +01:00
|
|
|
$(PKG)_CHECKSUM := 36f2e7ef1f1ba04f6ce682a71937eaddd3d6994f09e29df2c7578ec524e47450
|
2014-09-03 03:37:40 +01:00
|
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
|
|
|
|
$(PKG)_URL := https://github.com/$(PKG)/$(PKG)/archive/v$($(PKG)_VERSION).tar.gz
|
2013-11-24 21:33:33 +00:00
|
|
|
$(PKG)_DEPS := gcc
|
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2014-09-03 03:37:40 +01:00
|
|
|
$(WGET) -q -O- 'https://github.com/dlfcn-win32/dlfcn-win32/releases' | \
|
|
|
|
$(SED) -n 's,.*<a href="/dlfcn-win32/dlfcn-win32/archive/v\([0-9][^>]*\)\.tar.*,\1,p' | \
|
2013-11-24 21:33:33 +00:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
cd '$(1)' && ./configure \
|
|
|
|
--prefix='$(PREFIX)/$(TARGET)' \
|
|
|
|
--cross-prefix='$(TARGET)-' \
|
2014-02-10 05:33:26 +00:00
|
|
|
$(if $(BUILD_STATIC), \
|
|
|
|
--enable-static --disable-shared , \
|
|
|
|
--disable-static --enable-shared )
|
2013-11-24 21:33:33 +00:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
|
|
|
$(MAKE) -C '$(1)' -j 1 install
|
2015-11-15 13:18:44 +00:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' test.exe testdll.dll
|
2013-11-24 21:33:33 +00:00
|
|
|
endef
|