aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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