summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2007-06-10 19:02:38 +0000
committerAndreas Brachold <vdr07@deltab.de>2007-06-10 19:02:38 +0000
commitb410bee3a45052cdf118a00939fd161279c415a8 (patch)
tree1b04fdc8c8c6048335141fce2cebae5b849ba8d1 /Makefile
parent451d3801964e9ac4a07cbd17ffd9a655fec206aa (diff)
downloadvdr-plugin-image-b410bee3a45052cdf118a00939fd161279c415a8.tar.gz
vdr-plugin-image-b410bee3a45052cdf118a00939fd161279c415a8.tar.bz2
- for build now 'pkg-config' needed
- Use swscale to converting image
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 368b854..856b298 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,7 @@
CXX ?= g++
CXXFLAGS ?= -fPIC -O2 -Wall -Woverloaded-virtual
+PKG-CONFIG ?= pkg-config
###############################################
###############################################
@@ -86,26 +87,26 @@ LIBS += liboutput/liboutput.a libimage/libimage.a
INCLUDES += -I$(VDRDIR)/include -I.
ifdef FFMDIR
-INCLUDES += -I$(FFMDIR)/libavcodec -I$(FFMDIR)/libavutil
-LIBS += -L$(FFMDIR)/libavcodec
+DEFINES += -DFFMDIR
+LIBS += -L$(FFMDIR)/libavcodec -lavcodec -lz
ifeq ($(LIBAVCODECVERSION),51)
LIBS += -L$(FFMDIR)/libavformat -L$(FFMDIR)/libavutil
LIBS += -lavformat -lavutil
endif
-endif
-
-LIBS += -lavcodec
-LIBS += -lz
-
-ifdef FFMDIR
-DEFINES += -DFFMDIR
+else
+ LIBS += $(shell $(PKG-CONFIG) --libs libavcodec)
endif
ifndef WITHOUT_LIBEXIF
- LIBS += -lexif
+ INCLUDES += $(shell $(PKG-CONFIG) --cflags libexif)
+ LIBS += $(shell $(PKG-CONFIG) --libs libexif)
DEFINES += -DHAVE_LIBEXIF
endif
+ifndef WITHOUT_SWSCALER
+ LIBS += $(shell $(PKG-CONFIG) --libs libswscale)
+endif
+
### The object files (add further files here):
OBJS = ${PLUGIN}.o i18n.o data.o menu.o data-image.o menu-image.o \