diff options
author | Johns <johns98@gmx.net> | 2014-02-27 14:20:25 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2014-02-27 14:20:25 +0100 |
commit | 42bbb763fd93ee3936ea50e003c0892c791b1214 (patch) | |
tree | 48cf63741252def0d0336bb2eac4fe54a97cad4e /Makefile | |
parent | 5bf2a9b761c3ce73bfd49a9cb213b795be9ca2ff (diff) | |
download | vdr-plugin-softhddevice-42bbb763fd93ee3936ea50e003c0892c791b1214.tar.gz vdr-plugin-softhddevice-42bbb763fd93ee3936ea50e003c0892c791b1214.tar.bz2 |
Fix compile with newer libav.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |