summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-11-01 12:30:47 +0000
committerphintuka <phintuka>2008-11-01 12:30:47 +0000
commitb300f3cc8a67a566e5320006ec818078cc81be29 (patch)
tree39fe4161ca1acf253a16d99ba345ad45b4657222
parentfec36aae2ef6963ade6acce7cb10f2f0593199b5 (diff)
downloadxineliboutput-b300f3cc8a67a566e5320006ec818078cc81be29.tar.gz
xineliboutput-b300f3cc8a67a566e5320006ec818078cc81be29.tar.bz2
Moved xine plugin dir check to configure script
-rw-r--r--Makefile4
-rwxr-xr-xconfigure14
2 files changed, 14 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fc528463..4075ffaa 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
# See the main source file 'xineliboutput.c' for copyright information and
# how to reach the author.
#
-# $Id: Makefile,v 1.49 2008-11-01 12:27:29 phintuka Exp $
+# $Id: Makefile,v 1.50 2008-11-01 12:30:47 phintuka Exp $
#
# The official name of this plugin.
@@ -145,7 +145,6 @@ VDRPLUGIN_SXFE_SO =
VDRFBFE_EXEC =
VDRPLUGIN_FBFE_SO =
XINEINPUTVDR_SO =
-XINEPLUGINDIR = ./
XINEPOSTAUTOCROP_SO =
XINEPOSTSWSCALE_SO =
XINEPOSTAUDIOCHANNEL_SO =
@@ -165,7 +164,6 @@ ifeq ($(XINELIBOUTPUT_FB), yes)
endif
ifeq ($(XINELIBOUTPUT_XINEPLUGIN), yes)
XINEINPUTVDR_SO = $(XINEINPUTVDR)
- XINEPLUGINDIR = $(shell (pkg-config libxine --atleast-version=1.1.90 && pkg-config libxine --variable=plugindir) || xine-config --plugindir)
XINEPOSTAUTOCROP_SO = $(XINEPOSTAUTOCROP)
XINEPOSTSWSCALE_SO = $(XINEPOSTSWSCALE)
XINEPOSTAUDIOCHANNEL_SO = $(XINEPOSTAUDIOCHANNEL)
diff --git a/configure b/configure
index 37181b49..352fa90a 100755
--- a/configure
+++ b/configure
@@ -7,7 +7,7 @@
# See the main source file 'xineliboutput.c' for copyright information and
# how to reach the author.
#
-# * $Id: configure,v 1.3 2008-11-01 12:27:29 phintuka Exp $
+# * $Id: configure,v 1.4 2008-11-01 12:30:47 phintuka Exp $
#
PKG_CONFIG="pkg-config"
@@ -283,6 +283,15 @@ test_library VDR libextractor "extractor.h" "-lextractor" "EXTRACTOR_get
test_library XINE libxine "xine.h" "-lxine" "xine_init(0)"
if enabled libxine; then
+
+ log -n "Checking for xine plugin directory ..."
+ if enabled pkgconfig && $PKGCONFIG libxine --atleast-version 1.1.90; then
+ XINEPLUGINDIR=`$PKGCONFIG libxine --variable=plugindir`
+ else
+ XINEPLUGINDIR=`xine-config --plugindir`
+ fi
+ log " $XINEPLUGINDIR"
+
test_library X11 x11 "X11/X.h" "-lX11" "XInitThreads()"
if enabled x11; then
test_library X11 xrender "X11/extensions/Xrender.h" "-lXrender" "XRenderQueryFormats(0)"
@@ -357,6 +366,9 @@ for feature in $FEATURES; do
done
echo >> $makefile
+# xine plugin dir
+enabled libxine && echo "XINEPLUGINDIR=$XINEPLUGINDIR" >> $makefile && echo >> $makefile
+
# cc/ld flags
echo "CFLAGS_XINE += $CFLAGS_XINE">>$makefile
echo "CFLAGS_VDR += $CFLAGS_VDR">>$makefile