summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLawrence Rust <lvr@softsystem.co.uk>2011-03-16 04:23:18 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-03-16 04:24:44 (GMT)
commita6decbcba77e336529ced88bf01cfe749318dcc8 (patch)
treee93f5502cff6c68d5f6519541025358167c4b544
parentdf16df93d3bff56405c7f4378cd7bf98af52a366 (diff)
windows: Support opengl, libfftw amd libvisual in mythplugins configure
Signed-off-by: Mark Kendall <mkendall@mythtv.org> (cherry picked from commit c0237bb0414854b6a564450579bb4309f81ae0c1)
-rwxr-xr-xmythplugins/configure17
1 files changed, 11 insertions, 6 deletions
diff --git a/mythplugins/configure b/mythplugins/configure
index 47973ea..efcfe0e 100755
--- a/mythplugins/configure
+++ b/mythplugins/configure
@@ -375,6 +375,9 @@ if test "$opengl" != "no" ; then
if test -f $sysroot/System/Library/Frameworks/AGL.framework/Versions/A/AGL ; then
opengl="yes"
fi
+ if test "`echo ${targetos} | cut -c1-5`" = "MINGW" ; then
+ opengl="yes"
+ fi
fi
if ! disabled libvisual; then
@@ -388,11 +391,9 @@ fi
if ! disabled fftw; then
disable fftw_lib3
- if has_library libfftw3f_threads ; then
- if has_library libfftw3_threads ; then
- if has_header fftw3.h ; then
- enable fftw_lib3
- fi
+ if has_library libfftw3_threads ; then
+ if has_header fftw3.h ; then
+ enable fftw_lib3
fi
fi
fi
@@ -813,7 +814,11 @@ if test "$music" = "yes" ; then
if enabled sdl; then
echo " libvisual support will be included in MythMusic"
echo "#define LIBVISUAL_SUPPORT 1" >> ./mythmusic/mythmusic/config.h
- echo "INCLUDEPATH += /usr/include/libvisual-0.4" >> ./mythmusic/mythmusic/config.pro
+ if [ "`echo ${targetos} | cut -c1-5`" = "MINGW" ]; then
+ echo "INCLUDEPATH += $prefix/include/libvisual-0.4" >> ./mythmusic/mythmusic/config.pro
+ else
+ echo "INCLUDEPATH += `pkg-config --cflags-only-I libvisual-0.4 | sed s/-I//g`" >> ./mythmusic/mythmusic/config.pro
+ fi
echo "LIBS += -lvisual-0.4" >> ./mythmusic/mythmusic/config.pro
else
echo " libvisual support will not be included in MythMusic (requires SDL support)"