<!-- Generator: GNU source-highlight 2.4
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt>#
#
# add_dir "packages/asterisk/asterisk-1.2.28"

# add_file "packages/asterisk/asterisk-1.2.28/asterisk.patch"
#  content [cd980f6cc48c01f2394a731d2cf247809e5c2231]

# add_file "packages/asterisk/asterisk-1.2.28/enable-speex.patch"
#  content [123420f2bb25f198d687ae8cfad1eef6e90725bb]

# add_file "packages/asterisk/asterisk-1.2.28/uclibc-compat-getloadavg.patch"
#  content [750cd99592c157b993f2ccb9f63edbe274d9edd1]

# add_file "packages/asterisk/asterisk-1.2.28/uclibc-dns.patch"
#  content [9dbcc47d6cfeefd0f4c1071f982806f49ffc262d]

# add_file "packages/asterisk/asterisk_1.2.28.bb"
#  content [59adcd07ce9843da6a5209dbe439320b4e024fbc]
#
============================================================
<font color="#FF6600">--- packages/asterisk/asterisk-1.2.28/asterisk.patch        cd980f6cc48c01f2394a731d2cf247809e5c2231</font>
<font color="#009900">+++ packages/asterisk/asterisk-1.2.28/asterisk.patch        cd980f6cc48c01f2394a731d2cf247809e5c2231</font>
<font color="#0000FF">@@ -0,0 +1,221 @@</font>
<font color="#009900">+</font>
<font color="#009900">+#</font>
<font color="#009900">+# Patch managed by http://www.holgerschurig.de/patcher.html</font>
<font color="#009900">+#</font>
<font color="#009900">+</font>
<font color="#009900">+--- asterisk-1.2.9.1/./Makefile~asterisk</font>
<font color="#009900">++++ asterisk-1.2.9.1/./Makefile</font>
<font color="#009900">+@@ -331,7 +331,7 @@</font>
<font color="#009900">+ ASTCFLAGS+= $(TRACE_FRAMES)</font>
<font color="#009900">+ ASTCFLAGS+= $(MALLOC_DEBUG)</font>
<font color="#009900">+ ASTCFLAGS+= $(BUSYDETECT)</font>
<font color="#009900">+-ASTCFLAGS+= $(OPTIONS)</font>
<font color="#009900">++#ASTCFLAGS+= $(OPTIONS)</font>
<font color="#009900">+ ifneq ($(findstring dont-optimize,$(MAKECMDGOALS)),dont-optimize)</font>
<font color="#009900">+ ASTCFLAGS+= -fomit-frame-pointer </font>
<font color="#009900">+ endif</font>
<font color="#009900">+@@ -347,12 +347,12 @@</font>
<font color="#009900">+         netsock.o slinfactory.o ast_expr2.o ast_expr2f.o \</font>
<font color="#009900">+         cryptostub.o</font>
<font color="#009900">+ </font>
<font color="#009900">+-ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/sys/poll.h),)</font>
<font color="#009900">++ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/include/sys/poll.h),)</font>
<font color="#009900">+   OBJS+= poll.o</font>
<font color="#009900">+   ASTCFLAGS+=-DPOLLCOMPAT</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+-ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/dlfcn.h),)</font>
<font color="#009900">++ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/include/dlfcn.h),)</font>
<font color="#009900">+   OBJS+= dlfcn.o</font>
<font color="#009900">+   ASTCFLAGS+=-DDLFCNCOMPAT</font>
<font color="#009900">+ endif</font>
<font color="#009900">+@@ -397,7 +397,7 @@</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+ ifeq ($(MAKETOPLEVEL),$(MAKELEVEL))</font>
<font color="#009900">+-  CFLAGS+=$(ASTCFLAGS)</font>
<font color="#009900">++override CFLAGS+=$(ASTCFLAGS)</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+ # This is used when generating the doxygen documentation</font>
<font color="#009900">+@@ -519,7 +519,7 @@</font>
<font color="#009900">+         fi</font>
<font color="#009900">+         rm -f include/asterisk/build.h.tmp</font>
<font color="#009900">+         $(CC) -c -o buildinfo.o $(CFLAGS) buildinfo.c</font>
<font color="#009900">+-        $(CC) $(DEBUG) $(ASTOBJ) $(ASTLINK) $(OBJS) buildinfo.o $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a $(LIBS)</font>
<font color="#009900">++        $(CC) $(DEBUG) $(ASTOBJ) $(ASTLINK) $(OBJS) buildinfo.o $(LIBEDIT) db1-ast/libdb1.a stdtime/libtime.a $(LDFLAGS) $(LIBS)</font>
<font color="#009900">+ </font>
<font color="#009900">+ muted: muted.o</font>
<font color="#009900">+         $(CC) $(AUDIO_LIBS) -o muted muted.o</font>
<font color="#009900">+--- asterisk-1.2.9.1/codecs/gsm/Makefile~asterisk</font>
<font color="#009900">++++ asterisk-1.2.9.1/codecs/gsm/Makefile</font>
<font color="#009900">+@@ -51,7 +51,7 @@</font>
<font color="#009900">+            ifneq (${PROC},ppc)</font>
<font color="#009900">+             ifneq (${PROC},ppc64)</font>
<font color="#009900">+              ifneq (${PROC},s390)</font>
<font color="#009900">+-OPTIMIZE+=-march=$(PROC)</font>
<font color="#009900">++#OPTIMIZE+=-march=$(PROC)</font>
<font color="#009900">+              endif</font>
<font color="#009900">+             endif</font>
<font color="#009900">+            endif</font>
<font color="#009900">+@@ -243,7 +243,7 @@</font>
<font color="#009900">+ ifneq (${PROC},arm)</font>
<font color="#009900">+ ifneq ($(shell uname -m), parisc)</font>
<font color="#009900">+ ifneq ($(shell uname -m),s390)</font>
<font color="#009900">+-GSM_SOURCES+= $(SRC)/k6opt.s</font>
<font color="#009900">++#GSM_SOURCES+= $(SRC)/k6opt.s</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ endif</font>
<font color="#009900">+@@ -309,7 +309,7 @@</font>
<font color="#009900">+ ifneq ($(shell uname -m), armv4l)</font>
<font color="#009900">+ ifneq ($(shell uname -m), parisc)</font>
<font color="#009900">+ ifneq ($(shell uname -m),s390)</font>
<font color="#009900">+-GSM_OBJECTS+= $(SRC)/k6opt.o</font>
<font color="#009900">++#GSM_OBJECTS+= $(SRC)/k6opt.o</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ endif</font>
<font color="#009900">+--- asterisk-1.2.9.1/res/Makefile~asterisk</font>
<font color="#009900">++++ asterisk-1.2.9.1/res/Makefile</font>
<font color="#009900">+@@ -89,7 +89,7 @@</font>
<font color="#009900">+         fi</font>
<font color="#009900">+ </font>
<font color="#009900">+ res_crypto.so: res_crypto.o</font>
<font color="#009900">+-        $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $&lt; ${CYGSOLIB} $(CRYPTO_LIBS)</font>
<font color="#009900">++        $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $&lt; $(LDFLAGS) ${CYGSOLIB} $(CRYPTO_LIBS)</font>
<font color="#009900">+ </font>
<font color="#009900">+ clean:</font>
<font color="#009900">+         rm -f *.so *.o .depend</font>
<font color="#009900">+--- asterisk-1.2.9.1/channels/Makefile~asterisk</font>
<font color="#009900">++++ asterisk-1.2.9.1/channels/Makefile</font>
<font color="#009900">+@@ -73,7 +73,7 @@</font>
<font color="#009900">+   SOLINK+=-lrt</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/ixjuser.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/ixjuser.h),)</font>
<font color="#009900">++ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/include/linux/ixjuser.h),)</font>
<font color="#009900">+   CHANNEL_LIBS+=chan_phone.so</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+@@ -88,16 +88,16 @@</font>
<font color="#009900">+ </font>
<font color="#009900">+ CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations</font>
<font color="#009900">+ </font>
<font color="#009900">+-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/alsa/asoundlib.h),)</font>
<font color="#009900">++ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/include/alsa/asoundlib.h),)</font>
<font color="#009900">+   CHANNEL_LIBS+=chan_alsa.so</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/lib/libpri.so.1)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/lib/libpri.so.1),)</font>
<font color="#009900">++ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/lib/libpri.so.1),)</font>
<font color="#009900">+   CFLAGS+=-DZAPATA_PRI</font>
<font color="#009900">+   ZAPPRI=-lpri</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/lib/libmfcr2.so.1)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/lib/libmfcr2.so.1),)</font>
<font color="#009900">++ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/lib/libmfcr2.so.1),)</font>
<font color="#009900">+   CFLAGS+=-DZAPATA_R2</font>
<font color="#009900">+   ZAPR2=-lmfcr2</font>
<font color="#009900">+ endif</font>
<font color="#009900">+@@ -110,7 +110,7 @@</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+ ifndef WITHOUT_ZAPTEL</font>
<font color="#009900">+-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/pkg/include/zaptel.h),)</font>
<font color="#009900">++ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/include/linux/zaptel.h),)</font>
<font color="#009900">+   ifeq (${OSARCH},NetBSD)</font>
<font color="#009900">+     SOLINK+=-L$(CROSS_COMPILE_TARGET)/usr/pkg/lib</font>
<font color="#009900">+   endif</font>
<font color="#009900">+@@ -122,7 +122,7 @@</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ endif # WITHOUT_ZAPTEL</font>
<font color="#009900">+ </font>
<font color="#009900">+-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/vpbapi.h),)</font>
<font color="#009900">++ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/include/vpbapi.h),)</font>
<font color="#009900">+   CHANNEL_LIBS+=chan_vpb.so</font>
<font color="#009900">+   CFLAGS+=-DLINUX</font>
<font color="#009900">+ endif</font>
<font color="#009900">+@@ -137,7 +137,7 @@</font>
<font color="#009900">+ </font>
<font color="#009900">+ ZAPDIR=/usr/lib</font>
<font color="#009900">+ </font>
<font color="#009900">+-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/nbs.h),)</font>
<font color="#009900">++ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/include/nbs.h),)</font>
<font color="#009900">+   CHANNEL_LIBS+=chan_nbs.so</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+@@ -158,7 +158,7 @@</font>
<font color="#009900">+         rm -f busy.h ringtone.h gentone gentone-ulaw</font>
<font color="#009900">+ </font>
<font color="#009900">+ %.so : %.o</font>
<font color="#009900">+-        $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $&lt; ${CYGSOLIB} ${LIBS}</font>
<font color="#009900">++        $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $&lt; $(LDFLAGS) ${CYGSOLIB} ${LIBS}</font>
<font color="#009900">+ </font>
<font color="#009900">+ ifneq ($(wildcard .depend),)</font>
<font color="#009900">+   include .depend</font>
<font color="#009900">+@@ -215,7 +215,7 @@</font>
<font color="#009900">+ chan_alsa.o: $(ALSA_SRC)</font>
<font color="#009900">+ </font>
<font color="#009900">+ chan_alsa.so: chan_alsa.o</font>
<font color="#009900">+-        $(CC) $(SOLINK) -o $@ $&lt; -lasound -lm -ldl</font>
<font color="#009900">++        $(CC) $(SOLINK) -o $@ $&lt; -lasound -lm -ldl $(LDFLAGS)</font>
<font color="#009900">+ </font>
<font color="#009900">+ chan_nbs.so: chan_nbs.o</font>
<font color="#009900">+         $(CC) $(SOLINK) -o $@ $&lt; -lnbs</font>
<font color="#009900">+--- asterisk-1.2.9.1/pbx/Makefile~asterisk</font>
<font color="#009900">++++ asterisk-1.2.9.1/pbx/Makefile</font>
<font color="#009900">+@@ -59,7 +59,7 @@</font>
<font color="#009900">+         $(CC) $(SOLINK) -o $@ $(KDE_CONSOLE_OBJS) $(KDE_LIBS)</font>
<font color="#009900">+ </font>
<font color="#009900">+ pbx_dundi.so: dundi-parser.o pbx_dundi.o</font>
<font color="#009900">+-        $(CC) $(SOLINK) -o $@ ${CYGSOLINK} pbx_dundi.o dundi-parser.o -lz ${CYGSOLIB}</font>
<font color="#009900">++        $(CC) $(SOLINK) -o $@ ${CYGSOLINK} pbx_dundi.o dundi-parser.o -lz ${CYGSOLIB} $(LDFLAGS)</font>
<font color="#009900">+ </font>
<font color="#009900">+ %.moc : %.h</font>
<font color="#009900">+         $(MOC) $&lt; -o $@</font>
<font color="#009900">+--- asterisk-1.2.9.1/formats/Makefile~asterisk</font>
<font color="#009900">++++ asterisk-1.2.9.1/formats/Makefile</font>
<font color="#009900">+@@ -25,7 +25,7 @@</font>
<font color="#009900">+ #</font>
<font color="#009900">+ # OGG/Vorbis format</font>
<font color="#009900">+ #</font>
<font color="#009900">+-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/vorbis/codec.h),)</font>
<font color="#009900">++ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/include/vorbis/codec.h),)</font>
<font color="#009900">+   FORMAT_LIBS+=format_ogg_vorbis.so</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+@@ -57,7 +57,7 @@</font>
<font color="#009900">+         $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $&lt; ${CYGSOLIB} -lm</font>
<font color="#009900">+ </font>
<font color="#009900">+ format_ogg_vorbis.so : format_ogg_vorbis.o</font>
<font color="#009900">+-        $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $&lt; ${CYGSOLIB} -logg -lvorbis -lvorbisenc -lm</font>
<font color="#009900">++        $(CC) $(SOLINK) -o $@ ${CYGSOLINK} $&lt; ${CYGSOLIB} -logg -lvorbis -lvorbisenc -lm $(LDFLAGS)</font>
<font color="#009900">+ </font>
<font color="#009900">+ install: all</font>
<font color="#009900">+         for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done</font>
<font color="#009900">+--- asterisk-1.2.9.1/utils/Makefile~asterisk</font>
<font color="#009900">++++ asterisk-1.2.9.1/utils/Makefile</font>
<font color="#009900">+@@ -22,11 +22,11 @@</font>
<font color="#009900">+ </font>
<font color="#009900">+ TARGET=stereorize streamplayer</font>
<font color="#009900">+ </font>
<font color="#009900">+-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/popt.h)$(wildcard -f $(CROSS_COMPILE_TARGET)/usr/local/include/popt.h),)</font>
<font color="#009900">++ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/include/popt.h),)</font>
<font color="#009900">+   TARGET+=smsq</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/newt.h)$(wildcard -f $(CROSS_COMPILE_TARGET)/usr/local/include/newt.h),)</font>
<font color="#009900">++ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/include/newt.h),)</font>
<font color="#009900">+   TARGET+=astman</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+@@ -64,7 +64,7 @@</font>
<font color="#009900">+         $(CC) $(CFLAGS) -o $@ $^</font>
<font color="#009900">+ </font>
<font color="#009900">+ smsq: smsq.o</font>
<font color="#009900">+-        $(CC) $(CFLAGS) -o smsq ${SOL} smsq.o -lpopt</font>
<font color="#009900">++        $(CC) $(CFLAGS) -o smsq ${SOL} smsq.o -lpopt $(LDFLAGS)</font>
<font color="#009900">+ </font>
<font color="#009900">+ streamplayer: streamplayer.o</font>
<font color="#009900">+         $(CC) $(CFLAGS) -o streamplayer ${SOL} streamplayer.o ${SOLLIBS}</font>
============================================================
<font color="#FF6600">--- packages/asterisk/asterisk-1.2.28/enable-speex.patch        123420f2bb25f198d687ae8cfad1eef6e90725bb</font>
<font color="#009900">+++ packages/asterisk/asterisk-1.2.28/enable-speex.patch        123420f2bb25f198d687ae8cfad1eef6e90725bb</font>
<font color="#0000FF">@@ -0,0 +1,21 @@</font>
<font color="#009900">+--- /codecs/orig-Makefile        2005-11-29 13:24:39.000000000 -0500</font>
<font color="#009900">++++ /codecs/Makefile        2007-02-28 09:54:42.000000000 -0500</font>
<font color="#009900">+@@ -29,7 +29,7 @@</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ </font>
<font color="#009900">+ UI_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/speex.h)</font>
<font color="#009900">+-UIS_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/speex/speex.h)</font>
<font color="#009900">++UIS_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)/include/speex/speex.h)</font>
<font color="#009900">+ ULI_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/speex.h)</font>
<font color="#009900">+ ULIS_SPEEX=$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/speex/speex.h)</font>
<font color="#009900">+ ifneq (${UI_SPEEX},)</font>
<font color="#009900">+@@ -38,7 +38,8 @@</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ ifneq (${UIS_SPEEX},)</font>
<font color="#009900">+   MODSPEEX=codec_speex.so</font>
<font color="#009900">+-  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/include/speex</font>
<font color="#009900">++  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/include/speex</font>
<font color="#009900">++  LIBSPEEX=-L$(CROSS_COMPILE_TARGET)/lib</font>
<font color="#009900">+   LIBSPEEX+=-lspeex -lm</font>
<font color="#009900">+ endif</font>
<font color="#009900">+ ifneq (${ULI_SPEEX},)</font>
============================================================
<font color="#FF6600">--- packages/asterisk/asterisk-1.2.28/uclibc-compat-getloadavg.patch        750cd99592c157b993f2ccb9f63edbe274d9edd1</font>
<font color="#009900">+++ packages/asterisk/asterisk-1.2.28/uclibc-compat-getloadavg.patch        750cd99592c157b993f2ccb9f63edbe274d9edd1</font>
<font color="#0000FF">@@ -0,0 +1,13 @@</font>
<font color="#009900">+diff -ruN asterisk-1.2.0-old/include/asterisk/compat.h asterisk-1.2.0-new/include/asterisk/compat.h</font>
<font color="#009900">+--- asterisk-1.2.0-old/include/asterisk/compat.h        2005-11-08 05:13:19.000000000 +0100</font>
<font color="#009900">++++ asterisk-1.2.0-new/include/asterisk/compat.h        2005-12-04 05:32:31.000000000 +0100</font>
<font color="#009900">+@@ -75,7 +75,9 @@</font>
<font color="#009900">+ #define HAVE_STRTOQ</font>
<font color="#009900">+ </font>
<font color="#009900">+ #ifdef _BSD_SOURCE</font>
<font color="#009900">++#ifndef __UCLIBC__</font>
<font color="#009900">+ #define HAVE_GETLOADAVG</font>
<font color="#009900">++#endif /* __UCLIBC__ */</font>
<font color="#009900">+ #endif</font>
<font color="#009900">+ </font>
<font color="#009900">+ #ifdef __linux__</font>
============================================================
<font color="#FF6600">--- packages/asterisk/asterisk-1.2.28/uclibc-dns.patch        9dbcc47d6cfeefd0f4c1071f982806f49ffc262d</font>
<font color="#009900">+++ packages/asterisk/asterisk-1.2.28/uclibc-dns.patch        9dbcc47d6cfeefd0f4c1071f982806f49ffc262d</font>
<font color="#0000FF">@@ -0,0 +1,18 @@</font>
<font color="#009900">+--- /orig-dns.c        2007-07-16 23:46:58.000000000 +0300</font>
<font color="#009900">++++ /dns.c        2007-07-26 16:29:44.000000000 +0300</font>
<font color="#009900">+@@ -237,7 +237,14 @@</font>
<font color="#009900">+ #if defined(res_ndestroy)</font>
<font color="#009900">+ #define HAS_RES_NDESTROY</font>
<font color="#009900">+ #endif</font>
<font color="#009900">+-#else</font>
<font color="#009900">++#endif</font>
<font color="#009900">++</font>
<font color="#009900">++#ifdef __UCLIBC__</font>
<font color="#009900">++#undef HAS_RES_NINIT</font>
<font color="#009900">++#undef HAS_RES_NDESTROY</font>
<font color="#009900">++#endif</font>
<font color="#009900">++</font>
<font color="#009900">++#ifndef HAS_RES_NINIT</font>
<font color="#009900">+ AST_MUTEX_DEFINE_STATIC(res_lock);</font>
<font color="#009900">+ #if 0</font>
<font color="#009900">+ #warning "Warning, res_ninit is missing...  Could have reentrancy issues"</font>
============================================================
<font color="#FF6600">--- packages/asterisk/asterisk_1.2.28.bb        59adcd07ce9843da6a5209dbe439320b4e024fbc</font>
<font color="#009900">+++ packages/asterisk/asterisk_1.2.28.bb        59adcd07ce9843da6a5209dbe439320b4e024fbc</font>
<font color="#0000FF">@@ -0,0 +1,46 @@</font>
<font color="#009900">+# Copyright (C) 2007-2008, Stelios Koroneos - Digital OPSiS, All Rights Reserved</font>
<font color="#009900">+# Released under the MIT license (see packages/COPYING)</font>
<font color="#009900">+DESCRIPTION="The Asterisk open source software PBX"</font>
<font color="#009900">+HOMEPAGE="www.asterisk.org"</font>
<font color="#009900">+LICENSE="GPL"</font>
<font color="#009900">+DEPENDS="ncurses zlib openssl curl alsa-lib libogg libvorbis speex"</font>
<font color="#009900">+SECTION = "console/telephony"</font>
<font color="#009900">+PR = "r0"</font>
<font color="#009900">+</font>
<font color="#009900">+SRC_URI="http://ftp.digium.com/pub/asterisk/releases/asterisk-${PV}.tar.gz \</font>
<font color="#009900">+         file://uclibc-compat-getloadavg.patch;patch=1 \</font>
<font color="#009900">+         file://uclibc-dns.patch;patch=1 \</font>
<font color="#009900">+         file://asterisk.patch;patch=1 \</font>
<font color="#009900">+         file://enable-speex.patch;patch=1"</font>
<font color="#009900">+</font>
<font color="#009900">+S = "${WORKDIR}/asterisk-${PV}"</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+export CROSS_COMPILE="${CCACHE}${HOST_PREFIX}"</font>
<font color="#009900">+export CROSS_COMPILE_BIN="${STAGING_BINDIR_CROSS}"</font>
<font color="#009900">+export CROSS_COMPILE_TARGET="${STAGING_DIR_HOST}"</font>
<font color="#009900">+</font>
<font color="#009900">+export CROSS_ARCH="Linux"</font>
<font color="#009900">+export CROSS_PROC="${TARGET_ARCH}"</font>
<font color="#009900">+</font>
<font color="#009900">+export MAKECMDGOALS="dont-optimize"</font>
<font color="#009900">+</font>
<font color="#009900">+# We will probably have to edit the CFLAG in the Makefile</font>
<font color="#009900">+</font>
<font color="#009900">+do_compile() {</font>
<font color="#009900">+        oe_runmake</font>
<font color="#009900">+}</font>
<font color="#009900">+</font>
<font color="#009900">+do_install() {</font>
<font color="#009900">+        oe_runmake DESTDIR=${D} install</font>
<font color="#009900">+}</font>
<font color="#009900">+</font>
<font color="#009900">+do_stage () {</font>
<font color="#009900">+        install -d ${STAGING_INCDIR}/asterisk</font>
<font color="#009900">+        install -m 0644 ${S}/include/asterisk/*.h ${STAGING_INCDIR}/asterisk/</font>
<font color="#009900">+}</font>
<font color="#009900">+</font>
<font color="#009900">+</font>
<font color="#009900">+FILES_${PN}-dbg += "${libdir}/asterisk/modules/.debug"</font>
<font color="#009900">+FILES_${PN}-dbg += "/var/lib/asterisk/agi-bin/.debug"</font>
<font color="#009900">+</font>
</tt></pre>