[oe-commits] Frans Meulenbroeks : mythtv: added staging

git version control git at git.openembedded.org
Wed Nov 4 10:48:23 UTC 2009


Module: openembedded.git
Branch: martin_jansa/xorg-7.5
Commit: bdc1df73305bc2213a065c43f9c215fdf310e794
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bdc1df73305bc2213a065c43f9c215fdf310e794

Author: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
Date:   Sat Oct 31 14:51:55 2009 +0100

mythtv: added staging

---

 recipes/mythtv/mythtv_0.22rc1.bb |   38 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/recipes/mythtv/mythtv_0.22rc1.bb b/recipes/mythtv/mythtv_0.22rc1.bb
index b7cadb3..8e95d0d 100644
--- a/recipes/mythtv/mythtv_0.22rc1.bb
+++ b/recipes/mythtv/mythtv_0.22rc1.bb
@@ -5,7 +5,7 @@ inherit qmake2 qt4x11
 DEFAULT_PREFERENCE = "-1"
 
 PV = "0.21+0.22rc1"
-PR = "r2"
+PR = "r3"
 REALPV = "0.22"
 
 SRC_URI = "ftp://ftp.osuosl.org/pub/mythtv/mythtv-0.22rc1.tar.bz2"
@@ -51,8 +51,8 @@ EXTRA_OECONF = " \
         --cross-prefix=${TARGET_PREFIX} \
         --sysroot=${STAGING_DIR_HOST} \
         --prefix=${prefix} \
+	--arch=${TARGET_ARCH} \
         \
-        --arch=${TARGET_ARCH} \
         --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
         --extra-cxxflags="${TARGET_CXXFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
         --extra-ldflags="${TARGET_LDFLAGS}" \
@@ -87,3 +87,37 @@ python populate_packages_prepend () {
 
 	bb.data.setVar("RDEPENDS_${PN}", "%s %s" % (bb.data.getVar("RDEPENDS_${PN}", d), " ".join(new_packages)), d)
 }
+
+do_stage() {
+        install -d ${STAGING_INCDIR}
+        install -d ${STAGING_INCDIR}/${PN}
+        install -d ${STAGING_INCDIR}/${PN}/dvdnav
+        install -d ${STAGING_INCDIR}/${PN}/dvdread
+        install -d ${STAGING_INCDIR}/${PN}/libavcodec
+        install -d ${STAGING_INCDIR}/${PN}/libavformat
+        install -d ${STAGING_INCDIR}/${PN}/libavutil
+        install -d ${STAGING_INCDIR}/${PN}/libmyth
+        install -d ${STAGING_INCDIR}/${PN}/libmythdb
+        install -d ${STAGING_INCDIR}/${PN}/libmythui
+        install -d ${STAGING_INCDIR}/${PN}/libswscale
+        install -d ${STAGING_INCDIR}/${PN}/mpeg2dec
+        install -d ${STAGING_INCDIR}/${PN}/upnp
+	install -m 0644 ${D}/${includedir}/${PN}/*.h ${STAGING_INCDIR}/${PN}
+	install -m 0644 ${D}/${includedir}/${PN}/mythconfig.mak ${STAGING_INCDIR}/${PN}
+	install -m 0644 ${D}/${includedir}/${PN}/dvdnav/*.h ${STAGING_INCDIR}/${PN}/dvdnav
+	install -m 0644 ${D}/${includedir}/${PN}/dvdread/*.h ${STAGING_INCDIR}/${PN}/dvdread
+	install -m 0644 ${D}/${includedir}/${PN}/libavcodec/*.h ${STAGING_INCDIR}/${PN}/libavcodec
+	install -m 0644 ${D}/${includedir}/${PN}/libavformat/*.h ${STAGING_INCDIR}/${PN}/libavformat
+	install -m 0644 ${D}/${includedir}/${PN}/libavutil/*.h ${STAGING_INCDIR}/${PN}/libavutil
+	install -m 0644 ${D}/${includedir}/${PN}/libmyth/*.h ${STAGING_INCDIR}/${PN}/libmyth
+	install -m 0644 ${D}/${includedir}/${PN}/libmythdb/*.h ${STAGING_INCDIR}/${PN}/libmythdb
+	install -m 0644 ${D}/${includedir}/${PN}/libmythui/*.h ${STAGING_INCDIR}/${PN}/libmythui
+	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
+	chmod -R ugo+r ${STAGING_LIBDIR}
+}





More information about the Openembedded-commits mailing list