diff options
-rw-r--r-- | Makefile | 4 | ||||
-rwxr-xr-x | configure | 14 |
2 files changed, 14 insertions, 4 deletions
@@ -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) @@ -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 |