2011-09-28 07:02:54 +00:00
|
|
|
# Template build file for 'json-c'.
|
|
|
|
pkgname=json-c
|
2013-05-05 06:42:32 +00:00
|
|
|
version=0.11
|
2013-05-15 07:58:32 +00:00
|
|
|
revision=2
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-05-15 07:58:32 +00:00
|
|
|
configure_args="ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes
|
|
|
|
ac_cv_func_memcmp_working=yes"
|
2011-09-28 07:02:54 +00:00
|
|
|
short_desc="A JSON implementation in C"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="MIT"
|
2013-04-12 14:52:48 +00:00
|
|
|
homepage="http://oss.metaparadigm.com/$pkgname"
|
2013-05-05 06:42:32 +00:00
|
|
|
distfiles="https://s3.amazonaws.com/json-c_releases/releases/$pkgname-$version.tar.gz"
|
|
|
|
checksum=28dfc65145dc0d4df1dfe7701ac173c4e5f9347176c8983edbfac9149494448c
|
2011-09-28 07:02:54 +00:00
|
|
|
long_desc="
|
|
|
|
JSON-C implements a reference counting object model that allows you to easily
|
|
|
|
construct JSON objects in C, output them as JSON formatted strings and parse
|
|
|
|
JSON formatted strings back into the C representation of JSON objects."
|
|
|
|
|
2013-05-05 06:42:32 +00:00
|
|
|
disable_parallel_build=yes
|
|
|
|
hostmakedepends="automake libtool"
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2013-04-12 14:52:48 +00:00
|
|
|
post_install() {
|
2011-09-28 07:02:54 +00:00
|
|
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|
2013-04-12 14:52:48 +00:00
|
|
|
|
|
|
|
json-c-devel_package() {
|
|
|
|
depends="json-c>=${version}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|