Merge pull request #2023 from pullmoll/xmlrpc-c

xmlrpc-c: Fix building of shlibs for musl libc
This commit is contained in:
Jürgen Buchmüller 2015-07-14 14:23:43 +02:00
commit afbbb145a0
1 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'xmlrpc-c'
pkgname=xmlrpc-c
version=1.25.30
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-libxml2-backend --enable-cplusplus --disable-cgi-server
--disable-libwww-client --disable-wininet-client"
@ -20,11 +20,18 @@ disable_parallel_build=yes
pre_configure() {
sed 's,XMLRPC_ABYSS_EXPORTED,XMLRPC_DLLEXPORT,g' -i include/xmlrpc-c/abyss.h
}
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
}
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