[Freeswitch-svn] [commit] r8936 - freeswitch/trunk/src/mod/asr_tts/mod_flite

Freeswitch SVN mikej at freeswitch.org
Tue Jul 8 17:22:37 EDT 2008


Author: mikej
Date: Tue Jul  8 17:22:36 2008
New Revision: 8936

Modified:
   freeswitch/trunk/src/mod/asr_tts/mod_flite/Makefile

Log:
make build work for mod_flite

Modified: freeswitch/trunk/src/mod/asr_tts/mod_flite/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/asr_tts/mod_flite/Makefile	(original)
+++ freeswitch/trunk/src/mod/asr_tts/mod_flite/Makefile	Tue Jul  8 17:22:36 2008
@@ -1,5 +1,25 @@
-LOCAL_CFLAGS=-I/usr/local/include
-LOCAL_LDFLAGS=-L/usr/local/lib -lflite_cmu_us_kal  -lflite_cmu_us_kal16 -lflite_usenglish -lflite_cmulex -lflite -lm
+FLITE=flite-1.3-current
+FLITE_DIR=$(switch_srcdir)/libs/$(FLITE)
+FLITE_LIBDIR=$(FLITE_DIR)/build/libs
+FLITE_A=$(FLITE_LIBDIR)/libflite.a $(FLITE_LIBDIR)/libflite_cmu_time_awb.a $(FLITE_LIBDIR)/libflite_cmu_us_kal.a $(FLITE_LIBDIR)/libflite_cmu_us_kal16.a $(FLITE_LIBDIR)/libflite_cmulex.a $(FLITE_LIBDIR)/libflite_usenglish.a
+
+LOCAL_CFLAGS=
+LOCAL_LIBADD=$(FLITE_A)
 
 BASE=../../../..
 include $(BASE)/build/modmake.rules
+
+$(FLITE_DIR):
+	$(GETLIB) $(FLITE).tar.gz
+	cp flite-1.3.diff $(FLITE_DIR)
+	cd $(FLITE_DIR) && patch -p1 -i flite-1.3.diff 
+
+$(FLITE_DIR)/Makefile: $(FLITE_DIR)
+	cd $(FLITE_DIR) && CFLAGS="-fPIC" ./configure
+	$(TOUCH_TARGET)
+
+$(FLITE_A): $(FLITE_DIR) $(FLITE_DIR)/Makefile
+	cd $(FLITE_DIR) && $(MAKE)
+	test -d $(FLITE_LIBDIR) || mkdir $(FLITE_LIBDIR)
+	cd $(FLITE_DIR) && FLITE_TMP_LIBDIR=`./config.guess | sed "s/-[^-]*//" | sed "s/i[3456]86/i386/"` && cp build/$$FLITE_TMP_LIBDIR/lib/*.a $(FLITE_LIBDIR)
+



More information about the Freeswitch-svn mailing list