summaryrefslogtreecommitdiffstats
path: root/src/xmlwrapp.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2008-11-08 19:35:38 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2008-11-08 19:35:38 (GMT)
commitfcf318dbb58c3d483d3cb41f386e8bf08b941e01 (patch)
tree78cca147fd301df1effd3bdd1748d52848edd719 /src/xmlwrapp.mk
parent6362f71542202278547e66afa73c978259a80a56 (diff)
downloadmxe-fcf318dbb58c3d483d3cb41f386e8bf08b941e01.zip
mxe-fcf318dbb58c3d483d3cb41f386e8bf08b941e01.tar.gz
mxe-fcf318dbb58c3d483d3cb41f386e8bf08b941e01.tar.bz2
translated package: xmlwrapp
Diffstat (limited to 'src/xmlwrapp.mk')
-rw-r--r--src/xmlwrapp.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/xmlwrapp.mk b/src/xmlwrapp.mk
new file mode 100644
index 0000000..54e7c88
--- /dev/null
+++ b/src/xmlwrapp.mk
@@ -0,0 +1,35 @@
+# xmlwrapp
+# http://sourceforge.net/projects/xmlwrapp/
+
+PKG := xmlwrapp
+$(PKG)_VERSION := 0.5.0
+$(PKG)_SUBDIR := xmlwrapp-$($(PKG)_VERSION)
+$(PKG)_FILE := xmlwrapp-$($(PKG)_VERSION).tgz
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/xmlwrapp/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc libxml2 libxslt
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=142403&package_id=156331' | \
+ grep 'xmlwrapp-' | \
+ $(SED) -n 's,.*xmlwrapp-\([0-9][^>]*\)\.tgz.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ $(SED) 's,.*/usr/include.*,,' -i '$(1)/configure.pl'
+ EXSLT_LIBS=`$(TARGET)-pkg-config libexslt --libs | $(SED) 's,-L[^ ]*,,g'` \
+ $(SED) "s,-lxslt -lexslt,$$EXSLT_LIBS," -i '$(1)/configure.pl'
+ $(SED) 's,"ranlib",$$ENV{"RANLIB"} || "ranlib",g' -i '$(1)/tools/cxxflags'
+ cd '$(1)' && \
+ CXX='$(TARGET)-g++' \
+ AR='$(TARGET)-ar' \
+ RANLIB='$(TARGET)-ranlib' \
+ CXXFLAGS="-ffriend-injection `$(PREFIX)/$(TARGET)/bin/xml2-config --cflags`" \
+ ./configure.pl \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --xml2-config='$(PREFIX)/$(TARGET)/bin/xml2-config' \
+ --xslt-config='$(PREFIX)/$(TARGET)/bin/xslt-config' \
+ --disable-examples
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install
+endef