[oe-commits] org.oe.dev mythtv: unified, need testing

hrw commit openembedded-commits at lists.openembedded.org
Thu Jan 25 17:52:05 UTC 2007


mythtv: unified, need testing

Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: e84fca35ae56118965454918c46d369e41591366
ViewMTN: http://monotone.openembedded.org/revision.psp?id=e84fca35ae56118965454918c46d369e41591366
Files:
1
packages/mythtv/mythtv.inc
packages/mythtv/mythtv_0.18.1.bb
packages/mythtv/mythtv_0.20.bb
Diffs:

#
# mt diff -rde7f242d3127fcf4d604bbb7402765ce361579ff -re84fca35ae56118965454918c46d369e41591366
#
# 
# 
# add_file "packages/mythtv/mythtv.inc"
#  content [8018345c29d1b148d50191a1778ff38d9acf1886]
# 
# patch "packages/mythtv/mythtv_0.18.1.bb"
#  from [fb9dd21b67bf9a5070259bef055a5bda1f13163a]
#    to [9be2c80d0a535cb66ddb00c646649dbc5390ab7f]
# 
# patch "packages/mythtv/mythtv_0.20.bb"
#  from [3349c511fae2bc8c08dd03cce30d1906b4bb0936]
#    to [f4c497560d89ece714fd55761cc10b1fd8598565]
# 
============================================================
--- packages/mythtv/mythtv.inc	8018345c29d1b148d50191a1778ff38d9acf1886
+++ packages/mythtv/mythtv.inc	8018345c29d1b148d50191a1778ff38d9acf1886
@@ -0,0 +1,32 @@
+DESCRIPTION = "A full featured personal video recorder system."
+HOMEPAGE = "http://www.mythtv.org"
+LICENSE = "GPL"
+SECTION = "x11/multimedia"
+DEPENDS = "libxinerama lame libxv libxxf86vm libxvmc lirc qt-x11-free"
+RDEPENDS_${PN} = "qt-x11-plugins-sqldrivers qt-x11-plugins-imageformats"
+
+SRC_URI = "http://www.mythtv.org/mc/mythtv-${PV}.tar.bz2"
+
+inherit qmake qt3x11
+
+# there is a -march=586 somewhere in the source tree
+COMPATIBLE_HOST = 'i.86.*-linux'
+
+QMAKE_PROFILES = "mythtv.pro"
+
+def mythtv_arch(d):
+        import bb, re
+        arch = bb.data.getVar('TARGET_ARCH', d, 1)
+        if re.match("^i.86$", arch):
+                arch = "x86"
+        elif arch == "x86_64":
+                arch = "x86"
+        elif arch == "arm":
+                arch = "armv4l"
+        return arch
+
+MYTHTV_ARCH := "${@mythtv_arch(d)}"
+
+do_install() {
+	oe_runmake INSTALL_ROOT=${D} install
+}
============================================================
--- packages/mythtv/mythtv_0.18.1.bb	fb9dd21b67bf9a5070259bef055a5bda1f13163a
+++ packages/mythtv/mythtv_0.18.1.bb	9be2c80d0a535cb66ddb00c646649dbc5390ab7f
@@ -1,35 +1,11 @@
-DESCRIPTION = "A full featured personal video recorder system."
-HOMEPAGE = "http://www.mythtv.org"
-LICENSE = "GPL"
-SECTION = "x11/multimedia"
-DEPENDS = "libxinerama lame libxv libxxf86vm libxvmc lirc qt-x11-free"
-RDEPENDS = "qt-x11-plugins-sqldrivers qt-x11-plugins-imageformats"
-PR = "r1"
+require mythtv.inc
 
-SRC_URI = "http://www.mythtv.org/mc/mythtv-${PV}.tar.bz2 \
-	file://msmpeg-underscore-pic.patch;patch=1 \
-	file://settings.pro"
+PR = "r1"
 
-inherit qmake qt3x11
+SRC_URI += "file://msmpeg-underscore-pic.patch;patch=1 \
+	    file://settings.pro"
 
-# there is a -march=586 somewhere in the source tree
-COMPATIBLE_HOST = 'i.86.*-linux'
 
-QMAKE_PROFILES = "mythtv.pro"
-
-def mythtv_arch(d):
-        import bb, re
-        arch = bb.data.getVar('TARGET_ARCH', d, 1)
-        if re.match("^i.86$", arch):
-                arch = "x86"
-        elif arch == "x86_64":
-                arch = "x86"
-        elif arch == "arm":
-                arch = "armv4l"
-        return arch
-
-MYTHTV_ARCH := "${@mythtv_arch(d)}"
-
 do_configure_prepend() {
 # it's not autotools anyway, so we call ./configure directly
 	find . -name "Makefile"|xargs rm -f
@@ -70,8 +46,3 @@ do_configure_prepend() {
 	sed 's!PREFIX =.*!PREFIX = ${prefix}!' < settings.pro > settings.pro.new
 	mv settings.pro.new settings.pro
 }
-
-do_install() {
-	oe_runmake INSTALL_ROOT=${D} install
-}
-
============================================================
--- packages/mythtv/mythtv_0.20.bb	3349c511fae2bc8c08dd03cce30d1906b4bb0936
+++ packages/mythtv/mythtv_0.20.bb	f4c497560d89ece714fd55761cc10b1fd8598565
@@ -1,22 +1,14 @@
-DESCRIPTION = "A full featured personal video recorder system."
-HOMEPAGE = "http://www.mythtv.org"
-LICENSE = "GPL"
-SECTION = "x11/multimedia"
-DEPENDS = "libxinerama lame libxv libxxf86vm libxvmc lirc qt-x11-free openchrome"
+require mythtv.inc
+
+DEPENDS += "openchrome"
 PR = "r0"
 
-SRC_URI = "http://www.mythtv.org/mc/mythtv-${PV}.tar.bz2 \
-	file://configure.patch;patch=1 \
-	file://libmyth-libdir.patch;patch=1"
+SRC_URI += "file://configure.patch;patch=1 \
+            file://libmyth-libdir.patch;patch=1"
 
 # Seen on the mythtv web page:
 # http://www.mythtv.org/mc/fix-mythweb-in-0.20.diff;patch=1
 
-inherit qmake qt3x11
-
-# there is a -march=586 somewhere in the source tree
-COMPATIBLE_HOST = 'i.86.*-linux'
-
 QMAKE_PROFILES = "mythtv.pro"
 
 mythlibs = "mythavutil mythavcodec mythavformat myth mythtv mythui mythfreemheg mythupnp mythlivemedia"
@@ -47,20 +39,6 @@ python __anonymous () {
 
     bb.data.setVar("PACKAGES", packages, d)
 }
-
-def mythtv_arch(d):
-        import bb, re
-        arch = bb.data.getVar('TARGET_ARCH', d, 1)
-        if re.match("^i.86$", arch):
-                arch = "x86"
-        elif arch == "x86_64":
-                arch = "x86"
-        elif arch == "arm":
-                arch = "armv4l"
-        return arch
-
-MYTHTV_ARCH := "${@mythtv_arch(d)}"
-
 do_configure_prepend() {
 # it's not autotools anyway, so we call ./configure directly
 	find . -name "Makefile"|xargs rm -f
@@ -81,10 +59,6 @@ do_configure_prepend() {
 	mv settings.pro.new settings.pro
 }
 
-do_install() {
-	oe_runmake INSTALL_ROOT=${D} install
-}
-
 python populate_packages_prepend () {
 	new_packages = []
 






More information about the Openembedded-commits mailing list