# Compiling Time: 0.31 SBU
# Maintainer: crazy <crazy@frugalware.org>

pkgname=xmlrpc-c
pkgver=1.51.03
pkgrel=2
pkgdesc="This library provides a modular implementation of XML-RPC for C and C++."
depends=('curl>=7.19.0' 'openssl>=1.1.1' 'libstdc++' 'libxml2>=2.7.8' 'readline>=8.0')
groups=('network-extra')
archs=('x86_64')
_F_sourceforge_ext=".tgz"
Finclude sourceforge
url="http://xmlrpc-c.sourceforge.net/"
sha1sums=('6f7501c07ceb7769ee724251ddf516156f033df8')

build()
{
	Fcd
	Fsed '-O3' '' common.mk

	CFLAGS+=" -fPIC"
	CXXFLAGS+=" -fPIC"

	Fexec ./configure \
		--prefix=/usr \
		--disable-libxml2-backend  \
		--disable-wininet-client \
		--disable-libwww-client \
		--enable-cplusplus \
		--enable-abyss-threads || Fdie

	Fexec make  CFLAGS_PERSONAL="${CFLAGS}" CXXFLAGS_PERSONAL="${CXXFLAGS}" || Fdie
	Fexec make -C tools CFLAGS_PERSONAL="${CFLAGS}" CXXFLAGS_PERSONAL="${CXXFLAGS}" || Fdie

	Fmakeinstall
	Fexec cd tools || Fdie
	Fmakeinstall
}

# optimization OK
