[oe-commits] Frans Meulenbroeks : mythtv: updated staging, fixed configure; renamed recipe

git version control git at git.openembedded.org
Tue Nov 3 11:44:58 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: 2d365ab53b5497bafeb5893912746fdb15cdf88b
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2d365ab53b5497bafeb5893912746fdb15cdf88b

Author: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
Date:   Sun Nov  1 16:38:21 2009 +0100

mythtv: updated staging, fixed configure; renamed recipe

---

 recipes/mythtv/mythtv-0.21+0.22rc1/configure.patch |   61 ++++++++++++++++++++
 .../{mythtv_0.22rc1.bb => mythtv_0.21+0.22rc1.bb}  |    7 +-
 2 files changed, 65 insertions(+), 3 deletions(-)

diff --git a/recipes/mythtv/mythtv-0.21+0.22rc1/configure.patch b/recipes/mythtv/mythtv-0.21+0.22rc1/configure.patch
new file mode 100644
index 0000000..748c88d
--- /dev/null
+++ b/recipes/mythtv/mythtv-0.21+0.22rc1/configure.patch
@@ -0,0 +1,61 @@
+Index: mythtv/configure
+===================================================================
+--- mythtv/configure	(revision 22430)
++++ mythtv/configure	(working copy)
+@@ -919,27 +919,27 @@
+ #deprecated, use check_lib or check_lib2 instead
+ has_library()
+ {
+-    if test -f /etc/ld.so.conf ; then
+-        LIBPATHS=`cat /etc/ld.so.conf | grep -v "#" | grep -v "include"`
+-    else
+-        LIBPATHS=''
+-    fi
++    LIBPATHS=''
++    if test "x${sysroot}" = "x" ; then
++        if test -f /etc/ld.so.conf ; then
++            LIBPATHS=`cat /etc/ld.so.conf | grep -v "#" | grep -v "include"`
++        fi
++        LIBPATHS="$LIBPATHS `echo $LD_LIBRARY_PATH | sed s/':'/' '/g` "
++        # Mac OS X has a different variable for this:
++        LIBPATHS="$LIBPATHS `echo $DYLD_LIBRARY_PATH | sed s/':'/' '/g` "
+ 
+-    LIBPATHS="$LIBPATHS `echo $LD_LIBRARY_PATH | sed s/':'/' '/g` "
+-    # Mac OS X has a different variable for this:
+-    LIBPATHS="$LIBPATHS `echo $DYLD_LIBRARY_PATH | sed s/':'/' '/g` "
+-
+-    # recurse down just one level, should be enough in most cases
+-    if test -f /etc/ld.so.conf ; then
+-        INCL=`cat /etc/ld.so.conf | grep -v "#" | grep  "^include"`
+-        SRCH=`echo "$INCL" | sed '{ s/^include \//\//; s/^include /\/etc\//}'`
+-        for x in $SRCH ; do
+-            LP_APPEND=`cat $x | grep -v "#" | grep -v "^include"`
+-            LIBPATHS="$LIBPATHS $LP_APPEND"
+-        done
++        # recurse down just one level, should be enough in most cases
++        if test -f /etc/ld.so.conf ; then
++            INCL=`cat /etc/ld.so.conf | grep -v "#" | grep  "^include"`
++            SRCH=`echo "$INCL" | sed '{ s/^include \//\//; s/^include /\/etc\//}'`
++            for x in $SRCH ; do
++                LP_APPEND=`cat $x | grep -v "#" | grep -v "^include"`
++                LIBPATHS="$LIBPATHS $LP_APPEND"
++            done
++        fi
+     fi
+ 
+-    LIBPATHS="`echo $LIBPATHS /$libdir_name /usr/$libdir_name /usr/local/$libdir_name /usr/X11R6/$libdir_name | sed s/'\/ '/' '/g` "
++    LIBPATHS="`echo $LIBPATHS $sysroot/$libdir_name $sysroot/usr/$libdir_name $sysroot/usr/local/$libdir_name $sysroot/usr/X11R6/$libdir_name | sed s/'\/ '/' '/g` "
+ 
+     HAS_IT="no"
+     for LIBPATH in $LIBPATHS ; do
+@@ -4252,8 +4252,8 @@
+ #       -L from early in the link line, to ignore any old installed libmyth*
+ # Note: Qt uses QMAKE_INCDIR_QT to build an absolute path for include
+ #       directories, it cannot be modified.
+-QMAKE_LIBDIR_QT -= $libdir
+-LATE_LIBS            += -L$libdir
++QMAKE_LIBDIR_QT -= ${sysroot}${libdir}
++LATE_LIBS            += -L${sysroot}${libdir}
+ EOF
+ 
+ diff $TMPH $MYTH_CONFIG_H >/dev/null 2>&1
diff --git a/recipes/mythtv/mythtv_0.22rc1.bb b/recipes/mythtv/mythtv_0.21+0.22rc1.bb
similarity index 97%
rename from recipes/mythtv/mythtv_0.22rc1.bb
rename to recipes/mythtv/mythtv_0.21+0.22rc1.bb
index 8e95d0d..95f04e5 100644
--- a/recipes/mythtv/mythtv_0.22rc1.bb
+++ b/recipes/mythtv/mythtv_0.21+0.22rc1.bb
@@ -5,10 +5,12 @@ inherit qmake2 qt4x11
 DEFAULT_PREFERENCE = "-1"
 
 PV = "0.21+0.22rc1"
-PR = "r3"
+PR = "r4"
 REALPV = "0.22"
 
-SRC_URI = "ftp://ftp.osuosl.org/pub/mythtv/mythtv-0.22rc1.tar.bz2"
+SRC_URI = "ftp://ftp.osuosl.org/pub/mythtv/mythtv-0.22rc1.tar.bz2 \
+	file://configure.patch;patch=1 \
+	"
 
 S = "${WORKDIR}/mythtv-0.22rc1"
 
@@ -115,7 +117,6 @@ do_stage() {
 	install -m 0644 ${D}/${includedir}/${PN}/libswscale/*.h ${STAGING_INCDIR}/${PN}/libswscale
 	install -m 0644 ${D}/${includedir}/${PN}/mpeg2dec/*.h ${STAGING_INCDIR}/${PN}/mpeg2dec
 	install -m 0644 ${D}/${includedir}/${PN}/upnp/*.h ${STAGING_INCDIR}/${PN}/upnp
-	sed -i 's:LIBDIR=/usr/lib:LIBDIR=${STAGING_LIBDIR}:' ${STAGING_INCDIR}/${PN}/mythconfig.mak
 	# next part may need to be done better
 	cp -R ${D}/${libdir}/* ${STAGING_LIBDIR}
 	# ugly chmod ahead





More information about the Openembedded-commits mailing list