summaryrefslogtreecommitdiffstats
path: root/src/mxml.mk
diff options
context:
space:
mode:
authorMartin Gerhardy <martin.gerhardy@gmail.com>2010-11-26 22:11:23 (GMT)
committerMartin Gerhardy <martin.gerhardy@gmail.com>2010-11-26 22:11:23 (GMT)
commita9f237186c3eb3b35c44ae46035994a9fab69208 (patch)
tree3929fcc5cfce29c5d814ec0a98532460d0a9e1a0 /src/mxml.mk
parentfa7b4a2a69ff89e46c91d65dc028b0b459db7472 (diff)
downloadmxe-a9f237186c3eb3b35c44ae46035994a9fab69208.zip
mxe-a9f237186c3eb3b35c44ae46035994a9fab69208.tar.gz
mxe-a9f237186c3eb3b35c44ae46035994a9fab69208.tar.bz2
new package: mxml
Diffstat (limited to 'src/mxml.mk')
-rw-r--r--src/mxml.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mxml.mk b/src/mxml.mk
new file mode 100644
index 0000000..fc23323
--- /dev/null
+++ b/src/mxml.mk
@@ -0,0 +1,35 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# minixml
+PKG := mxml
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 2.6
+$(PKG)_CHECKSUM := df180bd2e3890c97fa8a05dd131f9285468cffe1
+$(PKG)_SUBDIR := mxml-$($(PKG)_VERSION)
+$(PKG)_FILE := mxml-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.minixml.org/
+$(PKG)_URL := http://ftp.easysw.com/pub/mxml/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://www.minixml.org/software.php' | \
+ $(SED) -n 's,.*mxml-\([0-9][^>]*\)\.tar.*,\1,ip' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ $(SED) -i 's, mxmldoc testmxml mxml.xml , ,' '$(1)/Makefile.in'
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --disable-threads \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' libmxml.a
+ $(TARGET)-ranlib '$(1)/libmxml.a'
+ $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
+ $(INSTALL) -m644 '$(1)/libmxml.a' '$(PREFIX)/$(TARGET)/lib/'
+ $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
+ $(INSTALL) -m644 '$(1)/mxml.h' '$(PREFIX)/$(TARGET)/include/'
+ $(INSTALL) -m644 '$(1)/mxml.pc' '$(PREFIX)/$(TARGET)/lib/pkgconfig'
+endef