Ticket #7317: sysroot-2.patch

File sysroot-2.patch, 9.0 KB (added by pebender@…, 15 years ago)
  • configure

    diff -Naur mythplugins-trunk-22658-old/configure mythplugins-trunk-22658-new/configure
    old new  
    266266
    267267has_library()
    268268{
    269     if test -f /etc/ld.so.conf ; then
    270         LIBPATHS=`cat /etc/ld.so.conf | grep -v "#" | grep -v "include"`
    271     else
    272         LIBPATHS=''
    273     fi
    274 
    275     LIBPATHS="$LIBPATHS `echo $LD_LIBRARY_PATH | sed s/':'/' '/g` "
    276     # Mac OS X has a different variable for this:
    277     LIBPATHS="$LIBPATHS `echo $DYLD_LIBRARY_PATH | sed s/':'/' '/g` "
    278 
    279     # recurse down just one level, should be enough in most cases
    280     if test -f /etc/ld.so.conf ; then
    281         INCL=`cat /etc/ld.so.conf | grep -v "#" | grep  "^include"`
    282         SRCH=`echo "$INCL" | sed '{ s/^include \//\//; s/^include /\/etc\//}'`
    283         for x in $SRCH ; do
    284             LP_APPEND=`cat $x | grep -v "#" | grep -v "^include"`
    285             LIBPATHS="$LIBPATHS $LP_APPEND"
    286         done
     269    LIBPATHS=''
     270    if test "x$sysroot" = "x" ; then
     271        if test -f /etc/ld.so.conf ; then
     272            LIBPATHS=`cat /etc/ld.so.conf | grep -v "#" | grep -v "include"`
     273        fi
     274
     275        LIBPATHS="$LIBPATHS `echo $LD_LIBRARY_PATH | sed s/':'/' '/g` "
     276        # Mac OS X has a different variable for this:
     277        LIBPATHS="$LIBPATHS `echo $DYLD_LIBRARY_PATH | sed s/':'/' '/g` "
     278
     279        # recurse down just one level, should be enough in most cases
     280        if test -f /etc/ld.so.conf ; then
     281            INCL=`cat /etc/ld.so.conf | grep -v "#" | grep  "^include"`
     282            SRCH=`echo "$INCL" | sed '{ s/^include \//\//; s/^include /\/etc\//}'`
     283            for x in $SRCH ; do
     284                LP_APPEND=`cat $x | grep -v "#" | grep -v "^include"`
     285                LIBPATHS="$LIBPATHS $LP_APPEND"
     286            done
     287        fi
    287288    fi
    288289
    289290    LIBPATHS="`echo $LIBPATHS $sysroot$prefix/$libdir_name $sysroot/$libdir_name $sysroot/usr/$libdir_name $sysroot/usr/local/$libdir_name $sysroot/usr/X11R6/$libdir_name | sed s/'\/ '/' '/g` "
     
    300301has_header()
    301302{
    302303    HPATHS="$sysroot$prefix/include $sysroot/usr/local/include $sysroot/usr/include $sysroot/usr/include/g++-v3 $sysroot/usr/X11R6/include $sysroot/"
    303     INCL=`echo $DYLD_LIBRARY_PATH $LD_LIBRARY_PATH | sed s/':'/' '/g`
    304     HPATHS="$HPATHS `echo $INCL | sed s/$libdir_name/include/g` "
     304    if test "x$sysroot" = "x" ; then
     305        INCL=`echo $DYLD_LIBRARY_PATH $LD_LIBRARY_PATH | sed s/':'/' '/g`
     306        HPATHS="$HPATHS `echo $INCL | sed s/$libdir_name/include/g` "
     307    fi
    305308
    306309    HAS_IT="no"
    307310    for HPATH in $HPATHS ; do
     
    692695        if test "$sdl" = "yes" ; then
    693696            echo "        libvisual      support will be included in MythMusic"
    694697            echo "#define LIBVISUAL_SUPPORT 1" >> ./mythmusic/mythmusic/config.h
    695             echo "INCLUDEPATH += /usr/include/libvisual-0.4" >> ./mythmusic/mythmusic/config.pro
     698            echo "INCLUDEPATH += ${sysroot}/usr/include/libvisual-0.4" >> ./mythmusic/mythmusic/config.pro
    696699            echo "LIBS += -lvisual-0.4" >> ./mythmusic/mythmusic/config.pro
    697700        else
    698701            echo "        libvisual      support will not be included in MythMusic (requires SDL support)"
  • mythflix/mythflix/mythflix.pro

    diff -Naur mythplugins-trunk-22658-old/mythflix/mythflix/mythflix.pro mythplugins-trunk-22658-new/mythflix/mythflix/mythflix.pro
    old new  
    88target.path = $${LIBDIR}/mythtv/plugins
    99INSTALLS += target
    1010
    11 INCLUDEPATH += $${PREFIX}/include/mythtv
     11INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv
    1212
    1313installfiles.path = $${PREFIX}/share/mythtv/mythflix
    1414installfiles.files = netflix-rss.xml
  • mythgallery/mythgallery/mythgallery.pro

    diff -Naur mythplugins-trunk-22658-old/mythgallery/mythgallery/mythgallery.pro mythplugins-trunk-22658-new/mythgallery/mythgallery/mythgallery.pro
    old new  
    1414target.path = $${LIBDIR}/mythtv/plugins
    1515INSTALLS += target
    1616
    17 INCLUDEPATH += $${PREFIX}/include/mythtv
     17INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv
    1818
    1919# Input
    2020HEADERS += iconview.h          singleview.h
  • mythmovies/mythmovies/mythmovies.pro

    diff -Naur mythplugins-trunk-22658-old/mythmovies/mythmovies/mythmovies.pro mythplugins-trunk-22658-new/mythmovies/mythmovies/mythmovies.pro
    old new  
    1010target.path = $${LIBDIR}/mythtv/plugins
    1111INSTALLS += target
    1212
    13 INCLUDEPATH += $${PREFIX}/include/mythtv/libmythui
     13INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythui
    1414
    1515# Input
    1616HEADERS += moviesui.h helperobjects.h moviessettings.h
  • mythnews/mythnews/mythnews.pro

    diff -Naur mythplugins-trunk-22658-old/mythnews/mythnews/mythnews.pro mythplugins-trunk-22658-new/mythnews/mythnews/mythnews.pro
    old new  
    1010target.path = $${LIBDIR}/mythtv/plugins
    1111INSTALLS += target
    1212
    13 INCLUDEPATH += $${PREFIX}/include/mythtv
    14 INCLUDEPATH += $${PREFIX}/include/mythtv/libmythui
    15 INCLUDEPATH += $${PREFIX}/include/mythtv/libmythdb
     13INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv
     14INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythui
     15INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythdb
    1616
    1717installfiles.path = $${PREFIX}/share/mythtv/mythnews
    1818installfiles.files = news-sites.xml
  • mythweather/mythweather/mythweather.pro

    diff -Naur mythplugins-trunk-22658-old/mythweather/mythweather/mythweather.pro mythplugins-trunk-22658-new/mythweather/mythweather/mythweather.pro
    old new  
    1313QMAKE_COPY_DIR = sh ../../cpsvndir
    1414win32:QMAKE_COPY_DIR = sh ../../cpsimple
    1515
    16 INCLUDEPATH += $${PREFIX}/include/mythtv
    17 INCLUDEPATH += $${PREFIX}/include/mythtv/libmythui
     16INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv
     17INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythui
    1818
    1919datafiles.path = $${PREFIX}/share/mythtv/mythweather/
    2020datafiles.files = weather-screens.xml
  • mythzoneminder/mythzoneminder/mythzoneminder.pro

    diff -Naur mythplugins-trunk-22658-old/mythzoneminder/mythzoneminder/mythzoneminder.pro mythplugins-trunk-22658-new/mythzoneminder/mythzoneminder/mythzoneminder.pro
    old new  
    88target.path = $${LIBDIR}/mythtv/plugins
    99INSTALLS += target
    1010
    11 INCLUDEPATH += $${PREFIX}/include/mythtv/libmythui
     11INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythui
    1212
    1313# Input
    1414HEADERS += zmconsole.h zmplayer.h zmevents.h zmliveplayer.h zmdefines.h
  • programs-libs.pro

    diff -Naur mythplugins-trunk-22658-old/programs-libs.pro mythplugins-trunk-22658-new/programs-libs.pro
    old new  
    44INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmyth
    55DEPENDPATH *= $${INCLUDEPATH}
    66
    7 LIBS += -L$${LIBDIR} $$EXTRA_LIBS -lmythdb-$$LIBVERSION
     7LIBS += -L$${SYSROOT}$${LIBDIR} $$EXTRA_LIBS -lmythdb-$$LIBVERSION
    88LIBS += -lmythavutil-$$LIBVERSION -lmythavcodec-$$LIBVERSION
    99LIBS += -lmyth-$$LIBVERSION -lmythui-$$LIBVERSION -lmythupnp-$$LIBVERSION
    1010
  • settings.pro

    diff -Naur mythplugins-trunk-22658-old/settings.pro mythplugins-trunk-22658-new/settings.pro
    old new  
    33LIBVERSION = 0.22
    44
    55INCLUDEPATH += $${SYSROOT}$${PREFIX}/include
    6 #INCLUDEPATH += /usr/include/cdda
    7 #INCLUDEPATH += /usr/include/FLAC
     6#INCLUDEPATH += $${SYSROOT}/usr/include/cdda
     7#INCLUDEPATH += $${SYSROOT}/usr/include/FLAC
    88
    99LIBS *= -L$${SYSROOT}$${PREFIX}/$${LIBDIRNAME}
    1010
  • targetdep.pro

    diff -Naur mythplugins-trunk-22658-old/targetdep.pro mythplugins-trunk-22658-new/targetdep.pro
    old new  
    1010MYTH_LIB_EXT  =$${LIBVERSION}.$${QMAKE_EXTENSION_LIB}
    1111
    1212
    13 DEPLIBS = $${LIBDIR}
     13DEPLIBS = $${SYSROOT}$${LIBDIR}
    1414
    1515# On Windows, dlls were installed with exes:
    16 mingw : DEPLIBS = $${PREFIX}/bin
     16mingw : DEPLIBS = $${SYSROOT}$${PREFIX}/bin
    1717
    1818TARGETDEPS += $${DEPLIBS}/libmyth-$${MYTH_SHLIB_EXT}
    1919TARGETDEPS += $${DEPLIBS}/libmythdb-$${MYTH_SHLIB_EXT}