Patchwork [2/3] libomxil-bellagio: create and use recipe include file (INC file)

login
register
mail settings
Submitter Paul Menzel
Date Jan. 16, 2011, 11:36 p.m.
Message ID <1295220990.13967.18.camel@mattotaupa>
Download mbox | patch
Permalink /patch/296/
State Accepted
Headers show

Comments

Paul Menzel - Jan. 16, 2011, 11:36 p.m.
Date: Sun, 16 Jan 2011 23:42:50 +0100

Create a recipe include file. The only difference now is, that the following version also include `PARALLEL_MAKE = ""`.

• 0.9.0
• 0.9.1

[1] http://wiki.openembedded.org/index.php/Styleguide#PR_variables_with_recipes_that_use_INC_files

Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
---
 recipes/openmax/libomxil-bellagio.inc        |   16 ++++++++++++++++
 recipes/openmax/libomxil-bellagio_0.9.0.bb   |   14 ++------------
 recipes/openmax/libomxil-bellagio_0.9.1.bb   |   14 ++------------
 recipes/openmax/libomxil-bellagio_0.9.2.1.bb |   17 +++--------------
 recipes/openmax/libomxil-bellagio_0.9.2.bb   |   16 ++--------------
 5 files changed, 25 insertions(+), 52 deletions(-)
 create mode 100644 recipes/openmax/libomxil-bellagio.inc

Patch

diff --git a/recipes/openmax/libomxil-bellagio.inc b/recipes/openmax/libomxil-bellagio.inc
new file mode 100644
index 0000000..8c3a82c
--- /dev/null
+++ b/recipes/openmax/libomxil-bellagio.inc
@@ -0,0 +1,16 @@ 
+DESCRIPTION = "OpenMAX Integration Layer (IL) is a standard API to access Multimedia Components on mobile platforms. It has been defined by the Khronos group."
+LICENSE = "LGPLv2"
+DEPENDS = "alsa-lib ffmpeg \
+           ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad', d)}"
+
+INC_PR = "r7"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/omxil/${PN}-${PV}.tar.gz"
+
+inherit autotools
+
+FILES_${PN} += "${libdir}/bellagio/*.so ${libdir}/bellagio/*.la"
+FILES_${PN}-dev += "${libdir}/bellagio/*.a"
+FILES_${PN}-dbg += "${libdir}/bellagio/.debug"
+
+PARALLEL_MAKE = ""
diff --git a/recipes/openmax/libomxil-bellagio_0.9.0.bb b/recipes/openmax/libomxil-bellagio_0.9.0.bb
index aa78d6f..70a0583 100644
--- a/recipes/openmax/libomxil-bellagio_0.9.0.bb
+++ b/recipes/openmax/libomxil-bellagio_0.9.0.bb
@@ -1,16 +1,6 @@ 
-DESCRIPTION = "OpenMAX Integration Layer (IL) is a standard API to access Multimedia Components on mobile platforms. It has been defined by the Khronos group."
-LICENSE = "LGPLv2"
-DEPENDS = "alsa-lib ffmpeg \
-           ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad', d)}"
+require ${PN}.inc
 
-PR = "r7"
+PR = "${INC_PR}.0"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/omxil/${PN}-${PV}.tar.gz"
 SRC_URI[md5sum] = "6d6b6a75bc8751a7421b5e739c53ef6e"
 SRC_URI[sha256sum] = "07128710a699b453dcd7b92e33f2aa8dcbbfe0a657d33040803cdaf0997e442c"
-
-inherit autotools
-
-FILES_${PN} += "${libdir}/bellagio/*.so ${libdir}/bellagio/*.la"
-FILES_${PN}-dev += "${libdir}/bellagio/*.a"
-FILES_${PN}-dbg += "${libdir}/bellagio/.debug"
diff --git a/recipes/openmax/libomxil-bellagio_0.9.1.bb b/recipes/openmax/libomxil-bellagio_0.9.1.bb
index 958ac26..e738a9d 100644
--- a/recipes/openmax/libomxil-bellagio_0.9.1.bb
+++ b/recipes/openmax/libomxil-bellagio_0.9.1.bb
@@ -1,16 +1,6 @@ 
-DESCRIPTION = "OpenMAX Integration Layer (IL) is a standard API to access Multimedia Components on mobile platforms. It has been defined by the Khronos group."
-LICENSE = "LGPLv2"
-DEPENDS = "alsa-lib ffmpeg \
-           ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad', d)}"
+require ${PN}.inc
 
-PR = "r1"
+PR = "${INC_PR}.0"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/omxil/${PN}-${PV}.tar.gz"
 SRC_URI[md5sum] = "757371e21e4f3653ce4d12d3ba0be1e0"
 SRC_URI[sha256sum] = "9a0864cd442c43e5b69072dc0617b56252bc933fce26f6bfd6d47909287a353a"
-
-inherit autotools
-
-FILES_${PN} += "${libdir}/bellagio/*.so ${libdir}/bellagio/*.la"
-FILES_${PN}-dev += "${libdir}/bellagio/*.a"
-FILES_${PN}-dbg += "${libdir}/bellagio/.debug"
diff --git a/recipes/openmax/libomxil-bellagio_0.9.2.1.bb b/recipes/openmax/libomxil-bellagio_0.9.2.1.bb
index 7f74b6f..f21c731 100644
--- a/recipes/openmax/libomxil-bellagio_0.9.2.1.bb
+++ b/recipes/openmax/libomxil-bellagio_0.9.2.1.bb
@@ -1,17 +1,6 @@ 
-DESCRIPTION = "OpenMAX Integration Layer (IL) is a standard API to access Multimedia Components on mobile platforms. It has been defined by the Khronos group."
-LICENSE = "LGPLv2"
-DEPENDS = "alsa-lib ffmpeg \
-           ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad', d)}"
+require ${PN}.inc
+
+PR = "${INC_PR}.0"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/omxil/${PN}-${PV}.tar.gz"
 SRC_URI[md5sum] = "323049db668ab260870fd7ecd2ec4156"
 SRC_URI[sha256sum] = "75cf8d3b5cac2764420ae2cc7846b9bb12a47d2ca04c96e5821309b0124ddc72"
-
-inherit autotools
-
-FILES_${PN} += "${libdir}/bellagio/*.so ${libdir}/bellagio/*.la"
-FILES_${PN}-dev += "${libdir}/bellagio/*.a"
-FILES_${PN}-dbg += "${libdir}/bellagio/.debug"
-
-PARALLEL_MAKE = ""
-
diff --git a/recipes/openmax/libomxil-bellagio_0.9.2.bb b/recipes/openmax/libomxil-bellagio_0.9.2.bb
index ff30c10..98876ea 100644
--- a/recipes/openmax/libomxil-bellagio_0.9.2.bb
+++ b/recipes/openmax/libomxil-bellagio_0.9.2.bb
@@ -1,18 +1,6 @@ 
-DESCRIPTION = "OpenMAX Integration Layer (IL) is a standard API to access Multimedia Components on mobile platforms. It has been defined by the Khronos group."
-LICENSE = "LGPLv2"
-DEPENDS = "alsa-lib ffmpeg \
-           ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad', d)}"
+require ${PN}.inc
 
-PR = "r1"
+PR = "${INC_PR}.0"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/omxil/${PN}-${PV}.tar.gz"
 SRC_URI[md5sum] = "42ab7383c4ca4093000ec7062289112b"
 SRC_URI[sha256sum] = "dc5d3cf256390d5419ea7dc3fc35761999a1da99fa4b645ac3e92a6a279c38fc"
-
-inherit autotools
-
-FILES_${PN} += "${libdir}/bellagio/*.so ${libdir}/bellagio/*.la"
-FILES_${PN}-dev += "${libdir}/bellagio/*.a"
-FILES_${PN}-dbg += "${libdir}/bellagio/.debug"
-
-PARALLEL_MAKE = ""