OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 10-Mar-2008 19:16:38
Branch: HEAD Handle: 2008031018163600
Modified files:
openpkg-src/asterisk asterisk.spec
Log:
Fix building under with_ogg=no (contribited by cs@)
Summary:
Revision Changes Path
1.43 +10 -2 openpkg-src/asterisk/asterisk.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/asterisk/asterisk.spec
============================================================================
$ cvs diff -u -r1.42 -r1.43 asterisk.spec
--- openpkg-src/asterisk/asterisk.spec 9 Mar 2008 20:15:20 -0000
1.42
+++ openpkg-src/asterisk/asterisk.spec 10 Mar 2008 18:16:36 -0000
1.43
@@ -43,7 +43,7 @@
Group: VoIP
License: GPL
Version: %{V_opkg}
-Release: 20080309
+Release: 20080310
# package options
%option with_zaptel no
@@ -235,7 +235,10 @@
-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 @@
--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
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]