- add %bcond for avif
OBS-URL: https://build.opensuse.org/package/show/graphics/gd?expand=0&rev=71
This commit is contained in:
parent
c36ac93d08
commit
01b6eca476
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 28 15:04:29 UTC 2023 - pgajdos@suse.com
|
||||
|
||||
- add %bcond for avif
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 27 09:14:03 UTC 2023 - pgajdos@suse.com
|
||||
|
||||
|
6
gd.spec
6
gd.spec
@ -16,6 +16,8 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without avif
|
||||
|
||||
%define prjname libgd
|
||||
%define lname libgd3
|
||||
Name: gd
|
||||
@ -39,9 +41,11 @@ BuildRequires: libpng-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(fontconfig)
|
||||
BuildRequires: pkgconfig(freetype2)
|
||||
%if %{with avif}
|
||||
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150300
|
||||
BuildRequires: pkgconfig(libavif)
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: pkgconfig(libtiff-4)
|
||||
BuildRequires: pkgconfig(libwebp)
|
||||
BuildRequires: pkgconfig(xpm)
|
||||
@ -108,8 +112,10 @@ export CFLAGS="%{optflags} -ffp-contract=off"
|
||||
--with-xpm \
|
||||
--enable-gd-formats=yes \
|
||||
--with-webp \
|
||||
%if %{with avif}
|
||||
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} > 150300
|
||||
--with-avif \
|
||||
%endif
|
||||
%endif
|
||||
--with-zlib \
|
||||
--disable-static
|
||||
|
Loading…
Reference in New Issue
Block a user