2014-11-24 11:51:34 -05:00
|
|
|
include $(top_srcdir)/build/modmake.rulesam
|
|
|
|
MODNAME=mod_av
|
|
|
|
|
2015-06-16 18:24:26 -05:00
|
|
|
if HAVE_YUV
|
|
|
|
if HAVE_VPX
|
2015-05-21 15:48:48 -05:00
|
|
|
if HAVE_AVFORMAT
|
|
|
|
|
2014-11-24 11:51:34 -05:00
|
|
|
mod_LTLIBRARIES = mod_av.la
|
2015-05-21 15:48:48 -05:00
|
|
|
mod_av_la_SOURCES = mod_av.c avformat.c avcodec.c
|
|
|
|
mod_av_la_CFLAGS = $(AM_CFLAGS) $(AVFORMAT_CFLAGS) $(AVCODEC_CFLAGS) $(SWSCALE_CFLAGS) $(AVUTIL_CFLAGS) $(AVRESAMPLE_CFALGS)
|
|
|
|
mod_av_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(AVFORMAT_LIBS) $(AVCODEC_LIBS) $(SWSCALE_LIBS) $(AVUTIL_LIBS) $(AVRESAMPLE_LIBS)
|
|
|
|
mod_av_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz
|
|
|
|
|
|
|
|
else
|
|
|
|
install: error
|
|
|
|
all: error
|
|
|
|
error:
|
|
|
|
$(error You must install libavformat-dev to build mod_av)
|
|
|
|
endif
|
2014-11-25 02:02:05 +08:00
|
|
|
|
2015-06-16 18:24:26 -05:00
|
|
|
else
|
|
|
|
install: error
|
|
|
|
all: error
|
|
|
|
error:
|
|
|
|
$(error You must install libvpx2-dev to build mod_av)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
install: error
|
|
|
|
all: error
|
|
|
|
error:
|
|
|
|
$(error You must install libyuv-dev to build mod_av)
|
|
|
|
endif
|
|
|
|
|