Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
windows: Support opengl, libfftw amd libvisual in mythplugins configure
Signed-off-by: Mark Kendall <mkendall@mythtv.org>
  • Loading branch information
Lawrence Rust authored and Mark Kendall committed Mar 16, 2011
1 parent 3ad6c81 commit c0237bb
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions mythplugins/configure
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)"
Expand Down

1 comment on commit c0237bb

@NigelPearson
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably do a variable for targetting mingw (i.e. if enabled mingw) instead of echo $targetos | cut = "MINGW" ?

Probably mingw in mythtv/configure's MYTHTV_CONFIG_LIST ?

Please sign in to comment.