2011-07-12 13:59:37 +02:00
|
|
|
BASE=../../../..
|
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
|
|
|
|
LA=$(SNDT_BUILD)/source/SoundTouch/.libs/libSoundTouch.a
|
2007-06-12 21:27:16 +00:00
|
|
|
|
2011-07-12 13:59:37 +02:00
|
|
|
LOCAL_CFLAGS += -I$(SNDT_SRC)/include -DINTEGER_SAMPLES -I$(SNDT_BUILD)/include
|
2007-06-12 21:27:16 +00:00
|
|
|
LOCAL_LIBADD=$(LA)
|
|
|
|
|
2007-06-13 13:33:30 +00:00
|
|
|
include $(BASE)/build/modmake.rules
|
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)
|