From c0237bb0414854b6a564450579bb4309f81ae0c1 Mon Sep 17 00:00:00 2001 From: Lawrence Rust Date: Wed, 16 Mar 2011 12:23:18 +0800 Subject: [PATCH] windows: Support opengl, libfftw amd libvisual in mythplugins configure Signed-off-by: Mark Kendall --- mythplugins/configure | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/mythplugins/configure b/mythplugins/configure index 57ca3ef27a3..ee5aa3ab985 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)"