Browse Source

Fix building under with_ogg=no (contribited by cs@)

master
parent
commit
7d558c0eba
  1. 12
      asterisk/asterisk.spec

12
asterisk/asterisk.spec

@ -43,7 +43,7 @@ Class: BASE
Group: VoIP
License: GPL
Version: %{V_opkg}
Release: 20080309
Release: 20080310
# package options
%option with_zaptel no
@ -235,7 +235,10 @@ AutoReqProv: no
-e 's;lua5.1/lua.h;lua/lua.h;' \
-e 's;ffmpeg/avcodec.h;libavcodec/avcodec.h;' \
configure
libs="-logg -lm"
libs=""
%if "%{with_ogg}" == "yes"
libs="$libs -logg -lm"
%endif
%if "%{with_avcodec}" == "yes"
libs="$libs -lavcodec -lavutil"
%endif
@ -265,8 +268,13 @@ AutoReqProv: no
--with-speexdsp=%{l_prefix} \
--with-ssl=%{l_prefix} \
--with-z=%{l_prefix} \
%if "%{with_ogg}" == "yes"
--with-ogg=%{l_prefix} \
--with-vorbis=%{l_prefix} \
%else
--without-ogg \
--without-vorbis \
%endif
%if "%{with_jabber}" == "yes"
--with-iksemel=%{l_prefix} \
%else

Loading…
Cancel
Save