summaryrefslogtreecommitdiffstats
path: root/src/ocaml-findlib.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/ocaml-findlib.mk')
-rw-r--r--src/ocaml-findlib.mk80
1 files changed, 40 insertions, 40 deletions
diff --git a/src/ocaml-findlib.mk b/src/ocaml-findlib.mk
index 31dac70..9fca362 100644
--- a/src/ocaml-findlib.mk
+++ b/src/ocaml-findlib.mk
@@ -1,54 +1,54 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
-PKG := ocaml-findlib
-$(PKG)_IGNORE :=
+PKG := ocaml-findlib
+$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 5d1a52b77145348ded29fefe13736694aabb1868
-$(PKG)_SUBDIR := findlib-$($(PKG)_VERSION)
-$(PKG)_FILE := findlib-$($(PKG)_VERSION).tar.gz
-$(PKG)_URL := http://download.camlcity.org/download/$($(PKG)_FILE)
-$(PKG)_DEPS := ocaml-core
+$(PKG)_SUBDIR := findlib-$($(PKG)_VERSION)
+$(PKG)_FILE := findlib-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://download.camlcity.org/download/$($(PKG)_FILE)
+$(PKG)_DEPS := ocaml-core
define $(PKG)_UPDATE
- wget -q -O- 'http://download.camlcity.org/download' | \
- $(SED) -n 's,.*findlib-\([0-9][^>]*\)\.tar.*,\1,ip' | \
- sort | \
- tail -1
+ wget -q -O- 'http://download.camlcity.org/download' | \
+ $(SED) -n 's,.*findlib-\([0-9][^>]*\)\.tar.*,\1,ip' | \
+ sort | \
+ tail -1
endef
define $(PKG)_BUILD
- # build
- rm -f $(1)/src/findlib/ocaml_args.ml
- cd '$(1)' && \
+ # build
+ rm -f $(1)/src/findlib/ocaml_args.ml
+ cd '$(1)' && \
PATH="$(PREFIX)/$(TARGET)/bin/ocaml-native:$(PATH)" \
./configure \
- -config $(PREFIX)/$(TARGET)/etc/findlib.conf \
- -bindir $(PREFIX)/$(TARGET)/bin \
- -sitelib $(PREFIX)/$(TARGET)/lib/ocaml \
- -mandir $(PREFIX)/$(TARGET)/share/man \
- -with-toolbox \
- -no-topfind \
-
- # no-topfind because it wants to be installed in /usr/bin, and creates blocking
- # error
- $(MAKE) -C '$(1)' -j '$(JOBS)' PATH="$(PREFIX)/$(TARGET)/bin/ocaml-native:$(PATH)" all
- $(MAKE) -C '$(1)' -j '$(JOBS)' PATH="$(PREFIX)/$(TARGET)/bin/ocaml-native:$(PATH)" opt
+ -config $(PREFIX)/$(TARGET)/etc/findlib.conf \
+ -bindir $(PREFIX)/$(TARGET)/bin \
+ -sitelib $(PREFIX)/$(TARGET)/lib/ocaml \
+ -mandir $(PREFIX)/$(TARGET)/share/man \
+ -with-toolbox \
+ -no-topfind \
- # Install findlib
- $(MAKE) -C '$(1)' -j '$(JOBS)' install
- cp -f $(PREFIX)/$(TARGET)/bin/ocamlfind $(PREFIX)/bin/$(TARGET)-ocamlfind
- # Override etc/findlib.conf with our own version
- rm -f $(PREFIX)/$(TARGET)/etc/findlib.conf
- (echo 'stdlib="$(PREFIX)/$(TARGET)/lib/ocaml"'; \
- echo 'ldconf="$(PREFIX)/$(TARGET)/lib/ocaml/ld.conf"'; \
- echo 'destdir="$(PREFIX)/$(TARGET)/lib/ocaml"'; \
- echo 'path="$(PREFIX)/$(TARGET)/lib/ocaml"'; \
- echo 'ocamlc="$(TARGET)-ocamlc"'; \
- echo 'ocamlopt="$(TARGET)-ocamlopt"'; \
- echo 'ocamldep="$(TARGET)-ocamldep"') \
- > $(PREFIX)/$(TARGET)/etc/findlib.conf
+ # no-topfind because it wants to be installed in /usr/bin, and creates blocking
+ # error
+ $(MAKE) -C '$(1)' -j '$(JOBS)' PATH="$(PREFIX)/$(TARGET)/bin/ocaml-native:$(PATH)" all
+ $(MAKE) -C '$(1)' -j '$(JOBS)' PATH="$(PREFIX)/$(TARGET)/bin/ocaml-native:$(PATH)" opt
- # test
- cp '$(2).ml' '$(1)/test.ml'
- cd '$(1)' && '$(TARGET)-ocamlfind' opt test.ml
+ # Install findlib
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
+ cp -f $(PREFIX)/$(TARGET)/bin/ocamlfind $(PREFIX)/bin/$(TARGET)-ocamlfind
+ # Override etc/findlib.conf with our own version
+ rm -f $(PREFIX)/$(TARGET)/etc/findlib.conf
+ (echo 'stdlib="$(PREFIX)/$(TARGET)/lib/ocaml"'; \
+ echo 'ldconf="$(PREFIX)/$(TARGET)/lib/ocaml/ld.conf"'; \
+ echo 'destdir="$(PREFIX)/$(TARGET)/lib/ocaml"'; \
+ echo 'path="$(PREFIX)/$(TARGET)/lib/ocaml"'; \
+ echo 'ocamlc="$(TARGET)-ocamlc"'; \
+ echo 'ocamlopt="$(TARGET)-ocamlopt"'; \
+ echo 'ocamldep="$(TARGET)-ocamldep"') \
+ > $(PREFIX)/$(TARGET)/etc/findlib.conf
+
+ # test
+ cp '$(2).ml' '$(1)/test.ml'
+ cd '$(1)' && '$(TARGET)-ocamlfind' opt test.ml
endef