Commit 9478acc1 authored by Tristan Matthews's avatar Tristan Matthews

* #6076: video "library" integrated into build system

This adds dependencies to libavcodec, libavformat, libavdevice and libswscale
parent b22a8ef0
......@@ -41,7 +41,8 @@ AC_CONFIG_FILES([libs/Makefile \
libs/dbus-c++/src/Makefile \
libs/dbus-c++/tools/Makefile \
libs/dbus-c++/data/Makefile \
libs/iax2/Makefile])
libs/iax2/Makefile \
libs/video/Makefile])
AC_CONFIG_FILES([src/Makefile \
src/sip/Makefile \
......@@ -193,6 +194,19 @@ PKG_CHECK_MODULES(SAMPLERATE, samplerate >= ${LIBSAMPLERATE_MIN_VERSION},, AC_MS
AC_SUBST(SAMPLERATE_LIBS)
AC_SUBST(SAMPLERATE_CFLAGS)
dnl The libav versions correspond to the last beta release of libav, 0.7-beta2
dnl Check for libavcodec development package - name: libavcodec-dev
PKG_CHECK_MODULES(LIBAVCODEC, libavcodec >= 53.3.0,, AC_MSG_ERROR([Missing libavcodec package: libavcodec-dev]))
dnl Check for libavformat development package - name: libavformat-dev
PKG_CHECK_MODULES(LIBAVFORMAT, libavformat >= 53.0.3,, AC_MSG_ERROR([Missing libavformat package: libavformat-dev]))
dnl Check for libswscale development package - name: libswcale-dev
PKG_CHECK_MODULES(LIBSWSCALE, libswscale >= 1.1.0,, AC_MSG_ERROR([Missing libswscale package: libswscale-dev]))
dnl Check for libavdevice development package - name: libavdevice-dev
PKG_CHECK_MODULES(LIBAVDEVICE, libavdevice >= 53.0.0,, AC_MSG_ERROR([Missing libavdevice package: libavdevice-dev]))
LIBCCGNU2_MIN_VERSION=1.3.1
PKG_CHECK_MODULES(CCGNU2, libccgnu2 >= ${LIBCCGNU2_MIN_VERSION},, AC_MSG_ERROR([Mising common cpp development package: libcommoncpp2-dev]))
AC_SUBST(CCGNU2_LIBS)
......
SUBDIRS = utilspp iax2 dbus-c++
SUBDIRS = utilspp iax2 dbus-c++ video
CFLAGS=-Wall -g -O2 `pkg-config --cflags theora`
SERVER_LIBS=-lavutil -lavdevice -lavformat -lavcodec -lz -lavutil -lswscale \
-lm -pthread -lasound -lx264 -ljack -lvpx `pkg-config --libs theora` -ltheoraenc -ltheoradec
CLUTTER_CFLAGS=`pkg-config --cflags clutter-1.0`
CLUTTER_LIBS=`pkg-config --libs clutter-1.0`
APPS = ffmpeg2shm shmclient ffmpeg2rtp
all: $(APPS)
ffmpeg2rtp: ffmpeg2rtp.c
$(CC) -o $@ $^ $(SERVER_LIBS) $(CFLAGS)
ffmpeg2shm: ffmpeg2shm.c
$(CC) -o $@ $^ $(SERVER_LIBS) $(CFLAGS)
shmclient: shmclient.c
$(CC) -o $@ $^ $(CFLAGS) $(CLUTTER_CFLAGS) $(CLUTTER_LIBS)
.PHONY: clean
clean:
rm -rf $(APPS)
bin_PROGRAMS = ffmpeg2rtp ffmpeg2shm
AM_CFLAGS=@LIBAVCODEC_CFLAGS@ @LIBAVFORMAT_CFLAGS@ @LIBAVDEVICE_CFLAGS@ @LIBSWSCALE_CFLAGS@
ffmpeg2rtp_LDADD=@LIBAVCODEC_LIBS@ @LIBAVFORMAT_LIBS@ @LIBAVDEVICE_LIBS@ @LIBSWSCALE_LIBS@
ffmpeg2shm_LDADD=@LIBAVCODEC_LIBS@ @LIBAVFORMAT_LIBS@ @LIBAVDEVICE_LIBS@ @LIBSWSCALE_LIBS@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment