From 9511235c813155f8545c05024dc00a04fd0da3f9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 20 May 2014 14:11:47 +0200 Subject: [PATCH] kmscon: add systemd build option (on by default). --- srcpkgs/kmscon/template | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/srcpkgs/kmscon/template b/srcpkgs/kmscon/template index fd9d4a2d8d..e705f7a0e3 100644 --- a/srcpkgs/kmscon/template +++ b/srcpkgs/kmscon/template @@ -1,13 +1,13 @@ # Template file for 'kmscon' pkgname=kmscon version=8 -revision=2 +revision=3 lib32disabled=yes build_style=gnu-configure -configure_args="--enable-multi-seat --disable-static" +configure_args="--disable-static" hostmakedepends="pkg-config docbook-xsl xkeyboard-config" makedepends="MesaLib-devel pango-devel libtsm-devel libxkbcommon-devel - libpciaccess-devel libudev-devel systemd-devel dbus-devel fuse-devel" + libpciaccess-devel libudev-devel dbus-devel fuse-devel" depends="xkeyboard-config" short_desc="Terminal emulator based on Kernel Mode Setting (KMS)" maintainer="Juan RP " @@ -16,6 +16,18 @@ homepage="http://www.freedesktop.org/wiki/Software/kmscon" distfiles="http://freedesktop.org/software/kmscon/releases/kmscon-8.tar.xz" checksum=0ab01c1cdc4fbd692ce765e80478bc2d9663a7c55a5c75cc7ac421366ee6ae2b +# Package build options +build_options="systemd" +build_options_default="systemd" +desc_option_systemd="Enable support for systemd" + +if [ "$build_option_systemd" ]; then + configure_args+=" --enable-multi-seat" + makedepends+=" systemd-devel" +else + configure_args+=" --disable-multi-seat" +fi + post_install() { vinstall COPYING 644 usr/share/licenses/${pkgname} vmkdir usr/lib/systemd/system