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:23:18 (GMT)
commitc0237bb0414854b6a564450579bb4309f81ae0c1 (patch)
tree0800c18878480344938c16cc15a5287909b54eb4
parent3ad6c81aa83491b7e6d2d54c15daf16894a72299 (diff)
windows: Support opengl, libfftw amd libvisual in mythplugins configure
Signed-off-by: Mark Kendall <mkendall@mythtv.org>
-rwxr-xr-xmythplugins/configure17
1 files changed, 11 insertions, 6 deletions
diff --git a/mythplugins/configure b/mythplugins/configure
index 57ca3ef..ee5aa3a 100755
--- a/mythplugins/configure
+++ b/mythplugins/configure
@@ -377,6 +377,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
@@ -390,11 +393,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
@@ -815,7 +816,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)"