summaryrefslogtreecommitdiffstats
path: root/src/ocaml-camlimages.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2012-12-14 09:00:58 (GMT)
committerTony Theodore <tonyt@logyst.com>2012-12-14 10:33:46 (GMT)
commit2a050c5ab83120e0c102970354202003b3d7badf (patch)
tree5e8aec4ef98f2ec738c693fede43e96706c21616 /src/ocaml-camlimages.mk
parenta489655ebc186987a35f05925a23209e450a02db (diff)
downloadmxe-2a050c5ab83120e0c102970354202003b3d7badf.zip
mxe-2a050c5ab83120e0c102970354202003b3d7badf.tar.gz
mxe-2a050c5ab83120e0c102970354202003b3d7badf.tar.bz2
ocaml packages: run make cleanup-style
Diffstat (limited to 'src/ocaml-camlimages.mk')
-rw-r--r--src/ocaml-camlimages.mk42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/ocaml-camlimages.mk b/src/ocaml-camlimages.mk
index 14b205e..054238b 100644
--- a/src/ocaml-camlimages.mk
+++ b/src/ocaml-camlimages.mk
@@ -1,34 +1,34 @@
# This file is part of MXE.
# See index.html for further information.
-PKG := ocaml-camlimages
-$(PKG)_IGNORE :=
+PKG := ocaml-camlimages
+$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 3ff44142386970003d3cff1446ad351b36759a8e
-$(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 := ocaml-findlib freetype libpng giflib tiff ocaml-lablgtk2
+$(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 := 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
+ 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
+ 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
- cp '$(2).ml' '$(1)/test.ml'
- cd '$(1)' && '$(TARGET)-ocamlfind' opt -linkpkg -package camlimages test.ml
+ # test
+ cp '$(2).ml' '$(1)/test.ml'
+ cd '$(1)' && '$(TARGET)-ocamlfind' opt -linkpkg -package camlimages test.ml
endef