summaryrefslogtreecommitdiffstats
path: root/src/ocaml-flexdll.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2012-12-05 07:18:54 (GMT)
committerTony Theodore <tonyt@logyst.com>2012-12-05 07:18:54 (GMT)
commit7337ea85eebbba1bb34851fc7cefeaf47a98a003 (patch)
tree414e1c3cf8b97fe49538cfbf0adf7364016e9744 /src/ocaml-flexdll.mk
parent8daf0f40955bd2f46bff9ab7e9b0f468d66fa97a (diff)
downloadmxe-7337ea85eebbba1bb34851fc7cefeaf47a98a003.zip
mxe-7337ea85eebbba1bb34851fc7cefeaf47a98a003.tar.gz
mxe-7337ea85eebbba1bb34851fc7cefeaf47a98a003.tar.bz2
run make cleanup-style
Diffstat (limited to 'src/ocaml-flexdll.mk')
-rw-r--r--src/ocaml-flexdll.mk62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/ocaml-flexdll.mk b/src/ocaml-flexdll.mk
index 518d654..762e738 100644
--- a/src/ocaml-flexdll.mk
+++ b/src/ocaml-flexdll.mk
@@ -2,42 +2,42 @@
# See doc/index.html for further information.
# zlib
-PKG := ocaml-flexdll
-$(PKG)_IGNORE :=
+PKG := ocaml-flexdll
+$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 585f066f890c7dca95be7541b4647128335f7df9
-$(PKG)_SUBDIR := flexdll
-$(PKG)_FILE := flexdll-$($(PKG)_VERSION).tar.gz
-$(PKG)_URL := http://alain.frisch.fr/flexdll/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc ocaml-native
+$(PKG)_SUBDIR := flexdll
+$(PKG)_FILE := flexdll-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://alain.frisch.fr/flexdll/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc ocaml-native
define $(PKG)_UPDATE
- wget -q -O- 'http://alain.frisch.fr/flexdll/' | \
- $(SED) -n 's,.*flexdll-\([0-9][^>]*\)\.tar.gz.*,\1,ip' | \
- head -1
+ wget -q -O- 'http://alain.frisch.fr/flexdll/' | \
+ $(SED) -n 's,.*flexdll-\([0-9][^>]*\)\.tar.gz.*,\1,ip' | \
+ head -1
endef
define $(PKG)_BUILD
- $(MAKE) -C '$(1)' -j '$(JOBS)' \
- CHAINS=mingw \
- MINGW_PREFIX=$(TARGET) \
- OCAMLOPT=$(PREFIX)/$(TARGET)/bin/ocaml-native/ocamlopt \
- all
- mkdir -p '$(PREFIX)/$(TARGET)/lib/ocaml/flexdll'
- cd '$(1)' && mv flexlink.exe flexlink
- cd '$(1)' && strip --remove-section=.comment --remove-section=.note flexlink
- cd '$(1)' && $(INSTALL) -m 0755 flexdll.h '$(PREFIX)/$(TARGET)/include'
- cd '$(1)' && $(INSTALL) -m 0755 flexlink flexdll_mingw.o \
- flexdll_initer_mingw.o \
- '$(PREFIX)/$(TARGET)/lib/ocaml/flexdll'
- # create flexdll scripts
- cd '$(PREFIX)/bin' && ln -sf '$(PREFIX)/$(TARGET)/lib/ocaml/flexdll/flexlink'
- (echo '#!/bin/sh'; \
- echo 'exec flexlink -I $(PREFIX)/$(TARGET)/lib -chain mingw -nocygpath "$$@"') \
- > '$(PREFIX)/bin/$(TARGET)-flexlink'
- chmod 0755 '$(PREFIX)/bin/$(TARGET)-flexlink'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' \
+ CHAINS=mingw \
+ MINGW_PREFIX=$(TARGET) \
+ OCAMLOPT=$(PREFIX)/$(TARGET)/bin/ocaml-native/ocamlopt \
+ all
+ mkdir -p '$(PREFIX)/$(TARGET)/lib/ocaml/flexdll'
+ cd '$(1)' && mv flexlink.exe flexlink
+ cd '$(1)' && strip --remove-section=.comment --remove-section=.note flexlink
+ cd '$(1)' && $(INSTALL) -m 0755 flexdll.h '$(PREFIX)/$(TARGET)/include'
+ cd '$(1)' && $(INSTALL) -m 0755 flexlink flexdll_mingw.o \
+ flexdll_initer_mingw.o \
+ '$(PREFIX)/$(TARGET)/lib/ocaml/flexdll'
+ # create flexdll scripts
+ cd '$(PREFIX)/bin' && ln -sf '$(PREFIX)/$(TARGET)/lib/ocaml/flexdll/flexlink'
+ (echo '#!/bin/sh'; \
+ echo 'exec flexlink -I $(PREFIX)/$(TARGET)/lib -chain mingw -nocygpath "$$@"') \
+ > '$(PREFIX)/bin/$(TARGET)-flexlink'
+ chmod 0755 '$(PREFIX)/bin/$(TARGET)-flexlink'
- echo "testing flexlink..."
- $(MAKE) -C '$(1)/test' -j '$(JOBS)' dump.exe plug1.dll plug2.dll CC=$(TARGET)-gcc O=o FLEXLINK=$(TARGET)-flexlink
- #works if wine is installed :
- #cd '$(1)/test' && ./dump.exe plug1.dll plug2.dll
+ echo "testing flexlink..."
+ $(MAKE) -C '$(1)/test' -j '$(JOBS)' dump.exe plug1.dll plug2.dll CC=$(TARGET)-gcc O=o FLEXLINK=$(TARGET)-flexlink
+ #works if wine is installed :
+ #cd '$(1)/test' && ./dump.exe plug1.dll plug2.dll
endef