diff --git a/srcpkgs/libcaca/template b/srcpkgs/libcaca/template index 554cbe79090..f13ebb44929 100644 --- a/srcpkgs/libcaca/template +++ b/srcpkgs/libcaca/template @@ -6,12 +6,16 @@ build_style=gnu-configure hostmakedepends="libtool automake pkg-config" short_desc="Graphics library that outputs text instead of pixels" maintainer="Juan RP " -makedepends="libX11-devel ncurses-devel" +makedepends="ncurses-devel $(vopt_if x11 libX11-devel)" homepage="http://caca.zoy.org/wiki/libcaca" license="WTFPL" distfiles="https://github.com/cacalabs/libcaca/archive/v${version}.tar.gz" checksum=7ed29a00cc7f017424d8b2994f001f137ed5bc4441987b711d78c6734fdf3493 +# package build options +build_options="x11" +desc_option_x11="Enable x11 driver" + pre_configure() { sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac autoreconf -fi