blob: 442d582685d61d64361f294c88a8b1f8a1b74366 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
|