Ticket #7317: sysroot-2.patch
File sysroot-2.patch, 9.0 KB (added by , 15 years ago) |
---|
-
configure
diff -Naur mythplugins-trunk-22658-old/configure mythplugins-trunk-22658-new/configure
old new 266 266 267 267 has_library() 268 268 { 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 287 288 fi 288 289 289 290 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` " … … 300 301 has_header() 301 302 { 302 303 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 305 308 306 309 HAS_IT="no" 307 310 for HPATH in $HPATHS ; do … … 692 695 if test "$sdl" = "yes" ; then 693 696 echo " libvisual support will be included in MythMusic" 694 697 echo "#define LIBVISUAL_SUPPORT 1" >> ./mythmusic/mythmusic/config.h 695 echo "INCLUDEPATH += /usr/include/libvisual-0.4" >> ./mythmusic/mythmusic/config.pro698 echo "INCLUDEPATH += ${sysroot}/usr/include/libvisual-0.4" >> ./mythmusic/mythmusic/config.pro 696 699 echo "LIBS += -lvisual-0.4" >> ./mythmusic/mythmusic/config.pro 697 700 else 698 701 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 8 8 target.path = $${LIBDIR}/mythtv/plugins 9 9 INSTALLS += target 10 10 11 INCLUDEPATH += $${ PREFIX}/include/mythtv11 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv 12 12 13 13 installfiles.path = $${PREFIX}/share/mythtv/mythflix 14 14 installfiles.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 14 14 target.path = $${LIBDIR}/mythtv/plugins 15 15 INSTALLS += target 16 16 17 INCLUDEPATH += $${ PREFIX}/include/mythtv17 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv 18 18 19 19 # Input 20 20 HEADERS += 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 10 10 target.path = $${LIBDIR}/mythtv/plugins 11 11 INSTALLS += target 12 12 13 INCLUDEPATH += $${ PREFIX}/include/mythtv/libmythui13 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythui 14 14 15 15 # Input 16 16 HEADERS += 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 10 10 target.path = $${LIBDIR}/mythtv/plugins 11 11 INSTALLS += target 12 12 13 INCLUDEPATH += $${ PREFIX}/include/mythtv14 INCLUDEPATH += $${ PREFIX}/include/mythtv/libmythui15 INCLUDEPATH += $${ PREFIX}/include/mythtv/libmythdb13 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv 14 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythui 15 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythdb 16 16 17 17 installfiles.path = $${PREFIX}/share/mythtv/mythnews 18 18 installfiles.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 13 13 QMAKE_COPY_DIR = sh ../../cpsvndir 14 14 win32:QMAKE_COPY_DIR = sh ../../cpsimple 15 15 16 INCLUDEPATH += $${ PREFIX}/include/mythtv17 INCLUDEPATH += $${ PREFIX}/include/mythtv/libmythui16 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv 17 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythui 18 18 19 19 datafiles.path = $${PREFIX}/share/mythtv/mythweather/ 20 20 datafiles.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 8 8 target.path = $${LIBDIR}/mythtv/plugins 9 9 INSTALLS += target 10 10 11 INCLUDEPATH += $${ PREFIX}/include/mythtv/libmythui11 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythui 12 12 13 13 # Input 14 14 HEADERS += 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 4 4 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmyth 5 5 DEPENDPATH *= $${INCLUDEPATH} 6 6 7 LIBS += -L$${ LIBDIR} $$EXTRA_LIBS -lmythdb-$$LIBVERSION7 LIBS += -L$${SYSROOT}$${LIBDIR} $$EXTRA_LIBS -lmythdb-$$LIBVERSION 8 8 LIBS += -lmythavutil-$$LIBVERSION -lmythavcodec-$$LIBVERSION 9 9 LIBS += -lmyth-$$LIBVERSION -lmythui-$$LIBVERSION -lmythupnp-$$LIBVERSION 10 10 -
settings.pro
diff -Naur mythplugins-trunk-22658-old/settings.pro mythplugins-trunk-22658-new/settings.pro
old new 3 3 LIBVERSION = 0.22 4 4 5 5 INCLUDEPATH += $${SYSROOT}$${PREFIX}/include 6 #INCLUDEPATH += /usr/include/cdda7 #INCLUDEPATH += /usr/include/FLAC6 #INCLUDEPATH += $${SYSROOT}/usr/include/cdda 7 #INCLUDEPATH += $${SYSROOT}/usr/include/FLAC 8 8 9 9 LIBS *= -L$${SYSROOT}$${PREFIX}/$${LIBDIRNAME} 10 10 -
targetdep.pro
diff -Naur mythplugins-trunk-22658-old/targetdep.pro mythplugins-trunk-22658-new/targetdep.pro
old new 10 10 MYTH_LIB_EXT =$${LIBVERSION}.$${QMAKE_EXTENSION_LIB} 11 11 12 12 13 DEPLIBS = $${ LIBDIR}13 DEPLIBS = $${SYSROOT}$${LIBDIR} 14 14 15 15 # On Windows, dlls were installed with exes: 16 mingw : DEPLIBS = $${ PREFIX}/bin16 mingw : DEPLIBS = $${SYSROOT}$${PREFIX}/bin 17 17 18 18 TARGETDEPS += $${DEPLIBS}/libmyth-$${MYTH_SHLIB_EXT} 19 19 TARGETDEPS += $${DEPLIBS}/libmythdb-$${MYTH_SHLIB_EXT}