Changeset 1513

Show
Ignore:
Timestamp:
01/07/07 16:00:19 (5 years ago)
Author:
n0-1
Message:

some work at the new asterisk version

thx to wbx, this package is now (still very basically) useful.
I.e., most features don't work yet, but communication via sip
(both to VoIP phones and sipgate.de) are verified to work.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/asterisk/Makefile

    r1398 r1513  
    6262        (cd $(WRKBUILD); rm -rf config.{cache,status} ; \ 
    6363                $(TARGET_CONFIGURE_OPTS) \ 
    64                 CFLAGS="$(strip $(TARGET_CFLAGS)) -I$(STAGING_DIR)/usr/include" \ 
     64                CFLAGS="$(strip $(TARGET_CFLAGS)) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ 
    6565                CPPFLAGS="-I$(STAGING_DIR)/usr/include" \ 
    66                 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \ 
     66                LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ 
    6767                ./configure \ 
    6868                  --host=$(GNU_TARGET_NAME) \ 
     
    8383                  --sysconfdir=/etc \ 
    8484                  --disable-nls \ 
     85                  --without-asound \ 
     86                  --without-curl \ 
     87                  --without-curses \ 
     88                  --without-gnutls \ 
     89                  --without-gsm \ 
     90                  --without-iksemel \ 
     91                  --without-imap \ 
     92                  --without-isdnnet \ 
     93                  --without-kde \ 
     94                  --without-misdn \ 
     95                  --without-nbs \ 
     96                  --without-netsnmp \ 
     97                  --without-newt \ 
     98                  --without-odbc \ 
     99                  --without-ogg \ 
     100                  --without-osptk \ 
     101                  --without-oss \ 
     102                  --without-popt \ 
     103                  --without-postgres \ 
     104                  --without-pri \ 
    85105                  --without-pwlib \ 
    86                   --without-h323 \ 
     106                  --without-qt \ 
     107                  --without-radius \ 
     108                  --without-speex \ 
     109                  --without-sqlite \ 
     110                  --without-suppserv \ 
    87111                  --without-ssl \ 
     112                  --without-tds \ 
     113                  --without-termcap \ 
     114                  --without-tinfo \ 
     115                  --without-tonezone \ 
     116                  --without-vorbis \ 
     117                  --without-vpb \ 
     118                  --without-zaptel \ 
    88119                  --with-z=$(STAGING_DIR)/usr \ 
    89120                  --with-ncurses=$(STAGING_DIR)/usr \ 
    90121        ); 
    91         $(SED) 's,@@STAGING_DIR@@,$(STAGING_DIR),g' $(WRKBUILD)/main/Makefile 
     122#       $(SED) 's,@@STAGING_DIR@@,$(STAGING_DIR),g' $(WRKBUILD)/main/Makefile 
     123#       $(SED) 's,@@STAGING_DIR@@,$(STAGING_DIR),g' $(WRKBUILD)/Makefile 
    92124        touch $@ 
    93125 
     
    98130        ); 
    99131        $(MAKE) -C "$(WRKBUILD)" \ 
     132                EXTRA_CFLAGS="$(strip $(TARGET_CFLAGS)) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ 
     133                EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ 
    100134                DESTDIR="$(WRKINST)" \ 
     135                NOISY_BUILD=1 \ 
    101136                all install samples 
    102137        touch $@ 
  • trunk/freewrt/package/asterisk/patches/patch-main_Makefile

    r1401 r1513  
    22fixed CFLAGS and LDFLAGS for internal call to configure and make 
    33--- asterisk-1.4.0.orig/main/Makefile   2006-12-18 12:59:24.000000000 +0100 
    4 +++ asterisk-1.4.0/main/Makefile        2007-01-04 15:45:04.000000000 +0100 
     4+++ asterisk-1.4.0/main/Makefile        2007-01-05 12:22:38.000000000 +0100 
    55@@ -94,8 +94,12 @@ ifeq ($(OSARCH),SunOS) 
    66   ASTLINK= 
    77 endif 
    88  
    9 +# dirty hax0ring for cross compiling 
    10 +ASTCFLAGS+=-I@@STAGING_DIR@@/usr/include  
    11 +ASTLDFLAGS+=-L@@STAGING_DIR@@/usr/lib 
     9+# nice fix for cross compiling 
     10+ASTCFLAGS+=$(EXTRA_CFLAGS) 
     11+ASTLDFLAGS+=$(EXTRA_LDFLAGS) 
    1212+ 
    1313 editline/libedit.a: 
     
    1717  
    1818 db1-ast/libdb1.a: 
     19@@ -135,7 +139,8 @@ asterisk: $(OBJS) editline/libedit.a db1 
     20        @rm -f $(ASTTOPDIR)/include/asterisk/build.h.tmp 
     21        @$(CC) -c -o buildinfo.o $(ASTCFLAGS) buildinfo.c 
     22        $(ECHO_PREFIX) echo "   [LD] $^ -> $@" 
     23-       $(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $(H323LDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) $(H323LDLIBS) 
     24+       #$(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $(H323LDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) $(H323LDLIBS) 
     25+       $(CMD_PREFIX) $(CC) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $(H323LDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) $(H323LDLIBS) 
     26        @$(ASTTOPDIR)/build_tools/strip_nonapi $@ 
     27  
     28 clean::