Permalink
Browse files

windows: Support opengl, libfftw amd libvisual in mythplugins configure

Signed-off-by: Mark Kendall <mkendall@mythtv.org>
(cherry picked from commit c0237bb)
  • Loading branch information...
1 parent df16df9 commit a6decbcba77e336529ced88bf01cfe749318dcc8 Lawrence Rust committed with Mark Kendall Mar 16, 2011
Showing with 11 additions and 6 deletions.
  1. +11 −6 mythplugins/configure
View
@@ -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)"

0 comments on commit a6decbc

Please sign in to comment.