2013-05-27 20:49:39 +02:00
|
|
|
# Template file for 'c-ares'
|
|
|
|
pkgname=c-ares
|
2016-09-29 19:45:57 +02:00
|
|
|
version=1.12.0
|
2016-02-23 07:24:40 +01:00
|
|
|
revision=1
|
2013-05-27 20:49:39 +02:00
|
|
|
build_style=gnu-configure
|
|
|
|
short_desc="C library that performs DNS requests and name resolves asynchronously"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-05-27 20:49:39 +02:00
|
|
|
license="MIT"
|
|
|
|
homepage="http://c-ares.haxx.se/"
|
|
|
|
distfiles="http://c-ares.haxx.se/download/$pkgname-$version.tar.gz"
|
2016-09-29 19:45:57 +02:00
|
|
|
checksum=8692f9403cdcdf936130e045c84021665118ee9bfea905d1a76f04d4e6f365fb
|
2013-05-27 20:49:39 +02:00
|
|
|
|
2015-04-04 18:05:03 +02:00
|
|
|
pre_configure() {
|
|
|
|
case "$CFLAGS" in
|
|
|
|
*"-D_FORTIFY_SOURCE=2"*)
|
2016-02-23 07:30:25 +01:00
|
|
|
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=?/}
|
|
|
|
export CPPFLAGS+=" -D_FORTIFY_SOURCE=2"
|
|
|
|
;;
|
2015-04-04 18:05:03 +02:00
|
|
|
esac
|
2016-02-23 07:30:25 +01:00
|
|
|
export CFLAGS=${CFLAGS/-I${XBPS_CROSS_BASE}\/usr\/include/}
|
2015-04-04 18:05:03 +02:00
|
|
|
}
|
|
|
|
|
2016-09-29 19:45:57 +02:00
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE.md LICENSE
|
|
|
|
}
|
|
|
|
|
2013-05-27 20:49:39 +02:00
|
|
|
c-ares-devel_package() {
|
2014-05-25 12:07:40 +02:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-05-27 20:49:39 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2014-05-25 12:07:40 +02:00
|
|
|
vmove usr/lib/*.a
|
|
|
|
vmove usr/lib/*.so
|
2013-05-27 20:49:39 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/man
|
|
|
|
}
|
|
|
|
}
|
2016-09-29 19:45:57 +02:00
|
|
|
|