aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2015-07-03 17:35:18 +0200
committerGravatar Christian Hesse <mail@eworm.de>2015-07-03 17:35:18 +0200
commit360535171d457506deaad4210251939c08674a76 (patch)
treef35f356ee3e6000d59b0c9c687a32222fb1dc6db /Makefile
parent02a7441b621db03161061dbfd5a93f1a1adc7e75 (diff)
downloadmpd-notification-360535171d457506deaad4210251939c08674a76.tar.gz
mpd-notification-360535171d457506deaad4210251939c08674a76.tar.zst
make libav (and retrieving cover from media file) optional
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dd08b43..4d3260e 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,10 @@ RM := rm
CFLAGS += -std=c11 -O2 -Wall -Werror
CFLAGS += $(shell pkg-config --cflags --libs libmpdclient)
CFLAGS += $(shell pkg-config --cflags --libs libnotify)
-CFLAGS += $(shell pkg-config --cflags --libs libavcodec libavformat)
+LIBAV_CFLAGS := $(shell pkg-config --cflags --libs libavcodec libavformat 2>/dev/null)
+ifneq ($(LIBAV_CFLAGS),)
+CFLAGS += -DHAVE_LIBAV $(LIBAV_CFLAGS)
+endif
# this is just a fallback in case you do not use git but downloaded
# a release tarball...
VERSION := 0.6.0