diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 19:05:41 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 19:05:41 (GMT) |
commit | 27ee9799fd9f1e7c76505b070791c8412a43b33d (patch) | |
tree | c8f79cde9767dc8c9d86b1789afa2274b5bb5a69 | |
parent | 17233aabbdb35ccfc07804da02e7ca6e17038b81 (diff) | |
download | mxe-27ee9799fd9f1e7c76505b070791c8412a43b33d.zip mxe-27ee9799fd9f1e7c76505b070791c8412a43b33d.tar.gz mxe-27ee9799fd9f1e7c76505b070791c8412a43b33d.tar.bz2 |
translated package: libxml2
-rw-r--r-- | src/libxml2.mk | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/libxml2.mk b/src/libxml2.mk new file mode 100644 index 0000000..4260d20 --- /dev/null +++ b/src/libxml2.mk @@ -0,0 +1,26 @@ +# libxml2 +# http://www.xmlsoft.org/ + +PKG := libxml2 +$(PKG)_VERSION := 2.6.31 +$(PKG)_SUBDIR := libxml2-$($(PKG)_VERSION) +$(PKG)_FILE := libxml2-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := ftp://xmlsoft.org/libxml2/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'ftp://xmlsoft.org/libxml2/' | \ + $(SED) -n 's,.*LATEST_LIBXML2_IS_\([0-9][^>]*\)</a>.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + $(SED) 's,`uname`,MinGW,g' -i '$(1)/xml2-config.in' + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --without-debug \ + --prefix='$(PREFIX)/$(TARGET)' \ + --without-python + $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= +endef |