From c97fe3b4867971e79594d92b470506bcdcb1a5a5 Mon Sep 17 00:00:00 2001
From: newbluemoon <blaumolch@mailbox.org>
Date: Tue, 12 Sep 2017 09:32:57 +0200
Subject: [PATCH] libcaca: add (optional) support for imlib2

---
 srcpkgs/libcaca/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libcaca/template b/srcpkgs/libcaca/template
index a565cf1e600..a671219b3e4 100644
--- a/srcpkgs/libcaca/template
+++ b/srcpkgs/libcaca/template
@@ -1,12 +1,12 @@
 # Template file for 'libcaca'
 pkgname=libcaca
 version=0.99.beta19
-revision=7
+revision=8
 build_style=gnu-configure
 hostmakedepends="libtool automake pkg-config"
 short_desc="Graphics library that outputs text instead of pixels"
 maintainer="Juan RP <xtraeme@voidlinux.eu>"
-makedepends="ncurses-devel $(vopt_if x11 libX11-devel)"
+makedepends="ncurses-devel $(vopt_if x11 'libX11-devel imlib2-devel')"
 homepage="http://caca.zoy.org/wiki/libcaca"
 license="WTFPL"
 distfiles="https://github.com/cacalabs/libcaca/archive/v${version}.tar.gz"