diff options
author | Lars Silvén <lars@primekey.se> | 2014-02-05 13:25:30 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2014-03-01 14:09:54 (GMT) |
commit | c8a6c3deded61bb6041c9fa443aa2b5e832b00c9 (patch) | |
tree | 8f143edf055bc365458381d68807fd9bb5daa369 /src/xmlrpc-c.mk | |
parent | 4a4c01b75cbd29acd44f01120258429f328bbfd8 (diff) | |
download | mxe-c8a6c3deded61bb6041c9fa443aa2b5e832b00c9.zip mxe-c8a6c3deded61bb6041c9fa443aa2b5e832b00c9.tar.gz mxe-c8a6c3deded61bb6041c9fa443aa2b5e832b00c9.tar.bz2 |
package xmlrpc-c added.
Diffstat (limited to 'src/xmlrpc-c.mk')
-rw-r--r-- | src/xmlrpc-c.mk | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/xmlrpc-c.mk b/src/xmlrpc-c.mk new file mode 100644 index 0000000..7b1002c --- /dev/null +++ b/src/xmlrpc-c.mk @@ -0,0 +1,37 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := xmlrpc-c +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.33.7 +$(PKG)_CHECKSUM := 2f1b1ac796247d412ebdbfa5d0a91dc286da6820 +$(PKG)_SUBDIR := xmlrpc-c-$($(PKG)_VERSION) +$(PKG)_FILE := xmlrpc-c-$($(PKG)_VERSION).tgz +# there is no .tgz for the "stable" branch on sourceforge.net so I have created one myself and put it on my server. +# is there a way to pull from the sourceforge.net svn instead ? +$(PKG)_URL := http://doido.aline.nu/~lars/src/$($(PKG)_FILE) +$(PKG)_DEPS := curl pthreads + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://sourceforge.net/p/xmlrpc-c/svn/HEAD/tree/release_number/' | \ + grep '<a href="' | \ + $(SED) -n 's,.*<a href="release-\([0-9][^"]*\)".*,\1,p' | \ + tail -1 +endef + +TMP_BIN_DIR := $(realpath .)/tmp-$(PKG)/curl-bin + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --prefix='$(PREFIX)/$(TARGET)' \ + --enable-curl-client \ + --enable-abyss-server \ + --enable-cgi-server \ + --enable-cplusplus \ + --enable-abyss-threads + + mkdir $(TMP_BIN_DIR); cd $(TMP_BIN_DIR); ln -s $(PREFIX)/$(TARGET)/bin/curl-config + PATH=$(TMP_BIN_DIR):$(PATH) $(MAKE) -C '$(1)' -j '$(JOBS)' BUILDTOOL_CC=gcc BUILDTOOL_CCLD=gcc + $(MAKE) -C '$(1)' -j '$(JOBS)' install +endef |