34 lines
1.4 KiB
Makefile
Raw Normal View History

2014-02-27 14:16:54 -05:00
include $(top_srcdir)/build/modmake.rulesam
MODNAME=mod_soundtouch
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
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
2014-02-27 14:16:54 -05:00
BUILT_SOURCES=$(LA)
2011-07-12 13:59:37 +02:00
$(SNDT_SRC):
$(GETLIB) $(VERSION).tar.gz
sed -i'' -e 's/-fcheck-new//' $(top_srcdir)/libs/soundtouch/source/SoundTouch/Makefile.am
2011-07-12 14:52:59 +02:00
$(SNDT_BUILD)/Makefile: $(SNDT_SRC)
mkdir -p $(SNDT_BUILD)/config/m4
rm -rf $(SNDT_BUILD)/config/m4/*
rm -rf $(SNDT_SRC)/config/m4/*
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
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}
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)