From 3409eaff44bb1a5fe5f2d87756ff5a16d91b7671 Mon Sep 17 00:00:00 2001 From: SolitudeSF Date: Mon, 7 Jan 2019 00:45:09 +0200 Subject: [PATCH] pqiv: add build_options --- srcpkgs/pqiv/template | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/srcpkgs/pqiv/template b/srcpkgs/pqiv/template index 571ac77c660..124ce4b700b 100644 --- a/srcpkgs/pqiv/template +++ b/srcpkgs/pqiv/template @@ -1,18 +1,25 @@ # Template file for 'pqiv' pkgname=pqiv version=2.11 -revision=1 +revision=2 build_style=gnu-makefile hostmakedepends="pkg-config" -makedepends="ffmpeg-devel glib-devel gtk+3-devel gvfs-devel libarchive-devel - libspectre-devel libwebp-devel poppler-devel" +makedepends="glib-devel gtk+3-devel $(vopt_if ffmpeg ffmpeg-devel) + $(vopt_if archive libarchive-devel) $(vopt_if ps libspectre-devel) + $(vopt_if webp libwebp-devel) $(vopt_if pdf poppler-glib-devel)" short_desc="Powerful quick image viewer" maintainer="Leah Neukirchen " license="GPL-3.0-or-later" homepage="https://github.com/phillipberndt/pqiv/" distfiles="https://github.com/phillipberndt/${pkgname}/archive/${version}.tar.gz" checksum=ea1f8b6bcb58dee19e2d8168ef4efd01e222c653eabbd3109aad57a870cc8c9b +build_options="ffmpeg archive webp ps pdf" +build_options_default="ffmpeg archive webp" +desc_option_archive="Enable support for viewing archives/comic books" +desc_option_webp="Enable support for WebP format" do_configure() { - echo 'BACKENDS=libav archive_cbx archive webp gdkpixbuf spectre' >config.make + echo "BACKENDS=gdkpixbuf $(vopt_if ffmpeg libav) \ +$(vopt_if archive 'archive_cbx archive') $(vopt_if ps spectre) \ +$(vopt_if webp webp) $(vopt_if pdf poppler)" >config.make }