Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[sailfishos][rpm] Use system libvpx. Fixes JB#50922
Signed-off-by: Andrew Branson <andrew.branson@jolla.com>
  • Loading branch information
abranson authored and rainemak committed Sep 2, 2020
1 parent d3bac20 commit 4f05988
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rpm/xulrunner-qt5.spec
Expand Up @@ -13,6 +13,7 @@
%define system_zlib 1
%define system_bz2 1
%define system_pixman 1
%define system_libvpx 1

%global mozappdir %{_libdir}/%{name}-%{greversion}
%global mozappdirdev %{_libdir}/%{name}-devel-%{greversion}
Expand Down Expand Up @@ -142,6 +143,9 @@ BuildRequires: libffi-devel
%if %{system_pixman}
BuildRequires: pkgconfig(pixman-1)
%endif
%if %{system_libvpx}
BuildRequires: pkgconfig(vpx)
%endif

%description
Mozilla XUL runner
Expand Down Expand Up @@ -245,6 +249,10 @@ echo "export CXXFLAGS=\"\$CXXFLAGS -DRELEASE_OR_BETA=1\"" >> "$MOZCONFIG"
echo "ac_add_options --enable-system-pixman" >> "${MOZCONFIG}"
%endif

%if %{system_libvpx}
echo "ac_add_options --with-system-libvpx" >> "${MOZCONFIG}"
%endif

%ifarch %ix86
echo "ac_add_options --disable-startupcache" >> "$MOZCONFIG"
%endif
Expand Down

0 comments on commit 4f05988

Please sign in to comment.