#
# Conditional build:
%bcond_with amr # AMR-NB and AMR-WB (floating-point) support
+%bcond_without directfb # DirectFB support
%bcond_without faad # AAC decoding support
%bcond_without ffmpeg # ffmpeg support
%bcond_without freetype # freetype support
%bcond_without jpeg # JPEG support
-%bcond_without js # JavaScript support
+%bcond_with js # JavaScript support
%bcond_without mad # MP3 support
%bcond_without png # PNG support
%bcond_without xvid # xvid support
Summary(pl.UTF-8): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
Name: gpac
Version: 0.5.0
-Release: 2
+Release: 11
License: LGPL v2+
Group: Applications/Multimedia
Source0: http://downloads.sourceforge.net/gpac/%{name}-%{version}.tar.gz
Patch6: %{name}-js.patch
Patch7: %{name}-apps.patch
Patch8: %{name}-export.patch
+Patch9: %{name}-ffmpeg2.patch
URL: http://gpac.sourceforge.net/
-BuildRequires: DirectFB-devel
+%{?with_directfb:BuildRequires: DirectFB-devel}
BuildRequires: OpenGL-GLU-devel
BuildRequires: SDL-devel
BuildRequires: a52dec-libs-devel
%patch6 -p1
%patch7 -p1
%patch8 -p1
+%patch9 -p0
sed -i -e 's/wx-config/wx-gtk2-unicode-config/' configure
chmod a+x configure
%{!?with_xvid:--use-xvid=no} \
--xulsdk-path="/usr/include/xulrunner -I/usr/include/nspr"
+%{!?with_directfb: sed -i 's/CONFIG_DIRECTFB.*/CONFIG_DIRECTFB=no/' config.mak}
+
%{__make} -j1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
-%{__make} install install-lib \
+%{__make} -j1 install install-lib \
DESTDIR=$RPM_BUILD_ROOT
-%{__make} -C applications install \
+%{__make} -j1 -C applications install \
DESTDIR=$RPM_BUILD_ROOT \
MOZILLA_DIR=$RPM_BUILD_ROOT%{_browserpluginsdir}