2014-02-27 14:16:54 -05:00
|
|
|
include $(top_srcdir)/build/modmake.rulesam
|
|
|
|
MODNAME=mod_sndfile
|
|
|
|
|
FS-7338: remove libsndfile from tree, use system lib instead
FS-7338: remove libsilk from tree, use system lib instead
FS-7338: change to always use system liblua
FS-7338: remove libbroadvoice from tree, use system lib instead
FS-7338: remove libilbc from tree, use system lib instead
FS-7338: remove libs using system libs from bootstrap
FS-7338: remove libg722_1 from tree, use system lib instead
FS-7338: remove mod_celt, it has be superseded by mod_opus
FS-7338: remove libcodec2 from tree, use system lib instead
FS-7338: remove libopus from tree, use system lib instead
FS-7338: remove libsoundtouch build from tree, use system lib instead
FS-7338: remove flite build from tree, use system lib instead
FS-7338: remove openldap build from tree, use system lib instead
FS-7338: remove libmongoc build from tree, use system lib instead
FS-7338: remove mod_mongo deps that are no longer actually required
FS-7338: remove some dup demo modules and don't include demo code in packages
2015-03-30 12:17:08 -04:00
|
|
|
if HAVE_SNDFILE
|
2014-02-27 14:16:54 -05:00
|
|
|
|
2020-01-09 20:17:42 +00:00
|
|
|
noinst_LTLIBRARIES = libsndfilemod.la
|
|
|
|
libsndfilemod_la_SOURCES = mod_sndfile.c
|
|
|
|
libsndfilemod_la_CFLAGS = $(AM_CFLAGS) $(SNDFILE_CFLAGS)
|
|
|
|
|
2014-02-27 14:16:54 -05:00
|
|
|
mod_LTLIBRARIES = mod_sndfile.la
|
2020-01-09 20:17:42 +00:00
|
|
|
mod_sndfile_la_SOURCES =
|
FS-7338: remove libsndfile from tree, use system lib instead
FS-7338: remove libsilk from tree, use system lib instead
FS-7338: change to always use system liblua
FS-7338: remove libbroadvoice from tree, use system lib instead
FS-7338: remove libilbc from tree, use system lib instead
FS-7338: remove libs using system libs from bootstrap
FS-7338: remove libg722_1 from tree, use system lib instead
FS-7338: remove mod_celt, it has be superseded by mod_opus
FS-7338: remove libcodec2 from tree, use system lib instead
FS-7338: remove libopus from tree, use system lib instead
FS-7338: remove libsoundtouch build from tree, use system lib instead
FS-7338: remove flite build from tree, use system lib instead
FS-7338: remove openldap build from tree, use system lib instead
FS-7338: remove libmongoc build from tree, use system lib instead
FS-7338: remove mod_mongo deps that are no longer actually required
FS-7338: remove some dup demo modules and don't include demo code in packages
2015-03-30 12:17:08 -04:00
|
|
|
mod_sndfile_la_CFLAGS = $(AM_CFLAGS) $(SNDFILE_CFLAGS)
|
2020-01-09 20:17:42 +00:00
|
|
|
mod_sndfile_la_LIBADD = libsndfilemod.la $(switch_builddir)/libfreeswitch.la $(SNDFILE_LIBS)
|
2014-02-27 14:16:54 -05:00
|
|
|
mod_sndfile_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
|
|
|
|
2020-01-09 20:17:42 +00:00
|
|
|
noinst_PROGRAMS = test/test_sndfile test/test_sndfile_conf
|
|
|
|
|
|
|
|
test_test_sndfile_SOURCES = test/test_sndfile.c
|
|
|
|
test_test_sndfile_CFLAGS = $(AM_CFLAGS) -I./ -I../ -DSWITCH_TEST_BASE_DIR_FOR_CONF=\"${abs_builddir}/test\" -DSWITCH_TEST_BASE_DIR_OVERRIDE=\"${abs_builddir}/test\"
|
|
|
|
test_test_sndfile_LDFLAGS = $(AM_LDFLAGS) -avoid-version -no-undefined $(freeswitch_LDFLAGS) $(switch_builddir)/libfreeswitch.la $(CORE_LIBS) $(APR_LIBS)
|
|
|
|
test_test_sndfile_LDADD = libsndfilemod.la
|
|
|
|
|
|
|
|
test_test_sndfile_conf_SOURCES = test/test_sndfile_conf.c
|
|
|
|
test_test_sndfile_conf_CFLAGS = $(AM_CFLAGS) -I./ -I../ -DSWITCH_TEST_BASE_DIR_FOR_CONF=\"${abs_builddir}/test\" -DSWITCH_TEST_BASE_DIR_OVERRIDE=\"${abs_builddir}/test\"
|
|
|
|
test_test_sndfile_conf_LDFLAGS = $(AM_LDFLAGS) -avoid-version -no-undefined $(freeswitch_LDFLAGS) $(switch_builddir)/libfreeswitch.la $(CORE_LIBS) $(APR_LIBS)
|
|
|
|
test_test_sndfile_conf_LDADD = libsndfilemod.la
|
|
|
|
|
|
|
|
TESTS = $(noinst_PROGRAMS)
|
|
|
|
|
FS-7338: remove libsndfile from tree, use system lib instead
FS-7338: remove libsilk from tree, use system lib instead
FS-7338: change to always use system liblua
FS-7338: remove libbroadvoice from tree, use system lib instead
FS-7338: remove libilbc from tree, use system lib instead
FS-7338: remove libs using system libs from bootstrap
FS-7338: remove libg722_1 from tree, use system lib instead
FS-7338: remove mod_celt, it has be superseded by mod_opus
FS-7338: remove libcodec2 from tree, use system lib instead
FS-7338: remove libopus from tree, use system lib instead
FS-7338: remove libsoundtouch build from tree, use system lib instead
FS-7338: remove flite build from tree, use system lib instead
FS-7338: remove openldap build from tree, use system lib instead
FS-7338: remove libmongoc build from tree, use system lib instead
FS-7338: remove mod_mongo deps that are no longer actually required
FS-7338: remove some dup demo modules and don't include demo code in packages
2015-03-30 12:17:08 -04:00
|
|
|
else
|
|
|
|
install: error
|
|
|
|
all: error
|
|
|
|
error:
|
|
|
|
$(error You must install libsndfile-dev to build mod_sndfile)
|
|
|
|
endif
|