diff options
author | Christian Hesse <mail@eworm.de> | 2015-07-03 17:35:18 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-07-03 17:35:18 +0200 |
commit | 360535171d457506deaad4210251939c08674a76 (patch) | |
tree | f35f356ee3e6000d59b0c9c687a32222fb1dc6db /Makefile | |
parent | 02a7441b621db03161061dbfd5a93f1a1adc7e75 (diff) | |
download | mpd-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-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |