summaryrefslogtreecommitdiffstats
path: root/src/dlfcn-win32.mk
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2013-11-24 21:33:33 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2013-11-24 21:35:34 (GMT)
commit14cbf5ec6c1235d7bb29283b95d955b8b0089af2 (patch)
tree73cd109181cedefd73b7d9c42d53b894094c9d85 /src/dlfcn-win32.mk
parent3f47ad5bc470066cda42f1bbc7fa36511015a3a9 (diff)
downloadmxe-14cbf5ec6c1235d7bb29283b95d955b8b0089af2.zip
mxe-14cbf5ec6c1235d7bb29283b95d955b8b0089af2.tar.gz
mxe-14cbf5ec6c1235d7bb29283b95d955b8b0089af2.tar.bz2
Add package dlfcn-win32
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/dlfcn-win32.mk')
-rw-r--r--src/dlfcn-win32.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/dlfcn-win32.mk b/src/dlfcn-win32.mk
new file mode 100644
index 0000000..30e4163
--- /dev/null
+++ b/src/dlfcn-win32.mk
@@ -0,0 +1,28 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := dlfcn-win32
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 19
+$(PKG)_CHECKSUM := a0033e37a547c52059d0bf8664a96ecdeeb66419
+$(PKG)_SUBDIR := $(PKG)-r$($(PKG)_VERSION)
+$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
+$(PKG)_URL := http://$(PKG).googlecode.com/files/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://code.google.com/p/dlfcn-win32/downloads/list?sort=-uploaded' | \
+ $(SED) -n 's,.*dlfcn-win32-r\([0-9][^<]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --cross-prefix='$(TARGET)-' \
+ --disable-shared
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j 1 install
+
+ # No test avalable temprorarily because MXE doesn't support shared build yet
+endef