liblogging: add systemd build option (disabled by default).
This commit is contained in:
parent
b08645e8c7
commit
85b347b5ad
1 changed files with 12 additions and 2 deletions
|
@ -1,11 +1,10 @@
|
||||||
# Template file for 'liblogging'
|
# Template file for 'liblogging'
|
||||||
pkgname=liblogging
|
pkgname=liblogging
|
||||||
version=1.0.2
|
version=1.0.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --enable-cached-man-pages"
|
configure_args="--disable-static --enable-cached-man-pages"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="systemd-devel"
|
|
||||||
short_desc="Easy to use, portable, open source library for system logging"
|
short_desc="Easy to use, portable, open source library for system logging"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1"
|
||||||
|
@ -13,6 +12,17 @@ homepage="http://www.liblogging.org/"
|
||||||
distfiles="http://download.rsyslog.com/liblogging/${pkgname}-${version}.tar.gz"
|
distfiles="http://download.rsyslog.com/liblogging/${pkgname}-${version}.tar.gz"
|
||||||
checksum=1fecfdc506ee937c21c30d868c76842506dc34ea5eb168b81fd11eb9483e4388
|
checksum=1fecfdc506ee937c21c30d868c76842506dc34ea5eb168b81fd11eb9483e4388
|
||||||
|
|
||||||
|
# Package build options
|
||||||
|
build_options="systemd"
|
||||||
|
desc_option_systemd="Enable support for systemd journal"
|
||||||
|
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
|
configure_args+=" --enable-journal"
|
||||||
|
makedepends+=" systemd-devel"
|
||||||
|
else
|
||||||
|
configure_args+=" --disable-journal"
|
||||||
|
fi
|
||||||
|
|
||||||
liblogging-devel_package() {
|
liblogging-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Reference in a new issue