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: 09-Mar-2008 19:58:39
Branch: HEAD Handle: 2008030918583900
Modified files:
openpkg-src/asterisk asterisk.spec
Log:
build a smaller Asterisk by default but let us bump up the feature
volume with a bunch of options
Summary:
Revision Changes Path
1.39 +53 -4 openpkg-src/asterisk/asterisk.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/asterisk/asterisk.spec
============================================================================
$ cvs diff -u -r1.38 -r1.39 asterisk.spec
--- openpkg-src/asterisk/asterisk.spec 9 Mar 2008 18:34:09 -0000
1.38
+++ openpkg-src/asterisk/asterisk.spec 9 Mar 2008 18:58:39 -0000
1.39
@@ -48,9 +48,15 @@
# package options
%option with_zaptel no
%option with_capi no
+%option with_ogg no
%option with_mp3 no
+%option with_fax no
%option with_avcodec no
%option with_ldap no
+%option with_sqlite no
+%option with_lua no
+%option with_jabber no
+%option with_imap no
# list of sources
Source0:
http://downloads.digium.com/pub/asterisk/releases/asterisk-%{V_asterisk}.tar.gz
@@ -70,15 +76,33 @@
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, bison, gcc, make, grep, config
PreReq: OpenPKG, openpkg >= 20040130
-BuildPreReq: zlib, curl, openssl, ncurses, speex, vorbis-libs, imap, popt,
sqlite, iksemel, lua
-PreReq: zlib, curl, openssl, ncurses, speex, vorbis-libs, imap, popt,
sqlite, iksemel, lua
-BuildPreReq: spandsp, tiff, jpeg, libxml, zlib
-PreReq: spandsp, tiff, jpeg, libxml, zlib
+BuildPreReq: zlib, curl, openssl, ncurses, speex, popt
+PreReq: zlib, curl, openssl, ncurses, speex, popt
BuildPreReq: perl, perl-openpkg
PreReq: perl
+%if "%{with_ogg}" == "yes"
+BuildPreReq: vorbis-libs
+PreReq: vorbis-libs
+%endif
%if "%{with_mp3}" == "yes"
PreReq: mpg123
%endif
+%if "%{with_imap}" == "yes"
+BuildPreReq: imap
+PreReq: imap
+%endif
+%if "%{with_sqlite}" == "yes"
+BuildPreReq: sqlite
+PreReq: sqlite
+%endif
+%if "%{with_lua}" == "yes"
+BuildPreReq: lua
+PreReq: lua
+%endif
+%if "%{with_fax}" == "yes"
+BuildPreReq: spandsp, tiff, jpeg, zlib
+PreReq: spandsp, tiff, jpeg, zlib
+%endif
%if "%{with_avcodec}" == "yes"
BuildPreReq: ffmpeg
PreReq: ffmpeg
@@ -87,6 +111,10 @@
BuildPreReq: openldap
PreReq: openldap
%endif
+%if "%{with_jabber}" == "yes"
+BuildPreReq: iksemel
+PreReq: iksemel
+%endif
AutoReq: no
AutoReqProv: no
@@ -228,14 +256,27 @@
--with-ncurses \
--with-gsm="internal" \
--with-popt=%{l_prefix} \
+%if "%{with_sqlite}" == "yes"
--with-sqlite3=%{l_prefix} \
+%else
+ --without-sqlite3 \
+%endif
--with-speex=%{l_prefix} \
+ --with-speexdsp=%{l_prefix} \
--with-ssl=%{l_prefix} \
--with-z=%{l_prefix} \
--with-ogg=%{l_prefix} \
--with-vorbis=%{l_prefix} \
+%if "%{with_jabber}" == "yes"
--with-iksemel=%{l_prefix} \
+%else
+ --without-iksemel \
+%endif
+%if "%{with_lua}" == "yes"
--with-lua=%{l_prefix} \
+%else
+ --without-lua \
+%endif
%if "%{with_zaptel}" == "yes"
--with-zaptel=$zaptel_prefix \
%else
@@ -251,7 +292,11 @@
%else
--without-ldap \
%endif
+%if "%{with_imap}" == "yes"
+ --with-imap=%{l_prefix} \
+%else
--without-imap \
+%endif
--without-netsnmp \
--without-isdnnet \
--without-misdn \
@@ -294,7 +339,11 @@
--with-ncurses \
--with-asterisk \
--without-mysqlclient \
+%if "%{with_fax}" == "yes"
--with-spandsp=%{l_prefix}
+%else
+ --without-spandsp
+%endif
%{l_make} %{l_mflags} \
CC="%{l_cc} %{l_cflags -O} -I. %{l_cppflags ncurses tiff .}"
) || exit $?
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]