#
# Conditional build:
+%bcond_with bootstrap # bootstrap (alias for _without_mpeg4ip)
%bcond_without mpeg4ip # don't build MPEG4IP plugin
+%bcond_without static_libs # don't build static libraries
%bcond_without xmms # don't build XMMS plugin
-%bcond_with bootstrap # bootstrap (alias for _without_mpeg4ip)
#
%{?with_bootstrap:%undefine with_mpeg4ip}
Summary: Freeware Advanced Audio Decoder 2
Patch2: %{name}-mpeg4ip.patch
Patch3: %{name}-inttypes_h.patch
URL: http://www.audiocoding.com/
+BuildRequires: SDL-devel
BuildRequires: autoconf
BuildRequires: automake
%{?with_xmms:BuildRequires: id3lib-devel >= 3.8.2}
%{__automake}
%configure \
--with%{!?with_xmms:out}-xmms \
- --with%{!?with_mpeg4ip:out}-mpeg4ip
+ --with%{!?with_mpeg4ip:out}-mpeg4ip \
+ %{!?with_static_libs:--disable-static}
%{__make}
%{_includedir}/faad.h
%{_includedir}/neaacdec.h
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libfaad.a
+%endif
%if %{with xmms}
%files -n xmms-input-faad2