aboutsummaryrefslogtreecommitdiffstats
path: root/main/xmlrpc-c/APKBUILD
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <b@bpiotrowski.pl>2012-07-09 09:47:32 +0200
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2012-07-09 09:47:32 +0200
commitab0b0d02245a80ba407b3825e390afaefa2c9e82 (patch)
tree99851a8b3783661e68e1fadc71cc196a251e7de8 /main/xmlrpc-c/APKBUILD
parent5ccdc422ed45059a3afc57f00e52f6c863500310 (diff)
downloadaports-ab0b0d02245a80ba407b3825e390afaefa2c9e82.tar.bz2
aports-ab0b0d02245a80ba407b3825e390afaefa2c9e82.tar.xz
main/xmlrpc-c: moved from testing
Diffstat (limited to 'main/xmlrpc-c/APKBUILD')
-rw-r--r--main/xmlrpc-c/APKBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/main/xmlrpc-c/APKBUILD b/main/xmlrpc-c/APKBUILD
new file mode 100644
index 0000000000..5be55ac008
--- /dev/null
+++ b/main/xmlrpc-c/APKBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xmlrpc-c
+pkgver=1.16.40
+pkgrel=0
+pkgdesc="This library provides a modular implementation of XML-RPC for C and C++"
+url="http://xmlrpc-c.sourceforge.net/"
+arch="all"
+license="custom:xmlrpc-c"
+depends=
+makedepends="libtool curl-dev libxml2-dev zlib-dev"
+subpackages="$pkgname-dev $pkgname-doc xmlrpc-c++:cxx"
+source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tgz
+ xmlrpc-c-curl.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --enable-libxml2-backend \
+ --disable-cgi-server \
+ --disable-abyss-server \
+ --disable-libwww-client \
+ --disable-wininet-client
+ # no parallel builds :-(
+ make -C include &&\
+ make -C lib &&\
+ make -j1 -C src &&\
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -m 644 -D doc/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+cxx() {
+ pkgdesc="This library provides a modular implementation of XML-RPC for C++"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/*++* "$subpkgdir"/usr/lib/
+}
+
+md5sums="0b5c026d48c21937261d90bdadda7248 xmlrpc-c-1.16.40.tgz
+101c2224b2338247097f96b03e206261 xmlrpc-c-curl.patch"