summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton <anton@picapica>2020-05-09 23:41:12 +0400
committerAnton <anton@picapica>2020-05-09 23:41:12 +0400
commit8be5d3e0a1a09f0d4e9c2544ac3293c6dd6f788c (patch)
tree8c8382b492d4352e5795757994190e2d9cd0e2d3
parent918164b0ffbfabe3b27c61e80c6a7b6309d84718 (diff)
downloadpica-pica-8be5d3e0a1a09f0d4e9c2544ac3293c6dd6f788c.tar.gz
pica-pica-8be5d3e0a1a09f0d4e9c2544ac3293c6dd6f788c.zip
add FFmpeg libraries into dependencies
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac5
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index be01e97..6edec67 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -157,8 +157,8 @@ ui_%.h: pica-client/%.ui
$(UIC) $< -o $@
-pica_client_pica_client_CPPFLAGS = -DPICA_INSTALLPREFIX=\"$(prefix)\" $(QT_DEPENDENCIES_CFLAGS)
-pica_client_pica_client_LDADD = $(QT_DEPENDENCIES_LIBS)
+pica_client_pica_client_CPPFLAGS = -DPICA_INSTALLPREFIX=\"$(prefix)\" $(QT_DEPENDENCIES_CFLAGS) $(FFMPEG_CFLAGS)
+pica_client_pica_client_LDADD = $(QT_DEPENDENCIES_LIBS) $(FFMPEG_LIBS)
pkgpicaclientdir = ${datarootdir}/pica-client
dist_pkgpicaclient_DATA = \
diff --git a/configure.ac b/configure.ac
index 52e9b24..434e2d0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,6 +122,11 @@ AS_IF([test "x$MOC" = xnotfound],[AC_MSG_ERROR(["moc program not found. Please i
AC_CHECK_PROG([OPENSSL_TOOL], [openssl], [yes], [no])
AS_IF([test "x$OPENSSL_TOOL" != xyes],[AC_MSG_WARN(["openssl command line tool not found. This is a runtime dependency for pica-client!"])])
+
+#check for FFmpeg libraries
+PKG_CHECK_MODULES([FFMPEG],["libavcodec libavdevice libavformat libavutil libswresample libswscale"])
+AC_SUBST([FFMPEG_CFLAGS])
+AC_SUBST([FFMPEG_LIBS])
])