Ticket #7317: sysroot.patch
File sysroot.patch, 10.8 KB (added by , 15 years ago) |
---|
-
mythplugins/programs-libs.pro
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 -
mythplugins/configure
266 266 267 267 has_library() 268 268 { 269 if test -f /etc/ld.so.conf ; then270 LIBPATHS=`cat /etc/ld.so.conf | grep -v "#" | grep -v "include"`271 else272 LIBPATHS=''273 fi269 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 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` "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 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 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 … … 689 692 if test "$sdl" = "yes" ; then 690 693 echo " libvisual support will be included in MythMusic" 691 694 echo "#define LIBVISUAL_SUPPORT 1" >> ./mythmusic/mythmusic/config.h 692 echo "INCLUDEPATH += /usr/include/libvisual-0.4" >> ./mythmusic/mythmusic/config.pro695 echo "INCLUDEPATH += ${sysroot}/usr/include/libvisual-0.4" >> ./mythmusic/mythmusic/config.pro 693 696 echo "LIBS += -lvisual-0.4" >> ./mythmusic/mythmusic/config.pro 694 697 else 695 698 echo " libvisual support will not be included in MythMusic (requires SDL support)" -
mythplugins/settings.pro
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 -
mythplugins/mythgallery/mythgallery/mythgallery.pro
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 -
mythplugins/mythweather/mythweather/mythweather.pro
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 -
mythplugins/mythflix/mythflix/mythflix.pro
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 -
mythplugins/mythmovies/mythmovies/mythmovies.pro
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 -
mythplugins/mythzoneminder/mythzoneminder/mythzoneminder.pro
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 -
mythplugins/mythnews/mythnews/mythnews.pro
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 -
mythplugins/targetdep.pro
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} -
mythtv/configure
919 919 #deprecated, use check_lib or check_lib2 instead 920 920 has_library() 921 921 { 922 if test -f /etc/ld.so.conf ; then 923 LIBPATHS=`cat /etc/ld.so.conf | grep -v "#" | grep -v "include"` 924 else 925 LIBPATHS='' 926 fi 922 LIBPATHS='' 923 if test "x${sysroot}" = "x" ; then 924 if test -f /etc/ld.so.conf ; then 925 LIBPATHS=`cat /etc/ld.so.conf | grep -v "#" | grep -v "include"` 926 fi 927 LIBPATHS="$LIBPATHS `echo $LD_LIBRARY_PATH | sed s/':'/' '/g` " 928 # Mac OS X has a different variable for this: 929 LIBPATHS="$LIBPATHS `echo $DYLD_LIBRARY_PATH | sed s/':'/' '/g` " 927 930 928 LIBPATHS="$LIBPATHS `echo $LD_LIBRARY_PATH | sed s/':'/' '/g` " 929 # Mac OS X has a different variable for this: 930 LIBPATHS="$LIBPATHS `echo $DYLD_LIBRARY_PATH | sed s/':'/' '/g` " 931 932 # recurse down just one level, should be enough in most cases 933 if test -f /etc/ld.so.conf ; then 934 INCL=`cat /etc/ld.so.conf | grep -v "#" | grep "^include"` 935 SRCH=`echo "$INCL" | sed '{ s/^include \//\//; s/^include /\/etc\//}'` 936 for x in $SRCH ; do 937 LP_APPEND=`cat $x | grep -v "#" | grep -v "^include"` 938 LIBPATHS="$LIBPATHS $LP_APPEND" 939 done 931 # recurse down just one level, should be enough in most cases 932 if test -f /etc/ld.so.conf ; then 933 INCL=`cat /etc/ld.so.conf | grep -v "#" | grep "^include"` 934 SRCH=`echo "$INCL" | sed '{ s/^include \//\//; s/^include /\/etc\//}'` 935 for x in $SRCH ; do 936 LP_APPEND=`cat $x | grep -v "#" | grep -v "^include"` 937 LIBPATHS="$LIBPATHS $LP_APPEND" 938 done 939 fi 940 940 fi 941 941 942 LIBPATHS="`echo $LIBPATHS /$libdir_name /usr/$libdir_name /usr/local/$libdir_name/usr/X11R6/$libdir_name | sed s/'\/ '/' '/g` "942 LIBPATHS="`echo $LIBPATHS $sysroot/$libdir_name $sysroot/usr/$libdir_name $sysroot/usr/local/$libdir_name $sysroot/usr/X11R6/$libdir_name | sed s/'\/ '/' '/g` " 943 943 944 944 HAS_IT="no" 945 945 for LIBPATH in $LIBPATHS ; do … … 4252 4252 # -L from early in the link line, to ignore any old installed libmyth* 4253 4253 # Note: Qt uses QMAKE_INCDIR_QT to build an absolute path for include 4254 4254 # directories, it cannot be modified. 4255 QMAKE_LIBDIR_QT -= $ libdir4256 LATE_LIBS += -L$ libdir4255 QMAKE_LIBDIR_QT -= ${sysroot}${libdir} 4256 LATE_LIBS += -L${sysroot}${libdir} 4257 4257 EOF 4258 4258 4259 4259 diff $TMPH $MYTH_CONFIG_H >/dev/null 2>&1