Ticket #9362: 10-mythmusic-cdio-configure.diff

File 10-mythmusic-cdio-configure.diff, 2.0 KB (added by lvr@…, 14 years ago)
  • mythplugins/configure

     
    118118exif
    119119newexif
    120120dcraw
     121cdio
    121122"
    122123
    123124enable $PLUGIN_LIST $CONFIG_LIST
     125disable cdio
    124126
    125127
    126128prefix="/usr/local"
     
    174176  --enable-libvisual       enable libvisual visualizers [$libvisual]
    175177  --enable-fftw            enable fftw visualizers [$fftw]
    176178  --enable-sdl             use SDL for the synaesthesia output [$sdl]
     179  --enable-cdio            enable libcdio for CD access [$cdio]
    177180
    178181MythNews related options:
    179182  --enable-mythnews        build the mythnews plugin [$news]
     
    503506        cdaudio="yes"
    504507    fi
    505508
    506     if test "$cdaudio" = "no" -a "$targetos" != "Darwin"; then
     509    if test "$cdaudio" = "no" -a "$targetos" != "Darwin" -a "`echo ${targetos} | cut -c1-5`" != "MINGW"; then
    507510        echo "MythMusic requires libcdaudio."
    508511    fi
    509512
     
    522525        echo "MythMusic requires CDDA Paranoia."
    523526    fi
    524527
     528    if test "$cdio" != "no" ; then
     529        cdio="no"
     530        if has_header cdio/cdio.h && has_library libcdio && has_library libcdio_cdda && has_library libcdio_paranoia ; then
     531            cdio="yes"
     532        fi
     533    fi
     534
    525535    mp3lame="no"
    526536    if has_header lame/lame.h && has_library libmp3lame ; then
    527537        mp3lame="yes"
     
    799809      echo "#undef  HAVE_PARANOIA" >> ./mythmusic/mythmusic/config.h
    800810    fi
    801811
     812    if test "$cdio" = "yes" ; then
     813      echo "#define HAVE_CDIO 1" >> ./mythmusic/mythmusic/config.h
     814      echo "CONFIG += cdio" >> ./mythmusic/mythmusic/config.pro
     815      echo "        libcdio        support will be included in MythMusic"
     816    else
     817      echo "#undef  HAVE_CDIO" >> ./mythmusic/mythmusic/config.h
     818      echo "        libcdio        support will not be included in MythMusic"
     819    fi
     820
    802821    if test "$opengl" = "yes" ; then
    803822        echo "        OpenGL         support will be included in MythMusic"
    804823        echo "#define OPENGL_SUPPORT 1" >> ./mythmusic/mythmusic/config.h