From a2f064553b3ffd8f72219e6998ec615606c28791 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 10 Oct 2006 15:36:40 +0000 Subject: [PATCH] moved ivr build configuration to Makefile.defs for both ivr and python application Makefile git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@99 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/ivr/Makefile | 27 +++++++-------------------- apps/ivr/Makefile.defs | 19 +++++++++++++++++++ apps/ivr/Makefile.ivr_application | 3 +-- 3 files changed, 27 insertions(+), 22 deletions(-) create mode 100644 apps/ivr/Makefile.defs diff --git a/apps/ivr/Makefile b/apps/ivr/Makefile index 5249a85e..8f3cc947 100644 --- a/apps/ivr/Makefile +++ b/apps/ivr/Makefile @@ -1,24 +1,11 @@ + plug_in_name = ivr -COREPATH ?=../../core +include Makefile.defs +PY_VER = $(PYTHON_VERSION) -SCRIPT = Python -TTS = y +COREPATH ?=../../core -# -# Python specific -# (no need to change this if you want to use perl) -# -# PYTHON_VERSION might also be 2.2 -- except for the use of GIL -# do a ls /usr/include/python2.3/Python.h to see if it's there -PY_VER = 2.4 -# adjust to point to python include path -# can also be /usr/include/python$(PY_VER) -# look for Python.h in the specified path -# Python prefix is what you configured python with -# if you built from source (e.g. ./configure --with-prefix=/usr/local) -# on debian it's often /usr, on SuSE and FreeBSD /usr/local -PYTHON_PREFIX = /usr/local PYTHON_DIR = $(PYTHON_PREFIX)/include/python$(PY_VER) PYTHON_LIBDIR = $(PYTHON_PREFIX)/lib/python$(PY_VER) @@ -35,12 +22,12 @@ ifeq ($(TTS), y) # # flite text to speech # -# uncomment the next lines if you want to have flite text-to-speech (ivr.say("Hello there"); ) -FLITE_DIR = /usr/src/flite-1.2-release -ALT_FLITE_DIR = /usr/include/flite IVR_TTS_module_ldflags = -L$(FLITE_DIR)/lib -lm -lflite_cmu_us_kal -lflite_usenglish \ -lflite_cmulex -lflite IVR_TTS_module_cflags = -I$(FLITE_DIR)/include -I$(ALT_FLITE_DIR) -DIVR_WITH_TTS +else +FLITE_DIR = +ALT_FLITE_DIR = endif LOCAL_INCLUDES = -I$(FLITE_DIR)/lang/usenglish diff --git a/apps/ivr/Makefile.defs b/apps/ivr/Makefile.defs new file mode 100644 index 00000000..7e279034 --- /dev/null +++ b/apps/ivr/Makefile.defs @@ -0,0 +1,19 @@ +# Python version: 2.5, 2.4 or 2.3 +# +# PYTHON_VERSION might also be 2.2 -- except for the use of GIL +# do a ls /usr/include/python2.3/Python.h to see if it's there +PYTHON_VERSION = 2.4 +# adjust to point to python include path +# can also be /usr/include/python$(PY_VER) +# look for Python.h in the specified path +# Python prefix is what you configured python with +# if you built from source (e.g. ./configure --with-prefix=/usr/local) +# on debian it's often /usr, on SuSE and FreeBSD /usr/local +PYTHON_PREFIX = /usr/local + +# For flite text-to-speech set TTS = y +# +TTS = y + +FLITE_DIR = /usr/src/flite-1.2-release +ALT_FLITE_DIR = /usr/include/flite diff --git a/apps/ivr/Makefile.ivr_application b/apps/ivr/Makefile.ivr_application index 12df878c..1d2d80cf 100644 --- a/apps/ivr/Makefile.ivr_application +++ b/apps/ivr/Makefile.ivr_application @@ -1,7 +1,6 @@ # generic Makefile for ivr applications -# adjust python version here: 2.5, 2.4 or 2.3 -PYTHON_VERSION=2.4 +include ../ivr/Makefile.defs # LIB_INSTALLDIR="/usr/local/lib/sems/ivr"