fix --srcdir builds for modules that download libraries mod_flite mod_pocketsphinx mod_celt mod_radius_cdr mod_soundtouch mod_memcache mod_curl mod_xml_ldap mod_shout mod_ldap (FSBUILD-211)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15917 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2bae37ae96
commit
d2cf7f862a
|
@ -667,9 +667,9 @@ AC_PATH_PROGS(ZCAT, gunzip gzcat gzip zcat)
|
||||||
AC_PATH_PROGS(TAR, gtar tar)
|
AC_PATH_PROGS(TAR, gtar tar)
|
||||||
AC_PATH_PROGS(WGET, wget)
|
AC_PATH_PROGS(WGET, wget)
|
||||||
AC_PATH_PROGS(CURL, curl)
|
AC_PATH_PROGS(CURL, curl)
|
||||||
GETLIB="cd $switch_srcdir/libs && ${SHELL} $switch_srcdir/build/getlib.sh"
|
GETLIB="cd $switch_srcdir/libs && ${SHELL} $switch_builddir/build/getlib.sh"
|
||||||
AC_SUBST(GETLIB)
|
AC_SUBST(GETLIB)
|
||||||
GETSOUNDS="${SHELL} $switch_srcdir/build/getsounds.sh"
|
GETSOUNDS="${SHELL} $switch_builddir/build/getsounds.sh"
|
||||||
AC_SUBST(GETSOUNDS)
|
AC_SUBST(GETSOUNDS)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,11 @@ include $(BASE)/build/modmake.rules
|
||||||
$(JSON_DIR):
|
$(JSON_DIR):
|
||||||
$(GETLIB) $(json-c).tar.gz
|
$(GETLIB) $(json-c).tar.gz
|
||||||
|
|
||||||
$(JSON_DIR)/Makefile: $(JSON_DIR)
|
$(JSON_BUILDDIR)/Makefile: $(JSON_DIR)
|
||||||
cd $(JSON_BUILDDIR) && $(DEFAULT_VARS) ./configure $(DEFAULT_ARGS) CPPFLAGS= LDFLAGS=
|
mkdir -p $(JSON_BUILDDIR)
|
||||||
|
cd $(JSON_BUILDDIR) && $(DEFAULT_VARS) $(JSON_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(JSON_DIR) CPPFLAGS= LDFLAGS=
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(JSONLA): $(JSON_DIR)/Makefile
|
$(JSONLA): $(JSON_BUILDDIR)/Makefile
|
||||||
cd $(JSON_BUILDDIR) && $(MAKE)
|
cd $(JSON_BUILDDIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
|
@ -1,26 +1,28 @@
|
||||||
MEMCACHED=libmemcached-0.32
|
MEMCACHED=libmemcached-0.32
|
||||||
switch_srcdir=../../../..
|
BASE=../../../..
|
||||||
|
|
||||||
WANT_CURL=yes
|
WANT_CURL=yes
|
||||||
|
|
||||||
MEMCACHED_DIR=$(switch_srcdir)/libs/$(MEMCACHED)
|
MEMCACHED_DIR=$(switch_srcdir)/libs/$(MEMCACHED)
|
||||||
|
MEMCACHED_BUILDDIR=$(switch_builddir)/libs/$(MEMCACHED)
|
||||||
|
|
||||||
MEMCACHEDLA=$(MEMCACHED_DIR)/libmemcached/libmemcached.la
|
MEMCACHEDLA=$(MEMCACHED_BUILDDIR)/libmemcached/libmemcached.la
|
||||||
|
|
||||||
LOCAL_CFLAGS=-I$(MEMCACHED_DIR)
|
LOCAL_CFLAGS=-I$(MEMCACHED_DIR) -I$(MEMCACHED_BUILDDIR)
|
||||||
LOCAL_LIBADD=$(MEMCACHEDLA)
|
LOCAL_LIBADD=$(MEMCACHEDLA)
|
||||||
|
|
||||||
include $(switch_srcdir)/build/modmake.rules
|
include $(BASE)/build/modmake.rules
|
||||||
|
|
||||||
$(MEMCACHED_DIR):
|
$(MEMCACHED_DIR):
|
||||||
$(GETLIB) $(MEMCACHED).tar.gz
|
$(GETLIB) $(MEMCACHED).tar.gz
|
||||||
|
|
||||||
$(MEMCACHED_DIR)/Makefile: $(MEMCACHED_DIR)
|
$(MEMCACHED_BUILDDIR)/Makefile: $(MEMCACHED_DIR)
|
||||||
cd $(MEMCACHED_DIR) && $(DEFAULT_VARS) ./configure $(DEFAULT_ARGS) --with-memcached=no CPPFLAGS= LDFLAGS=
|
mkdir -p $(MEMCACHED_BUILDDIR)
|
||||||
|
cd $(MEMCACHED_BUILDDIR) && $(DEFAULT_VARS) $(MEMCACHED_DIR)/configure $(DEFAULT_ARGS) --with-memcached=no --srcdir=$(MEMCACHED_DIR) CPPFLAGS= LDFLAGS=
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(MEMCACHEDLA): $(MEMCACHED_DIR)/Makefile
|
$(MEMCACHEDLA): $(MEMCACHED_BUILDDIR)/Makefile
|
||||||
cd $(MEMCACHED_DIR) && $(MAKE)
|
cd $(MEMCACHED_BUILDDIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,21 @@
|
||||||
VERSION=soundtouch-1.3.1
|
VERSION=soundtouch-1.3.1
|
||||||
DIRECTORY=$(switch_srcdir)/libs/$(VERSION)
|
DIRECTORY=$(switch_srcdir)/libs/$(VERSION)
|
||||||
LA=$(DIRECTORY)/source/SoundTouch/.libs/libSoundTouch.a
|
BUILD_DIRECTORY=$(switch_builddir)/libs/$(VERSION)
|
||||||
|
LA=$(BUILD_DIRECTORY)/source/SoundTouch/.libs/libSoundTouch.a
|
||||||
|
|
||||||
BASE=../../../..
|
BASE=../../../..
|
||||||
LOCAL_CFLAGS += -I$(DIRECTORY)/include -DINTEGER_SAMPLES
|
LOCAL_CFLAGS += -I$(DIRECTORY)/include -DINTEGER_SAMPLES -I$(BUILD_DIRECTORY)/include
|
||||||
LOCAL_LIBADD=$(LA)
|
LOCAL_LIBADD=$(LA)
|
||||||
|
|
||||||
include $(BASE)/build/modmake.rules
|
include $(BASE)/build/modmake.rules
|
||||||
|
|
||||||
$(DIRECTORY)/Makefile $(DIRECTORY)/config.status:
|
$(BUILD_DIRECTORY)/Makefile $(BUILD_DIRECTORY)/config.status:
|
||||||
$(GETLIB) $(VERSION).tar.gz
|
$(GETLIB) $(VERSION).tar.gz
|
||||||
cd $(DIRECTORY) && $(DEFAULT_VARS) ./configure $(DEFAULT_ARGS) --enable-integer-samples
|
mkdir -p $(BUILD_DIRECTORY)
|
||||||
|
cd $(BUILD_DIRECTORY) && $(DEFAULT_VARS) $(DIRECTORY)/configure $(DEFAULT_ARGS) --enable-integer-samples --srcdir=$(DIRECTORY)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(LA): $(DIRECTORY)/Makefile $(DIRECTORY)/config.status
|
$(LA): $(BUILD_DIRECTORY)/Makefile $(BUILD_DIRECTORY)/config.status
|
||||||
cd $(DIRECTORY) && $(MAKE)
|
cd $(BUILD_DIRECTORY) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
FLITE=flite-1.3.99
|
FLITE=flite-1.3.99
|
||||||
|
|
||||||
FLITE_DIR=$(switch_srcdir)/libs/$(FLITE)
|
FLITE_DIR=$(switch_srcdir)/libs/$(FLITE)
|
||||||
FLITE_LIBDIR=$(FLITE_DIR)/build/libs
|
FLITE_BUILDDIR=$(switch_builddir)/libs/$(FLITE)
|
||||||
|
|
||||||
|
FLITE_LIBDIR=$(FLITE_BUILDDIR)/build/libs
|
||||||
FLITE_A=$(FLITE_LIBDIR)/libflite_cmu_us_awb.a \
|
FLITE_A=$(FLITE_LIBDIR)/libflite_cmu_us_awb.a \
|
||||||
$(FLITE_LIBDIR)/libflite_cmu_us_kal.a \
|
$(FLITE_LIBDIR)/libflite_cmu_us_kal.a \
|
||||||
$(FLITE_LIBDIR)/libflite_cmu_us_rms.a \
|
$(FLITE_LIBDIR)/libflite_cmu_us_rms.a \
|
||||||
$(FLITE_LIBDIR)/libflite_cmu_us_slt.a \
|
$(FLITE_LIBDIR)/libflite_cmu_us_slt.a \
|
||||||
$(FLITE_LIBDIR)/libflite_cmulex.a $(FLITE_LIBDIR)/libflite_usenglish.a $(FLITE_LIBDIR)/libflite.a -lm
|
$(FLITE_LIBDIR)/libflite_cmulex.a $(FLITE_LIBDIR)/libflite_usenglish.a $(FLITE_LIBDIR)/libflite.a -lm
|
||||||
|
|
||||||
LOCAL_CFLAGS=-I$(switch_srcdir)/libs/$(FLITE)/include
|
LOCAL_CFLAGS=-I$(FLITE_DIR)/include -I$(FLITE_BUILDDIR)/include
|
||||||
LOCAL_LIBADD=$(FLITE_A)
|
LOCAL_LIBADD=$(FLITE_A)
|
||||||
|
|
||||||
BASE=../../../..
|
BASE=../../../..
|
||||||
|
@ -16,12 +19,13 @@ include $(BASE)/build/modmake.rules
|
||||||
$(FLITE_DIR):
|
$(FLITE_DIR):
|
||||||
$(GETLIB) $(FLITE)-latest.tar.gz
|
$(GETLIB) $(FLITE)-latest.tar.gz
|
||||||
|
|
||||||
$(FLITE_DIR)/Makefile: $(FLITE_DIR)
|
$(FLITE_BUILDDIR)/Makefile: $(FLITE_DIR)
|
||||||
cd $(FLITE_DIR) && CFLAGS="`echo $(CFLAGS) | sed -e 's:-std=c99::'`" ./configure --without-audio --with-pic --disable-shared
|
mkdir -p $(FLITE_BUILDDIR)
|
||||||
|
cd $(FLITE_BUILDDIR) && $(DEFAULT_VARS) $(FLITE_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(FLITE_DIR) --without-audio --with-pic --disable-shared
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(FLITE_A): $(FLITE_DIR) $(FLITE_DIR)/Makefile
|
$(FLITE_A): $(FLITE_DIR) $(FLITE_BUILDDIR)/Makefile
|
||||||
cd $(FLITE_DIR) && $(MAKE)
|
cd $(FLITE_BUILDDIR) && $(MAKE)
|
||||||
test -d $(FLITE_LIBDIR) || mkdir $(FLITE_LIBDIR)
|
test -d $(FLITE_LIBDIR) || mkdir $(FLITE_LIBDIR)
|
||||||
cd $(FLITE_DIR) && FLITE_TMP_LIBDIR=`$(FLITE_DIR)/config.guess | sed "s/-[^-]*//" | sed "s/i[3456]86/i386/"` && cp build/$$FLITE_TMP_LIBDIR/lib/*.a $(FLITE_LIBDIR)
|
cd $(FLITE_BUILDDIR) && FLITE_TMP_LIBDIR=`$(FLITE_DIR)/config.guess | sed "s/-[^-]*//" | sed "s/i[3456]86/i386/"` && cp build/$$FLITE_TMP_LIBDIR/lib/*.a $(FLITE_LIBDIR)
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
SPHINXBASE=sphinxbase-0.4.99
|
SPHINXBASE=sphinxbase-0.4.99
|
||||||
SPHINXBASE_DIR=$(switch_srcdir)/libs/$(SPHINXBASE)
|
SPHINXBASE_DIR=$(switch_srcdir)/libs/$(SPHINXBASE)
|
||||||
|
SPHINXBASE_BUILDDIR=$(switch_builddir)/libs/$(SPHINXBASE)
|
||||||
POCKETSPHINX=pocketsphinx-0.5.99
|
POCKETSPHINX=pocketsphinx-0.5.99
|
||||||
POCKETSPHINX_DIR=$(switch_srcdir)/libs/$(POCKETSPHINX)
|
POCKETSPHINX_DIR=$(switch_srcdir)/libs/$(POCKETSPHINX)
|
||||||
SPHINXBASE_LA=$(SPHINXBASE_DIR)/src/libsphinxbase/libsphinxbase.la
|
POCKETSPHINX_BUILDDIR=$(switch_builddir)/libs/$(POCKETSPHINX)
|
||||||
SPHINXBASE_LA2=$(SPHINXBASE_DIR)/src/libsphinxad/libsphinxad.la
|
SPHINXBASE_LA=$(SPHINXBASE_BUILDDIR)/src/libsphinxbase/libsphinxbase.la
|
||||||
|
SPHINXBASE_LA2=$(SPHINXBASE_BUILDDIR)/src/libsphinxad/libsphinxad.la
|
||||||
|
|
||||||
POCKETSPHINX_LA=$(POCKETSPHINX_DIR)/src/libpocketsphinx/libpocketsphinx.la
|
POCKETSPHINX_LA=$(POCKETSPHINX_BUILDDIR)/src/libpocketsphinx/libpocketsphinx.la
|
||||||
|
|
||||||
SPHINXMODEL=communicator_semi_6000_20080321
|
SPHINXMODEL=communicator_semi_6000_20080321
|
||||||
|
|
||||||
|
@ -17,26 +19,28 @@ include $(BASE)/build/modmake.rules
|
||||||
$(SPHINXBASE_DIR):
|
$(SPHINXBASE_DIR):
|
||||||
$(GETLIB) $(SPHINXBASE)-20091212.tar.gz
|
$(GETLIB) $(SPHINXBASE)-20091212.tar.gz
|
||||||
|
|
||||||
$(SPHINXBASE_DIR)/buildstamp: $(SPHINXBASE_DIR)
|
$(SPHINXBASE_BUIDDIR)/buildstamp: $(SPHINXBASE_DIR)
|
||||||
test -f $(SPHINXBASE_DIR)/Makefile || (cd $(SPHINXBASE_DIR) && ./configure --with-pic --without-python --disable-shared CFLAGS=)
|
mkdir -p $(SPHINXBASE_BUILDDIR)
|
||||||
test -f $(SPHINXBASE_DIR)/buildstamp || (touch $(SPHINXBASE_DIR)/buildstamp)
|
test -f $(SPHINXBASE_BUILDDIR)/Makefile || (cd $(SPHINXBASE_BUILDDIR) && $(DEFAULT_VARS) $(SPHINXBASE_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(SPHINXBASE_DIR) --without-python CFLAGS=)
|
||||||
|
test -f $(SPHINXBASE_BUIDDIR)/buildstamp || (touch $(SPHINXBASE_BUIDDIR)/buildstamp)
|
||||||
|
|
||||||
$(SPHINXBASE_LA): $(SPHINXBASE_DIR)/buildstamp
|
$(SPHINXBASE_LA): $(SPHINXBASE_BUIDDIR)/buildstamp
|
||||||
cd $(SPHINXBASE_DIR) && $(MAKE)
|
cd $(SPHINXBASE_BUIDDIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(POCKETSPHINX_DIR):
|
$(POCKETSPHINX_DIR):
|
||||||
$(GETLIB) $(POCKETSPHINX)-20091212.tar.gz
|
$(GETLIB) $(POCKETSPHINX)-20091212.tar.gz
|
||||||
|
|
||||||
$(POCKETSPHINX_DIR)/Makefile: $(POCKETSPHINX_DIR)
|
$(POCKETSPHINX_BUILDDIR)/Makefile: $(POCKETSPHINX_DIR)
|
||||||
cd $(POCKETSPHINX_DIR) && ./configure --with-pic --without-python --disable-shared --with-sphinxbase=$(SPHINXBASE_DIR) CFLAGS=
|
mkdir -p $(POCKETSPHINX_BUILDDIR)
|
||||||
|
cd $(POCKETSPHINX_BUILDDIR) && $(DEFAULT_VARS) $(POCKETSPHINX_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(POCKETSPHINX_DIR) --without-python --with-sphinxbase=$(SPHINXBASE_DIR) CFLAGS=
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(POCKETSPHINX_DIR)/buildstamp: $(POCKETSPHINX_DIR)/Makefile
|
$(POCKETSPHINX_BUILDDIR)/buildstamp: $(POCKETSPHINX_BUILDDIR)/Makefile
|
||||||
test -f $(POCKETSPHINX_DIR)/buildstamp || touch $(POCKETSPHINX_DIR)/buildstamp
|
test -f $(POCKETSPHINX_BUILDDIR)/buildstamp || touch $(POCKETSPHINX_BUILDDIR)/buildstamp
|
||||||
|
|
||||||
$(POCKETSPHINX_LA): $(POCKETSPHINX_DIR)/Makefile
|
$(POCKETSPHINX_LA): $(POCKETSPHINX_BUILDDIR)/Makefile
|
||||||
cd $(POCKETSPHINX_DIR) && $(MAKE)
|
cd $(POCKETSPHINX_BUILDDIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(DESTDIR)$(PREFIX)/grammar/model:
|
$(DESTDIR)$(PREFIX)/grammar/model:
|
||||||
|
@ -45,7 +49,7 @@ $(DESTDIR)$(PREFIX)/grammar/model:
|
||||||
$(DESTDIR)$(PREFIX)/grammar/model/communicator:
|
$(DESTDIR)$(PREFIX)/grammar/model/communicator:
|
||||||
$(GETLIB) $(SPHINXMODEL).tar.gz
|
$(GETLIB) $(SPHINXMODEL).tar.gz
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/grammar/model/communicator
|
mkdir -p $(DESTDIR)$(PREFIX)/grammar/model/communicator
|
||||||
cp -rp $(BASE)/libs/Communicator_semi_40.cd_semi_6000/* $(DESTDIR)$(PREFIX)/grammar/model/communicator
|
cp -rp $(switch_srcdir)/libs/Communicator_semi_40.cd_semi_6000/* $(DESTDIR)$(PREFIX)/grammar/model/communicator
|
||||||
|
|
||||||
$(DESTDIR)$(PREFIX)/grammar/model/wsj1:
|
$(DESTDIR)$(PREFIX)/grammar/model/wsj1:
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/grammar/model/wsj1
|
mkdir -p $(DESTDIR)$(PREFIX)/grammar/model/wsj1
|
||||||
|
|
|
@ -12,10 +12,11 @@ include $(BASE)/build/modmake.rules
|
||||||
$(CELT_DIR):
|
$(CELT_DIR):
|
||||||
$(GETLIB) $(CELT).tar.gz
|
$(GETLIB) $(CELT).tar.gz
|
||||||
|
|
||||||
$(CELT_DIR)/Makefile: $(CELT_DIR)
|
$(CELT_BUILDDIR)/Makefile: $(CELT_DIR)
|
||||||
cd $(CELT_DIR) && $(DEFAULT_VARS) ./configure $(DEFAULT_ARGS)
|
mkdir -p $(CELT_BUILDDIR)
|
||||||
|
cd $(CELT_BUILDDIR) && $(DEFAULT_VARS) $(CELT_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(CELT_DIR)
|
||||||
|
|
||||||
$(CELT_LA): $(CELT_DIR)/Makefile
|
$(CELT_LA): $(CELT_BUILDDIR)/Makefile
|
||||||
cd $(CELT_BUILDDIR) && $(MAKE)
|
cd $(CELT_BUILDDIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,25 @@
|
||||||
switch_srcdir=../../../..
|
BASE=../../../..
|
||||||
|
|
||||||
LDAP=openldap-2.4.11
|
LDAP=openldap-2.4.11
|
||||||
LDAP_DIR=$(switch_srcdir)/libs/$(LDAP)
|
LDAP_DIR=$(switch_srcdir)/libs/$(LDAP)
|
||||||
|
LDAP_BUILDDIR=$(switch_builddir)/libs/$(LDAP)
|
||||||
|
|
||||||
LDAPLA=$(LDAP_DIR)/libraries/libldap_r/libldap_r.la
|
LDAPLA=$(LDAP_BUILDDIR)/libraries/libldap_r/libldap_r.la
|
||||||
LIBLBERLA=$(LDAP_DIR)/libraries/liblber/liblber.la
|
LIBLBERLA=$(LDAP_BUILDDIR)/libraries/liblber/liblber.la
|
||||||
|
|
||||||
LOCAL_CFLAGS=-DWITH_OPENLDAP -DLDAP_DEPRECATED -I$(LDAP_DIR)/include
|
LOCAL_CFLAGS=-DWITH_OPENLDAP -DLDAP_DEPRECATED -I$(LDAP_DIR)/include
|
||||||
|
|
||||||
LOCAL_LIBADD=$(LDAPLA) $(LIBLBERLA)
|
LOCAL_LIBADD=$(LDAPLA) $(LIBLBERLA)
|
||||||
|
|
||||||
include $(switch_srcdir)/build/modmake.rules
|
include $(BASE)/build/modmake.rules
|
||||||
|
|
||||||
DEFAULT_ARGS+= --disable-slapd --disable-bdb --disable-hdb
|
DEFAULT_ARGS+= --disable-slapd --disable-bdb --disable-hdb
|
||||||
|
|
||||||
$(LDAP_DIR):
|
$(LDAP_DIR):
|
||||||
$(GETLIB) $(LDAP).tar.gz
|
$(GETLIB) $(LDAP).tar.gz
|
||||||
cd $(LDAP_DIR) && $(DEFAULT_VARS) CFLAGS="`echo $(CFLAGS) | sed -e 's:-std=c99::'`" ./configure $(DEFAULT_ARGS)
|
mkdir -p $(LDAP_BUILDDIR)
|
||||||
|
cd $(LDAP_BUILDDIR) && $(DEFAULT_VARS) $(LDAP_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(LDAP_DIR)
|
||||||
|
|
||||||
$(LDAPLA) $(LIBLBERLA): $(LDAP_DIR)
|
$(LDAPLA) $(LIBLBERLA): $(LDAP_DIR)
|
||||||
cd $(LDAP_DIR) && $(MAKE)
|
cd $(LDAP_BUILDDIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
RADCLIENT_VERSION=1.1.6
|
RADCLIENT_VERSION=1.1.6
|
||||||
RADCLIENT=freeradius-client-$(RADCLIENT_VERSION)
|
RADCLIENT=freeradius-client-$(RADCLIENT_VERSION)
|
||||||
RADCLIENT_DIR=$(switch_srcdir)/libs/$(RADCLIENT)
|
RADCLIENT_DIR=$(switch_srcdir)/libs/$(RADCLIENT)
|
||||||
RADCLIENT_LIBDIR=$(RADCLIENT_DIR)/lib
|
RADCLIENT_BUILDDIR=$(switch_builddir)/libs/$(RADCLIENT)
|
||||||
|
RADCLIENT_LIBDIR=$(RADCLIENT_BUILDDIR)/lib
|
||||||
RADCLIENT_LA=${RADCLIENT_LIBDIR}/libfreeradius-client.la
|
RADCLIENT_LA=${RADCLIENT_LIBDIR}/libfreeradius-client.la
|
||||||
|
|
||||||
LOCAL_CFLAGS=-I$(RADCLIENT_DIR)/include
|
LOCAL_CFLAGS=-I$(RADCLIENT_DIR)/include
|
||||||
|
@ -13,12 +14,13 @@ include $(BASE)/build/modmake.rules
|
||||||
$(RADCLIENT_DIR):
|
$(RADCLIENT_DIR):
|
||||||
$(GETLIB) $(RADCLIENT).tar.gz
|
$(GETLIB) $(RADCLIENT).tar.gz
|
||||||
|
|
||||||
$(RADCLIENT_DIR)/Makefile: $(RADCLIENT_DIR)
|
$(RADCLIENT_BUILDDIR)/Makefile: $(RADCLIENT_DIR)
|
||||||
cd $(RADCLIENT_DIR) && ./configure --disable-shared --with-pic
|
mkdir -p $(RADCLIENT_BUILDDIR)
|
||||||
|
cd $(RADCLIENT_BUILDDIR) && $(DEFAULT_VARS) $(RADCLIENT_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(RADCLIENT_DIR)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(RADCLIENT_LA): $(RADCLIENT_DIR)/Makefile
|
$(RADCLIENT_LA): $(RADCLIENT_BUILDDIR)/Makefile
|
||||||
cd $(RADCLIENT_DIR) && CFLAGS=$(CFLAGS) $(MAKE)
|
cd $(RADCLIENT_BUILDDIR) && CFLAGS=$(CFLAGS) $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
LAME=lame-3.97
|
LAME=lame-3.97
|
||||||
SHOUT=libshout-2.2.2
|
SHOUT=libshout-2.2.2
|
||||||
MPG123=mpg123
|
MPG123=mpg123
|
||||||
switch_srcdir=../../../..
|
BASE=../../../..
|
||||||
|
|
||||||
WANT_CURL=yes
|
WANT_CURL=yes
|
||||||
|
|
||||||
|
@ -9,48 +9,55 @@ LAME_DIR=$(switch_srcdir)/libs/$(LAME)
|
||||||
SHOUT_DIR=$(switch_srcdir)/libs/$(SHOUT)
|
SHOUT_DIR=$(switch_srcdir)/libs/$(SHOUT)
|
||||||
MPG123_DIR=$(switch_srcdir)/libs/$(MPG123)
|
MPG123_DIR=$(switch_srcdir)/libs/$(MPG123)
|
||||||
|
|
||||||
LAMELA=$(LAME_DIR)/libmp3lame/libmp3lame.la
|
LAME_BUILDDIR=$(switch_builddir)/libs/$(LAME)
|
||||||
SHOUTLA=$(SHOUT_DIR)/src/libshout.la
|
SHOUT_BUILDDIR=$(switch_builddir)/libs/$(SHOUT)
|
||||||
MPG123LA=$(MPG123_DIR)/src/libmpg123/libmpg123.la
|
MPG123_BUILDDIR=$(switch_builddir)/libs/$(MPG123)
|
||||||
|
|
||||||
|
LAMELA=$(LAME_BUILDDIR)/libmp3lame/libmp3lame.la
|
||||||
|
SHOUTLA=$(SHOUT_BUILDDIR)/src/libshout.la
|
||||||
|
MPG123LA=$(MPG123_BUILDDIR)/src/libmpg123/libmpg123.la
|
||||||
|
|
||||||
LOCAL_CFLAGS=-I$(SHOUT_DIR)/include -I$(LAME_DIR)/include -I$(MPG123_DIR)/src
|
LOCAL_CFLAGS=-I$(SHOUT_DIR)/include -I$(LAME_DIR)/include -I$(MPG123_DIR)/src
|
||||||
LOCAL_LIBADD=$(LAMELA) $(SHOUTLA) $(MPG123LA)
|
LOCAL_LIBADD=$(LAMELA) $(SHOUTLA) $(MPG123LA)
|
||||||
|
|
||||||
LOCAL_LDFLAGS=`cat ../../../../libs/libshout-2.2.2/Makefile | grep SPEEX_LIBS | sed -e 's|^SPEEX_LIBS =||'`
|
LOCAL_LDFLAGS=`cat $(SHOUT_BUILDDIR)/Makefile | grep SPEEX_LIBS | sed -e 's|^SPEEX_LIBS =||'`
|
||||||
|
|
||||||
include $(switch_srcdir)/build/modmake.rules
|
include $(BASE)/build/modmake.rules
|
||||||
|
|
||||||
$(MPG123_DIR):
|
$(MPG123_DIR):
|
||||||
$(GETLIB) $(MPG123).tar.gz
|
$(GETLIB) $(MPG123).tar.gz
|
||||||
|
|
||||||
$(MPG123_DIR)/Makefile: $(MPG123_DIR)
|
$(MPG123_BUILDDIR)/Makefile: $(MPG123_DIR)
|
||||||
cd $(MPG123_DIR) && $(DEFAULT_VARS) ./configure $(DEFAULT_ARGS) CPPFLAGS= LDFLAGS=
|
mkdir -p $(MPG123_BUILDDIR)
|
||||||
|
cd $(MPG123_BUILDDIR) && $(DEFAULT_VARS) $(MPG123_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(MPG123_DIR) CPPFLAGS= LDFLAGS=
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(MPG123LA): $(MPG123_DIR)/Makefile
|
$(MPG123LA): $(MPG123_BUILDDIR)/Makefile
|
||||||
cd $(MPG123_DIR) && $(MAKE)
|
cd $(MPG123_BUILDDIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(LAME_DIR):
|
$(LAME_DIR):
|
||||||
$(GETLIB) $(LAME).tar.gz
|
$(GETLIB) $(LAME).tar.gz
|
||||||
|
|
||||||
$(LAME_DIR)/Makefile: $(LAME_DIR)
|
$(LAME_BUILDDIR)/Makefile: $(LAME_DIR)
|
||||||
cd $(LAME_DIR) && $(DEFAULT_VARS) ./configure $(DEFAULT_ARGS) --disable-decoder CPPFLAGS= LDFLAGS=
|
mkdir -p $(LAME_BUILDDIR)
|
||||||
|
cd $(LAME_BUILDDIR) && $(DEFAULT_VARS) $(LAME_DIR)/configure $(DEFAULT_ARGS) --disable-decoder --srcdir=$(LAME_DIR) CPPFLAGS= LDFLAGS=
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(LAMELA): $(LAME_DIR)/Makefile
|
$(LAMELA): $(LAME_BUILDDIR)/Makefile
|
||||||
cd $(LAME_DIR) && $(MAKE)
|
cd $(LAME_DIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(SHOUT_DIR):
|
$(SHOUT_DIR):
|
||||||
$(GETLIB) $(SHOUT).tar.gz
|
$(GETLIB) $(SHOUT).tar.gz
|
||||||
|
|
||||||
$(SHOUT_DIR)/Makefile: $(SHOUT_DIR)
|
$(SHOUT_BUILDDIR)/Makefile: $(SHOUT_DIR)
|
||||||
cd $(SHOUT_DIR) && $(DEFAULT_VARS) ./configure $(DEFAULT_ARGS) --without-speex --without-vorbis --without-ogg CPPFLAGS= LDFLAGS=
|
mkdir -p $(SHOUT_BUILDDIR)
|
||||||
|
cd $(SHOUT_BUILDDIR) && $(DEFAULT_VARS) $(SHOUT_DIR)/configure $(DEFAULT_ARGS) --srcdir= $(SHOUT_DIR) --without-speex --without-vorbis --without-ogg CPPFLAGS= LDFLAGS=
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
$(SHOUTLA): $(SHOUT_DIR)/Makefile
|
$(SHOUTLA): $(SHOUT_BUILDDIR)/Makefile
|
||||||
cd $(SHOUT_DIR) && $(MAKE)
|
cd $(SHOUT_BUILDDIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,26 @@
|
||||||
switch_srcdir=../../../..
|
BASE=../../../..
|
||||||
|
|
||||||
LDAP=openldap-2.4.11
|
LDAP=openldap-2.4.11
|
||||||
LDAP_DIR=$(switch_srcdir)/libs/$(LDAP)
|
LDAP_DIR=$(switch_srcdir)/libs/$(LDAP)
|
||||||
|
LDAP_BUILDDIR=$(switch_builddir)/libs/$(LDAP)
|
||||||
|
|
||||||
LDAPLA=$(LDAP_DIR)/libraries/libldap_r/libldap_r.la
|
LDAPLA=$(LDAP_BUILDDIR)/libraries/libldap_r/libldap_r.la
|
||||||
LIBLBERLA=$(LDAP_DIR)/libraries/liblber/liblber.la
|
LIBLBERLA=$(LDAP_BUILDDIR)/libraries/liblber/liblber.la
|
||||||
LIBLUTILA=$(LDAP_DIR)/libraries/liblutil/liblutil.a
|
LIBLUTILA=$(LDAP_BUILDDIR)/libraries/liblutil/liblutil.a
|
||||||
|
|
||||||
LOCAL_CFLAGS=-DWITH_OPENLDAP -DLDAP_DEPRECATED -I$(LDAP_DIR)/include
|
LOCAL_CFLAGS=-DWITH_OPENLDAP -DLDAP_DEPRECATED -I$(LDAP_DIR)/include
|
||||||
|
|
||||||
LOCAL_LIBADD=$(LDAPLA) $(LIBLBERLA) $(LIBLUTILA)
|
LOCAL_LIBADD=$(LDAPLA) $(LIBLBERLA) $(LIBLUTILA)
|
||||||
|
|
||||||
include $(switch_srcdir)/build/modmake.rules
|
include $(BASE)/build/modmake.rules
|
||||||
|
|
||||||
DEFAULT_ARGS+= --disable-slapd --disable-slurpd --disable-relay --disable-bdb --disable-hdb
|
DEFAULT_ARGS+= --disable-slapd --disable-slurpd --disable-relay --disable-bdb --disable-hdb
|
||||||
|
|
||||||
$(LDAP_DIR):
|
$(LDAP_DIR):
|
||||||
$(GETLIB) $(LDAP).tar.gz
|
$(GETLIB) $(LDAP).tar.gz
|
||||||
cd $(LDAP_DIR) && $(DEFAULT_VARS) CFLAGS="`echo $(CFLAGS) | sed -e 's:-std=c99::'`" ./configure $(DEFAULT_ARGS)
|
mkdir -p $(LDAP_BUILDDIR)
|
||||||
|
cd $(LDAP_BUILDDIR) && $(DEFAULT_VARS) $(LDAP_DIR)/configure $(DEFAULT_ARGS) --srcdir=$(LDAP_DIR)
|
||||||
|
|
||||||
$(LIBLUTILA) $(LDAPLA) $(LIBLBERLA): $(LDAP_DIR)
|
$(LIBLUTILA) $(LDAPLA) $(LIBLBERLA): $(LDAP_DIR)
|
||||||
cd $(LDAP_DIR) && $(MAKE)
|
cd $(LDAP_BUILDDIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
Loading…
Reference in New Issue