summaryrefslogtreecommitdiffstats
path: root/src/dlfcn-win32.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2018-03-13 10:07:24 (GMT)
committerTony Theodore <tonyt@logyst.com>2018-03-15 01:28:24 (GMT)
commitf77e0addc8c662e0516520f369b1f3bb4ffc7221 (patch)
tree59a83b9c9f0a33eb63df400a3ace003053d4ea04 /src/dlfcn-win32.mk
parent3a031adb40ea4eeb5ac030dafe79ad3607156ab8 (diff)
downloadmxe-f77e0addc8c662e0516520f369b1f3bb4ffc7221.zip
mxe-f77e0addc8c662e0516520f369b1f3bb4ffc7221.tar.gz
mxe-f77e0addc8c662e0516520f369b1f3bb4ffc7221.tar.bz2
dlfc-win32: use GH_CONF etc.
Diffstat (limited to 'src/dlfcn-win32.mk')
-rw-r--r--src/dlfcn-win32.mk17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/dlfcn-win32.mk b/src/dlfcn-win32.mk
index 6664aca..b8de8ee 100644
--- a/src/dlfcn-win32.mk
+++ b/src/dlfcn-win32.mk
@@ -6,23 +6,22 @@ $(PKG)_DESCR := POSIX dlfcn wrapper for Windows
$(PKG)_IGNORE :=
$(PKG)_VERSION := e19bf07
$(PKG)_CHECKSUM := 6b31a8547547af27e5dfc092df1ea2c6ac562ce47b7ec08a0a4da4ed0b002767
-$(PKG)_SUBDIR := $(PKG)-$(PKG)-$($(PKG)_VERSION)
-$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
-$(PKG)_URL := https://github.com/$(PKG)/$(PKG)/tarball/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_GH_CONF := dlfcn-win32/dlfcn-win32/branches/master
$(PKG)_DEPS := cc
-$(PKG)_UPDATE = $(call MXE_GET_GITHUB_SHA, dlfcn-win32/dlfcn-win32, master) | $(SED) 's/^\(.......\).*/\1/;'
-
define $(PKG)_BUILD
- cd '$(1)' && ./configure \
+ # can't use $(MXE_CONFIGURE_OPTS), handwritten ./configure
+ # - rejects unknown options
+ # - no support for out-of-source build
+ cd '$(SOURCE_DIR)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--cross-prefix='$(TARGET)-' \
$(if $(BUILD_STATIC), \
--enable-static --disable-shared , \
--disable-static --enable-shared )
- $(MAKE) -C '$(1)' -j '$(JOBS)'
- $(MAKE) -C '$(1)' -j 1 install
- $(MAKE) -C '$(1)' -j '$(JOBS)' test.exe testdll.dll
+ $(MAKE) -C '$(SOURCE_DIR)' -j '$(JOBS)'
+ $(MAKE) -C '$(SOURCE_DIR)' -j 1 install
+ $(MAKE) -C '$(SOURCE_DIR)' -j '$(JOBS)' test.exe testdll.dll
# create pkg-config file - mostly for psapi dependency
mkdir -p '$(PREFIX)/$(TARGET)/lib/pkgconfig'