summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2014-02-27 14:20:25 +0100
committerJohns <johns98@gmx.net>2014-02-27 14:20:25 +0100
commit42bbb763fd93ee3936ea50e003c0892c791b1214 (patch)
tree48cf63741252def0d0336bb2eac4fe54a97cad4e /Makefile
parent5bf2a9b761c3ce73bfd49a9cb213b795be9ca2ff (diff)
downloadvdr-plugin-softhddevice-42bbb763fd93ee3936ea50e003c0892c791b1214.tar.gz
vdr-plugin-softhddevice-42bbb763fd93ee3936ea50e003c0892c791b1214.tar.bz2
Fix compile with newer libav.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7dfe3cb..cf76c0e 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,10 @@ VDPAU ?= $(shell pkg-config --exists vdpau && echo 1)
SCREENSAVER ?= 1
# use ffmpeg libswresample
SWRESAMPLE ?= $(shell pkg-config --exists libswresample && echo 1)
+ # use libav libavresample
+ifneq ($(SWRESAMPLE),1)
+AVRESAMPLE ?= $(shell pkg-config --exists libavresample && echo 1)
+endif
CONFIG := # -DDEBUG #-DOSD_DEBUG # enable debug output+functions
#CONFIG += -DSTILL_DEBUG=2 # still picture debug verbose level
@@ -78,6 +82,11 @@ CONFIG += -DUSE_SWRESAMPLE
_CFLAGS += $(shell pkg-config --cflags libswresample)
LIBS += $(shell pkg-config --libs libswresample)
endif
+ifeq ($(AVRESAMPLE),1)
+CONFIG += -DUSE_AVRESAMPLE
+_CFLAGS += $(shell pkg-config --cflags libavresample)
+LIBS += $(shell pkg-config --libs libavresample)
+endif
_CFLAGS += $(shell pkg-config --cflags libavcodec x11 x11-xcb xcb xcb-icccm)
LIBS += -lrt $(shell pkg-config --libs libavcodec x11 x11-xcb xcb xcb-icccm)