47 lines
1.2 KiB
Bash
47 lines
1.2 KiB
Bash
# Template file for 'xmlrpc-c'
|
|
pkgname=xmlrpc-c
|
|
version=1.39.11
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-libxml2-backend --enable-cplusplus --disable-cgi-server
|
|
--disable-libwww-client --disable-wininet-client"
|
|
hostmakedepends="pkg-config python"
|
|
makedepends="libcurl-devel libxml2-devel"
|
|
short_desc="XML-RPC for C and C++"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="BSD"
|
|
homepage="http://xmlrpc-c.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tgz"
|
|
checksum=2e56cdcdd5c5fa564bcdc7a56bca108a88f5b78b34ccc85558366efabdc8b8e8
|
|
|
|
CFLAGS="-fPIC"
|
|
disable_parallel_build=yes
|
|
|
|
pre_configure() {
|
|
sed 's,XMLRPC_ABYSS_EXPORTED,XMLRPC_DLLEXPORT,g' -i include/xmlrpc-c/abyss.h
|
|
sed -i configure \
|
|
-e "s;AR=.*;AR=${AR};" \
|
|
-e "s;RANLIB=.*;RANLIB=${RANLIB};"
|
|
}
|
|
post_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # Enable linux-gnu configuration for shlibs
|
|
sed -e "s;linux-gnu;linux-musl;g" -i ${wrksrc}/config.mk
|
|
esac
|
|
}
|
|
|
|
post_install() {
|
|
vlicense doc/COPYING
|
|
}
|
|
|
|
xmlrpc-c-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
local shlib
|
|
vmove usr/bin
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|