mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
libnih: enable threading; unbreak cross compilation.
This commit is contained in:
parent
28571c1c5e
commit
f01a7ff64a
1 changed files with 14 additions and 2 deletions
|
@ -1,9 +1,10 @@
|
||||||
# Template file for 'libnih'
|
# Template file for 'libnih'
|
||||||
pkgname=libnih
|
pkgname=libnih
|
||||||
version=1.0.3
|
version=1.0.3
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config"
|
configure_args="--enable-threading"
|
||||||
|
hostmakedepends="automake libtool gettext-devel pkg-config"
|
||||||
makedepends="dbus-devel"
|
makedepends="dbus-devel"
|
||||||
short_desc="Small library for C application development"
|
short_desc="Small library for C application development"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -12,6 +13,17 @@ homepage="https://launchpad.net/libnih"
|
||||||
distfiles="http://launchpad.net/libnih/${version%.*}/${version}/+download/libnih-${version}.tar.gz"
|
distfiles="http://launchpad.net/libnih/${version%.*}/${version}/+download/libnih-${version}.tar.gz"
|
||||||
checksum=897572df7565c0a90a81532671e23c63f99b4efde2eecbbf11e7857fbc61f405
|
checksum=897572df7565c0a90a81532671e23c63f99b4efde2eecbbf11e7857fbc61f405
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
hostmakedepends+=" libnih"
|
||||||
|
fi
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
configure_args+=" NIH_DBUS_TOOL=/usr/bin/nih-dbus-tool"
|
||||||
|
fi
|
||||||
|
autoreconf -fi
|
||||||
|
}
|
||||||
|
|
||||||
libnih-devel_package() {
|
libnih-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="${sourcepkg}-${version}_${revision}"
|
depends="${sourcepkg}-${version}_${revision}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue