pqiv: add build_options
This commit is contained in:
parent
9181c55aba
commit
3409eaff44
|
@ -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 <leah@vuxu.org>"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue