summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-01-07 12:53:47 +0000
committerphintuka <phintuka>2010-01-07 12:53:47 +0000
commitb3d55e96903dcc26f3a2b3aab8658d653c62df2b (patch)
treecd85bcd5790c2f2691c4cba63e4eaa5679157e4a
parentd9d13f0e4eda132ab8bb925c2dfaad53d59272cf (diff)
downloadxineliboutput-b3d55e96903dcc26f3a2b3aab8658d653c62df2b.tar.gz
xineliboutput-b3d55e96903dcc26f3a2b3aab8658d653c62df2b.tar.bz2
Made libbluray dir and plugin selections configurable from make command line
Added check for libbluray Added check for xine-lib 1.1.17
-rw-r--r--xine/BluRay/Makefile29
1 files 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
#