diff options
author | William <r.3@libertysurf.fr> | 2012-12-13 14:37:59 (GMT) |
---|---|---|
committer | William <r.3@libertysurf.fr> | 2012-12-13 14:56:18 (GMT) |
commit | 893ee41daf3467582f3342423631e4ad89950771 (patch) | |
tree | 9d1388ee952a41cd80319ed72d2c57a06d959ba2 /src/ocaml-xml-light.mk | |
parent | 25f1d752940b4ea5b4b5b103fb6b58a117d22e13 (diff) | |
download | mxe-893ee41daf3467582f3342423631e4ad89950771.zip mxe-893ee41daf3467582f3342423631e4ad89950771.tar.gz mxe-893ee41daf3467582f3342423631e4ad89950771.tar.bz2 |
add package ocaml-xml-light
Diffstat (limited to 'src/ocaml-xml-light.mk')
-rw-r--r-- | src/ocaml-xml-light.mk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ocaml-xml-light.mk b/src/ocaml-xml-light.mk new file mode 100644 index 0000000..5951ba9 --- /dev/null +++ b/src/ocaml-xml-light.mk @@ -0,0 +1,32 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +PKG := ocaml-xml-light +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := e524aa20c34bf45a839363b61bb2cbbf8fcdc6bc +$(PKG)_SUBDIR := xml-light +$(PKG)_FILE := xml-light-$($(PKG)_VERSION).zip +$(PKG)_URL := http://tech.motion-twin.com/zip/$($(PKG)_FILE) +$(PKG)_DEPS := ocaml-findlib + +define $(PKG)_UPDATE + wget -q -O- 'http://tech.motion-twin.com/xmllight' | \ + $(SED) -n 's,.*xml-light-\(.*\)\.zip.*,\1,ip' | \ + head -1 +endef + +define $(PKG)_BUILD + $(SED) -i "s,@target@,$(TARGET),g" '$(1)/Makefile' + $(SED) -i 's/ocamllex/$(TARGET)-ocamllex/g' '$(1)/Makefile' + $(SED) -i "s,@installdir@,$(PREFIX)/$(TARGET)/lib/ocaml/xml-light,g" $(1)/Makefile + $(MAKE) -C '$(1)' xml_parser.ml + $(MAKE) -C '$(1)' -j '$(JOBS)' # without seperated previous step, does not work + mkdir -p $(PREFIX)/$(TARGET)/lib/ocaml/xml-light + # install.. + $(MAKE) -C '$(1)' -j '$(JOBS)' install + (echo 'version="$($(PKG)_VERSION)"'; \ + echo 'directory="+xml-light"'; \ + echo 'archive(byte) = "xml-light.cma"'; \ + echo 'archive(native) = "xml-light.cmxa"') \ + > $(PREFIX)/$(TARGET)/lib/ocaml/xml-light/META +endef |