summaryrefslogtreecommitdiff
path: root/liboutput/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 /liboutput/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 'liboutput/Makefile')
-rw-r--r--liboutput/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/liboutput/Makefile b/liboutput/Makefile
index 126cfc8..7300393 100644
--- a/liboutput/Makefile
+++ b/liboutput/Makefile
@@ -9,6 +9,7 @@ VDRDIR = ../../../..
CXX ?= g++
CXXFLAGS ?= -O0 -g -Wall -Woverloaded-virtual
+PKG-CONFIG ?= pkg-config
-include $(VDRDIR)/Make.config
@@ -18,12 +19,16 @@ CXXFLAGS ?= -O0 -g -Wall -Woverloaded-virtual
INCLUDES += -I$(VDRDIR)/include -I.
ifdef FFMDIR
INCLUDES += -I$(FFMDIR)/libavcodec -I$(FFMDIR)/libavutil
+DEFINES += -DFFMDIR
+else
+ INCLUDES += $(shell $(PKG-CONFIG) --cflags libavcodec)
endif
DEFINES += -D_GNU_SOURCE
-ifdef FFMDIR
-DEFINES += -DFFMDIR
+ifndef WITHOUT_SWSCALER
+ DEFINES += -DHAVE_SWSCALER
+ INCLUDES += $(shell $(PKG-CONFIG) --cflags libswscale)
endif
### The object files (add further files here):