Mercurial > hg > mxe-octave-anirudha
changeset 141:13f2668f37a8
translated package: libxml2
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sat, 08 Nov 2008 20:05:41 +0100 |
parents | cc9bce2a4451 |
children | e24c6d8d2a79 |
files | src/libxml2.mk |
diffstat | 1 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /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