summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorm.Rcu <>2012-01-24 22:40:06 +0100
committerJohns <johns98@gmx.net>2012-01-24 22:40:06 +0100
commit2dff69dc14ef8f59e8ae9e50dfa6b973d42f3369 (patch)
treeaf010f03e6a35d327b99462d6db892f8a207ec4d /Makefile
parent5668fa22d2d62385b6901f957d2d47d3385aef91 (diff)
downloadvdr-plugin-softhddevice-2dff69dc14ef8f59e8ae9e50dfa6b973d42f3369.tar.gz
vdr-plugin-softhddevice-2dff69dc14ef8f59e8ae9e50dfa6b973d42f3369.tar.bz2
Add support for grab jpeg image.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 568b40f..2e577b3 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,7 @@ CONFIG := #-DDEBUG
CONFIG += $(shell pkg-config --exists vdpau && echo "-DUSE_VDPAU")
CONFIG += $(shell pkg-config --exists libva && echo "-DUSE_VAAPI")
CONFIG += $(shell pkg-config --exists alsa && echo "-DUSE_ALSA")
+CONFIG += $(shell ls /usr/lib/libjpeg* >/dev/null 2>&1 && echo "-DUSE_JPEG")
CONFIG += -DUSE_OSS
### The C++ compiler and options:
@@ -89,7 +90,9 @@ LIBS += -lrt \
$(if $(findstring USE_VAAPI,$(CONFIG)), \
`pkg-config --libs libva-x11 libva-glx libva`) \
$(if $(findstring USE_ALSA,$(CONFIG)), \
- `pkg-config --libs alsa`)
+ `pkg-config --libs alsa`) \
+ $(if $(findstring USE_JPEG,$(CONFIG)), \
+ -ljpeg)
### The object files (add further files here):