diff options
author | Tony Theodore <tonyt@logyst.com> | 2012-12-14 09:00:58 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2012-12-14 10:33:46 (GMT) |
commit | 2a050c5ab83120e0c102970354202003b3d7badf (patch) | |
tree | 5e8aec4ef98f2ec738c693fede43e96706c21616 /src/ocaml-cairo.mk | |
parent | a489655ebc186987a35f05925a23209e450a02db (diff) | |
download | mxe-2a050c5ab83120e0c102970354202003b3d7badf.zip mxe-2a050c5ab83120e0c102970354202003b3d7badf.tar.gz mxe-2a050c5ab83120e0c102970354202003b3d7badf.tar.bz2 |
ocaml packages: run make cleanup-style
Diffstat (limited to 'src/ocaml-cairo.mk')
-rw-r--r-- | src/ocaml-cairo.mk | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/ocaml-cairo.mk b/src/ocaml-cairo.mk index 01f0b42..e37bc2f 100644 --- a/src/ocaml-cairo.mk +++ b/src/ocaml-cairo.mk @@ -1,33 +1,33 @@ # This file is part of MXE. # See index.html for further information. -PKG := ocaml-cairo -$(PKG)_IGNORE := +PKG := ocaml-cairo +$(PKG)_IGNORE := $(PKG)_CHECKSUM := d5835620bea005d5d5239f889b10a922fda2520b -$(PKG)_SUBDIR := cairo-ocaml-$($(PKG)_VERSION) -$(PKG)_FILE := cairo-ocaml_$($(PKG)_VERSION).orig.tar.gz +$(PKG)_SUBDIR := cairo-ocaml-$($(PKG)_VERSION) +$(PKG)_FILE := cairo-ocaml_$($(PKG)_VERSION).orig.tar.gz # URL http://cgit.freedesktop.org/cairo-ocaml/snapshot/$($(PKG)_FILE) gives a different checksum at each download, so I use the debian version. -$(PKG)_URL := http://ftp.de.debian.org/debian/pool/main/c/cairo-ocaml/$($(PKG)_FILE) -$(PKG)_DEPS := ocaml-core ocaml-findlib ocaml-lablgtk2 +$(PKG)_URL := http://ftp.de.debian.org/debian/pool/main/c/cairo-ocaml/$($(PKG)_FILE) +$(PKG)_DEPS := ocaml-core ocaml-findlib ocaml-lablgtk2 define $(PKG)_UPDATE - wget -q -O- 'http://ftp.de.debian.org/debian/pool/main/c/cairo-ocaml' | \ - $(SED) -n 's,.*cairo-ocaml-\([0-9][^>]*\)\.orig\.tar.*,\1,ip' | \ - head -1 + wget -q -O- 'http://ftp.de.debian.org/debian/pool/main/c/cairo-ocaml' | \ + $(SED) -n 's,.*cairo-ocaml-\([0-9][^>]*\)\.orig\.tar.*,\1,ip' | \ + head -1 endef define $(PKG)_BUILD - cd '$(1)' && autoreconf -fi -I support - cd '$(1)' && ./configure \ - --host $(TARGET) \ - --build="`config.guess`" \ - --prefix='$(PREFIX)/$(TARGET)' - $(MAKE) -C '$(1)' -j '$(JOBS)' install - cd '$(1)' && cp -f META $(PREFIX)/$(TARGET)/lib/ocaml/cairo/ - # test - cp '$(2).ml' '$(1)/test.ml' - cd '$(1)' && '$(TARGET)-ocamlfind' opt -linkpkg \ - -package lablgtk2.auto-init \ - -package cairo.lablgtk2 \ - test.ml + cd '$(1)' && autoreconf -fi -I support + cd '$(1)' && ./configure \ + --host $(TARGET) \ + --build="`config.guess`" \ + --prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1)' -j '$(JOBS)' install + cd '$(1)' && cp -f META $(PREFIX)/$(TARGET)/lib/ocaml/cairo/ + # test + cp '$(2).ml' '$(1)/test.ml' + cd '$(1)' && '$(TARGET)-ocamlfind' opt -linkpkg \ + -package lablgtk2.auto-init \ + -package cairo.lablgtk2 \ + test.ml endef |