summaryrefslogtreecommitdiffstats
path: root/src/ocaml-camlimages.mk
diff options
context:
space:
mode:
authorWilliam <r.3@libertysurf.fr>2012-06-27 13:56:43 (GMT)
committerWilliam <r.3@libertysurf.fr>2012-12-13 13:02:29 (GMT)
commit25f1d752940b4ea5b4b5b103fb6b58a117d22e13 (patch)
treea1aec7841cc52eb45935b4bce64c223f7030a5d7 /src/ocaml-camlimages.mk
parent1dcda3d89e85fbe0db780e59f2ec98d7e640fd7c (diff)
downloadmxe-25f1d752940b4ea5b4b5b103fb6b58a117d22e13.zip
mxe-25f1d752940b4ea5b4b5b103fb6b58a117d22e13.tar.gz
mxe-25f1d752940b4ea5b4b5b103fb6b58a117d22e13.tar.bz2
add package ocaml-camlimages
Diffstat (limited to 'src/ocaml-camlimages.mk')
-rw-r--r--src/ocaml-camlimages.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/ocaml-camlimages.mk b/src/ocaml-camlimages.mk
new file mode 100644
index 0000000..442d582
--- /dev/null
+++ b/src/ocaml-camlimages.mk
@@ -0,0 +1,34 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := ocaml-camlimages
+$(PKG)_IGNORE :=
+#REVISION : wget -q -O- 'https://bitbucket.org/camlspotter/camlimages/downloads' | sed -n 's,.*camlspotter/camlimages/src/\(.*\)">caml.*,\1,ip'
+$(PKG)_CHECKSUM := 3ff44142386970003d3cff1446ad351b36759a8e
+# ATTENTION, checksum a revoir avec vrai paquet
+$(PKG)_SUBDIR := camlspotter-camlimages-c803efa9d5d3
+$(PKG)_FILE := v4.0.1.tar.gz
+$(PKG)_URL := https://bitbucket.org/camlspotter/camlimages/get/v4.0.1.tar.gz
+$(PKG)_DEPS := ocaml-findlib freetype libpng giflib tiff ocaml-lablgtk2
+
+define $(PKG)_UPDATE
+ wget -q -O- 'https://bitbucket.org/camlspotter/camlimages/downloads' | \
+ $(SED) -n 's,.*camlimages-\([0-9][^>]*\)\.tar.*,\1,ip' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && cp -f doc/old/* doc/
+ cd '$(1)' && autoreconf -fi
+ cd '$(1)' && ./configure \
+ --prefix '$(PREFIX)/$(TARGET)' \
+ --build="`config.guess`" \
+ --with-lablgtk2=yes \
+ --host $(TARGET) \
+ --disable-bytecode-library \
+ --disable-shared
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
+ # test
+ cp '$(2).ml' '$(1)/test.ml'
+ cd '$(1)' && '$(TARGET)-ocamlfind' opt -linkpkg -package camlimages test.ml
+endef