From b3d55e96903dcc26f3a2b3aab8658d653c62df2b Mon Sep 17 00:00:00 2001 From: phintuka Date: Thu, 7 Jan 2010 12:53:47 +0000 Subject: Made libbluray dir and plugin selections configurable from make command line Added check for libbluray Added check for xine-lib 1.1.17 --- xine/BluRay/Makefile | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/xine/BluRay/Makefile b/xine/BluRay/Makefile index aab5a3cb..1f2cea39 100644 --- a/xine/BluRay/Makefile +++ b/xine/BluRay/Makefile @@ -1,15 +1,28 @@ +# +# deps +# + +BLURAY_INC_DIR ?= /usr/src/libburay/trunk/libbluray/src/ + # # select plugins # -ENABLE_INPUT_PLUGIN = yes -ENABLE_DEMUX_PLUGIN = yes +ENABLE_DEMUX_PLUGIN ?= yes -#ifeq ($(shell pkg-config libxine --atleast-version=1.1.17 || echo "yes"), yes) - ENABLE_SPU_PLUGIN = yes -#else -# ENABLE_SPU_PLUGIN = no -#endif +ifeq ($(shell grep BLURAY $(BLURAY_INC_DIR)/bluray.h > /dev/null && echo yes), yes) + ENABLE_INPUT_PLUGIN ?= yes +else + ENABLE_INPUT_PLUGIN ?= no + $(warning libbluray not found) +endif + +ifeq ($(shell pkg-config libxine --atleast-version=1.1.17 || echo "yes"), yes) + ENABLE_SPU_PLUGIN ?= yes +else + ENABLE_SPU_PLUGIN ?= no + $(warning SPU plugin is included in xine-lib 1.1.17+) +endif # # compiler options @@ -22,7 +35,7 @@ DESTDIR = / INSTALL = install ifeq ($(ENABLE_INPUT_PLUGIN), yes) -CFLAGS_BD ?= -I/usr/src/libburay/libbluray/trunk/src/ +CFLAGS_BD ?= -I$(BLURAY_INC_DIR) endif # -- cgit v1.2.3