2014-02-27 14:16:54 -05:00
|
|
|
include $(top_srcdir)/build/modmake.rulesam
|
|
|
|
MODNAME=mod_soundtouch
|
2013-11-15 11:21:58 -06:00
|
|
|
VERSION=soundtouch-1.7.1
|
2011-07-12 13:59:37 +02:00
|
|
|
SNDT_SRC=$(switch_srcdir)/libs/soundtouch
|
|
|
|
SNDT_BUILD=$(switch_builddir)/libs/soundtouch
|
2014-02-27 14:16:54 -05:00
|
|
|
LA=$(SNDT_BUILD)/source/SoundTouch/libSoundTouch.la
|
2007-06-12 21:27:16 +00:00
|
|
|
|
2014-02-27 14:16:54 -05:00
|
|
|
mod_LTLIBRARIES = mod_soundtouch.la
|
|
|
|
mod_soundtouch_la_SOURCES = mod_soundtouch.cpp
|
|
|
|
mod_soundtouch_la_CFLAGS = $(AM_CFLAGS) -I$(SNDT_SRC)/include -DINTEGER_SAMPLES -I$(SNDT_BUILD)/include
|
|
|
|
mod_soundtouch_la_CXXFLAGS = -I$(SNDT_SRC)/include -DINTEGER_SAMPLES -I$(SNDT_BUILD)/include
|
|
|
|
mod_soundtouch_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(LA)
|
|
|
|
mod_soundtouch_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
2007-06-12 21:27:16 +00:00
|
|
|
|
2014-02-27 14:16:54 -05:00
|
|
|
BUILT_SOURCES=$(LA)
|
2007-06-12 21:27:16 +00:00
|
|
|
|
2011-07-12 13:59:37 +02:00
|
|
|
$(SNDT_SRC):
|
2007-06-12 21:27:16 +00:00
|
|
|
$(GETLIB) $(VERSION).tar.gz
|
|
|
|
|
2011-07-12 14:52:59 +02:00
|
|
|
$(SNDT_BUILD)/Makefile: $(SNDT_SRC)
|
2012-08-20 16:49:52 -04:00
|
|
|
mkdir -p $(SNDT_BUILD)/config/m4
|
2011-07-12 16:58:06 +02:00
|
|
|
rm -rf $(SNDT_BUILD)/config/m4/*
|
|
|
|
rm -rf $(SNDT_SRC)/config/m4/*
|
2013-01-10 00:12:08 +01:00
|
|
|
sed -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' $(SNDT_SRC)/configure.ac > $(SNDT_SRC)/configure.ac.tmp && \
|
|
|
|
mv $(SNDT_SRC)/configure.ac.tmp $(SNDT_SRC)/configure.ac
|
2011-07-12 17:14:36 +02:00
|
|
|
cd $(SNDT_SRC) && AUTOMAKE="automake --add-missing --foreign --copy" autoreconf -fisv
|
2011-07-12 13:59:37 +02:00
|
|
|
cd ${SNDT_BUILD} && $(DEFAULT_VARS) $(SNDT_SRC)/configure $(DEFAULT_ARGS) --enable-integer-samples --srcdir=$(SNDT_SRC)
|
|
|
|
${TOUCH_TARGET}
|
2009-03-25 19:34:37 +00:00
|
|
|
|
2011-07-12 14:52:59 +02:00
|
|
|
$(LA): $(SNDT_BUILD)/Makefile
|
2011-07-12 13:59:37 +02:00
|
|
|
cd $(SNDT_BUILD) && ${MAKE}
|
|
|
|
$(TOUCH_TARGET)
|