From bb2a188e502ef3fcd47aac12e1e08082d9b1de3e Mon Sep 17 00:00:00 2001 From: bossiel Date: Sun, 2 Dec 2012 18:30:50 +0000 Subject: [PATCH] Add GNU autotools scripts for iLBC --- .../thirdparties/scripts/ilbc/Makefile.am | 30 +++++++++++++++++++ .../thirdparties/scripts/ilbc/autogen.sh | 22 ++++++++++++++ .../thirdparties/scripts/ilbc/configure.ac | 22 ++++++++++++++ .../thirdparties/scripts/ilbc/extract.awk | 26 ++++++++++++++++ 4 files changed, 100 insertions(+) create mode 100644 branches/2.0/doubango/thirdparties/scripts/ilbc/Makefile.am create mode 100644 branches/2.0/doubango/thirdparties/scripts/ilbc/autogen.sh create mode 100644 branches/2.0/doubango/thirdparties/scripts/ilbc/configure.ac create mode 100644 branches/2.0/doubango/thirdparties/scripts/ilbc/extract.awk diff --git a/branches/2.0/doubango/thirdparties/scripts/ilbc/Makefile.am b/branches/2.0/doubango/thirdparties/scripts/ilbc/Makefile.am new file mode 100644 index 00000000..effffce5 --- /dev/null +++ b/branches/2.0/doubango/thirdparties/scripts/ilbc/Makefile.am @@ -0,0 +1,30 @@ +lib_LTLIBRARIES = libiLBC.la + +libiLBC_la_SOURCES = \ + anaFilter.c\ + constants.c\ + createCB.c\ + doCPLC.c\ + enhancer.c\ + filter.c\ + FrameClassify.c\ + gainquant.c\ + getCBvec.c\ + helpfun.c\ + hpInput.c\ + hpOutput.c\ + iCBConstruct.c\ + iCBSearch.c\ + iLBC_decode.c\ + iLBC_encode.c\ + LPCdecode.c\ + LPCencode.c\ + lsf.c\ + packing.c\ + StateConstructW.c\ + StateSearchW.c\ + syntFilter.c + +libiLBC_la_LDFLAGS = $LDFLAGS -no-undefined +libiLBC_la_HEADERS = *.h +libiLBC_ladir = $(includedir)/ilbc \ No newline at end of file diff --git a/branches/2.0/doubango/thirdparties/scripts/ilbc/autogen.sh b/branches/2.0/doubango/thirdparties/scripts/ilbc/autogen.sh new file mode 100644 index 00000000..3587aee6 --- /dev/null +++ b/branches/2.0/doubango/thirdparties/scripts/ilbc/autogen.sh @@ -0,0 +1,22 @@ +echo libtoolize +if [ `(uname -s) 2>/dev/null` == 'Darwin' ] +then + glibtoolize --copy --force +else + libtoolize --copy --force +fi + +echo "aclocal" +aclocal + +echo "autoheader" +autoheader + +echo "create NEWS, README, AUTHORS and ChangeLog" +touch NEWS README AUTHORS ChangeLog + +echo "autoreconf" +autoreconf -i + +echo "automake" +automake -a \ No newline at end of file diff --git a/branches/2.0/doubango/thirdparties/scripts/ilbc/configure.ac b/branches/2.0/doubango/thirdparties/scripts/ilbc/configure.ac new file mode 100644 index 00000000..16183723 --- /dev/null +++ b/branches/2.0/doubango/thirdparties/scripts/ilbc/configure.ac @@ -0,0 +1,22 @@ +AC_PREREQ([2.0]) +AC_INIT(libiLBC, 0.1, diopmamadou(at)doubango(DOT)org) +AM_INIT_AUTOMAKE +AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_SRCDIR([anaFilter.c]) + +dnl find suitable C compiler +AC_PROG_CC + +AC_PROG_INSTALL + +AC_PROG_LIBTOOL +AC_LIBTOOL_WIN32_DLL + +AC_PROG_SED + +AC_PROG_MAKE_SET + +AC_OUTPUT( +Makefile +) \ No newline at end of file diff --git a/branches/2.0/doubango/thirdparties/scripts/ilbc/extract.awk b/branches/2.0/doubango/thirdparties/scripts/ilbc/extract.awk new file mode 100644 index 00000000..4bd7a604 --- /dev/null +++ b/branches/2.0/doubango/thirdparties/scripts/ilbc/extract.awk @@ -0,0 +1,26 @@ +# Code from http://www.loudhush.ro/Loudhush_iaxclient_iLBC.html + +BEGIN { srcname = "nothing"; } +{ if (/^A\.[0-9][0-9]*\.* *[a-zA-Z][a-zA-Z_0-9]*\.[ch]/) { + if (srcname != "nothing") + close(srcname); + srcname = $2; + printf("creating source file %s\n", srcname); + }else if (srcname != "nothing") { + if (/Andersen,* *et* *al\./) + printf("skipping %s\n", $0); + else if (/^L/) + printf("skipping2 %s\n", $0); + else if (/Internet Low Bit Rate Codec *December 2004/) + printf("skipping3 %s\n", $0); + else if (/Authors' *Addresses/){ + close(srcname); + exit;} + else + print $0 >> srcname; + } +} +END { + printf("ending file %s\n", srcname); + close(srcname); +} \ No newline at end of file