blob: 3d74ec4be3818f05346f704df271c0844db7ae3d (
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
35
36
37
38
39
40
41
42
43
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := ocaml-camlimages
$(PKG)_WEBSITE := http://gallium.inria.fr/camlimages
$(PKG)_DESCR := camlimages
$(PKG)_IGNORE :=
$(PKG)_VERSION := 4.0.1
$(PKG)_CHECKSUM := b40237c1505487049799a7af296eb3996b3fa08eab94415546f46d61355747c4
$(PKG)_SUBDIR := camlspotter-camlimages-c803efa9d5d3
$(PKG)_FILE := v$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://bitbucket.org/camlspotter/camlimages/get/v$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS := gcc freetype giflib libpng ocaml-findlib ocaml-lablgtk2 tiff
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://bitbucket.org/camlspotter/camlimages/downloads' | \
$(SED) -n 's,.*get/v\([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
$(SED) -i 's,sed,$(SED),g' $(1)/Makefile
$(SED) -i 's,sed,$(SED),g' $(1)/src/Makefile
$(MAKE) -C '$(1)' -j 1 install
# test
'$(TARGET)-ocamlfind' opt -linkpkg \
-package camlimages \
-o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
< '$(TEST_FILE)'
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_SHARED =
|