[packages/imlib2] - added bcond to allow building without HEIF support

hawk hawk at pld-linux.org
Mon Apr 22 23:18:31 CEST 2024


commit 57ddbfd9eb2c02b9b4b05c2fb0359a2478d77c9c
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Mon Apr 22 23:17:26 2024 +0200

    - added bcond to allow building without HEIF support

 imlib2.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/imlib2.spec b/imlib2.spec
index b14fe37..32bbf5c 100644
--- a/imlib2.spec
+++ b/imlib2.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without	jxl		# JPEG XL loader
+%bcond_without	heif		# HEIF loader
 %bcond_with	ps		# enable postscript support
 %bcond_without	static_libs	# static library
 
@@ -20,7 +21,7 @@ BuildRequires:	bzip2-devel
 BuildRequires:	doxygen
 BuildRequires:	freetype-devel >= 2.1
 BuildRequires:	giflib-devel
-BuildRequires:	libheif-devel
+%{?with_heif:BuildRequires:	libheif-devel}
 BuildRequires:	libid3tag-devel
 BuildRequires:	libjpeg-devel >= 6b-18
 %{?with_jxl:BuildRequires:	libjxl-devel}
@@ -123,6 +124,7 @@ touch test/Makefile.am
 %ifarch %{x8664}
 	--enable-amd64 \
 %endif
+	%{!?with_heif:--without-heif} \
 	%{!?with_jxl:--without-jxl}
 
 %{__make}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/imlib2.git/commitdiff/57ddbfd9eb2c02b9b4b05c2fb0359a2478d77c9c



More information about the pld-cvs-commit mailing list