From fee68b156a44418d8378e38cef40c747c320d7f6 Mon Sep 17 00:00:00 2001 From: Maniac Date: Mon, 6 Jul 2015 14:33:31 +0200 Subject: optical discs are now started using key red --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9ab30e1..3896dcb 100644 --- a/Makefile +++ b/Makefile @@ -15,11 +15,21 @@ PLUGIN = mpv # support refresh rate switching XRANDR ?= $(shell pkg-config --exists xrandr && echo 1) LIBMPV ?= $(shell pkg-config --exists mpv && echo 1) +LIBCDIO ?= $(shell pkg-config --exists libcdio && echo 1) +LIBMOUNT ?= $(shell pkg-config --exists mount && echo 1) ifneq ($(LIBMPV),1) $(error libmpv missing) endif +ifeq ($(LIBCDIO),1) +ifeq ($(LIBMOUNT),1) +CONFIG += -DUSE_DISC +LIBS += $(shell pkg-config --libs libcdio) +LIBS += $(shell pkg-config --libs mount) +endif +endif + ifeq ($(XRANDR),1) CONFIG += -DUSE_XRANDR LIBS += $(shell pkg-config --libs xrandr) @@ -74,7 +84,7 @@ DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -D_GNU_SOURCE $(CONFIG) \ ### The object files (add further files here): -OBJS = $(PLUGIN).o config.o control.o filebrowser.o menu_options.o osd.o player.o playmenu.o setup.o status.o +OBJS = $(PLUGIN).o config.o control.o filebrowser.o menu_options.o osd.o player.o setup.o status.o ### The main target: -- cgit v1.2.3