summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2006-01-12 20:22:17 +0000
committerAndreas Brachold <vdr07@deltab.de>2006-01-12 20:22:17 +0000
commit43ce4eb25f4fd149ad0cf28626fe05f529f9a9fc (patch)
treece6e932fd110e01e2423f9cc49717c50e61582d0
parent35aa768d991d5dadb6b3301b371b0cb8e4747e1d (diff)
downloadvdr-plugin-image-43ce4eb25f4fd149ad0cf28626fe05f529f9a9fc.tar.gz
vdr-plugin-image-43ce4eb25f4fd149ad0cf28626fe05f529f9a9fc.tar.bz2
- fix build failed without defined FFMDIR
-rw-r--r--Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 3388492..93c13a3 100644
--- a/Makefile
+++ b/Makefile
@@ -72,29 +72,28 @@ VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk '{ print
ARCHIVE = $(PLUGIN)-$(VERSION)
PACKAGE = vdr-$(ARCHIVE)
-### The version number of ffmpeg (taken from "libavcodec/avcodec.h" or "ffmpeg/avcodec.h" ):
+### The version number of ffmpeg (taken from "libavcodec/avcodec.h" ):
ifdef FFMDIR
-FFMVERSION = $(shell grep "\#define FFMPEG_VERSION_INT " $(FFMDIR)/libavcodec/avcodec.h | \
- cut -d "x" -f 2 )
+LIBAVCODECVERSION = $(shell grep "\#define LIBAVCODEC_VERSION " $(FFMDIR)/libavcodec/avcodec.h | \
+ awk '{ print $$3 }' | cut -d "." -f 1 )
endif
### Includes and Defines (add further entries here):
-INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include -I.
-ifdef FFMDIR
-INCLUDES += -I$(FFMDIR)/libavcodec -I$(FFMDIR)/libavutil
-endif
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
DEFINES += -D_GNU_SOURCE
LIBS += liboutput/liboutput.a libimage/libimage.a
+INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include -I.
ifdef FFMDIR
+INCLUDES += -I$(FFMDIR)/libavcodec -I$(FFMDIR)/libavutil
LIBS += -L$(FFMDIR)/libavcodec
-ifneq ($(FFMVERSION),000408)
+ifeq ($(LIBAVCODECVERSION),51)
LIBS += -L$(FFMDIR)/libavformat -L$(FFMDIR)/libavutil
+LIBS += -lavformat -lavutil
endif
endif