[oe-commits] Michael 'Mickey' Lauer : gst-plugins-ugly: skip package for ENTERPRISE_DISTRO = 1

GIT User account git at amethyst.openembedded.net
Mon Nov 17 23:47:39 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 18951738599540f7c53b7af8b3059f302bfc351d
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=18951738599540f7c53b7af8b3059f302bfc351d

Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Tue Nov 18 00:46:34 2008 +0100

gst-plugins-ugly: skip package for ENTERPRISE_DISTRO = 1
gst-plugins-ugly-sid: skip package for ENTERPRISE_DISTRO = 0

---

 packages/gstreamer/gst-plugins-ugly-sid_0.10.7.bb  |    8 ++++++++
 .../gstreamer/gst-plugins-ugly/cross-compile.patch |   16 ----------------
 packages/gstreamer/gst-plugins-ugly_0.10.7.bb      |   11 +++++++++--
 3 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/packages/gstreamer/gst-plugins-ugly-sid_0.10.7.bb b/packages/gstreamer/gst-plugins-ugly-sid_0.10.7.bb
index 950b7f5..573fbd6 100644
--- a/packages/gstreamer/gst-plugins-ugly-sid_0.10.7.bb
+++ b/packages/gstreamer/gst-plugins-ugly-sid_0.10.7.bb
@@ -7,3 +7,11 @@ SRC_URI = "\
   file://gstsid_autofoo_HACK.patch;patch=1 \
 "
 S = "${WORKDIR}/gst-plugins-ugly-${PV}"
+
+python() {
+	# Don't build, if we are building an ENTERPRISE distro
+	enterprise = bb.data.getVar("ENTERPRISE_DISTRO", d, 1)
+	if enterprise == "0":
+		raise bb.parse.SkipPackage("gst-plugins-ugly-sid will only build if ENTERPRISE_DISTRO != 0")
+}
+
diff --git a/packages/gstreamer/gst-plugins-ugly/cross-compile.patch b/packages/gstreamer/gst-plugins-ugly/cross-compile.patch
deleted file mode 100644
index 41c412d..0000000
--- a/packages/gstreamer/gst-plugins-ugly/cross-compile.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-
-#
-# Patch managed by http://www.holgerschurig.de/patcher.html
-#
-
---- gst-plugins-ugly-0.10.4/configure.ac~cross-compile
-+++ gst-plugins-ugly-0.10.4/configure.ac
-@@ -282,7 +282,7 @@
-     LAME_LIBS="-lmp3lame -lm"
-     dnl is lame presets available
-     LAME_CFLAGS=""
--    AC_TRY_RUN([
-+    AC_TRY_COMPILE([
- #include <lame/lame.h>
- int main (int argc, char *argv[])
- {
diff --git a/packages/gstreamer/gst-plugins-ugly_0.10.7.bb b/packages/gstreamer/gst-plugins-ugly_0.10.7.bb
index fd008b0..054f0df 100644
--- a/packages/gstreamer/gst-plugins-ugly_0.10.7.bb
+++ b/packages/gstreamer/gst-plugins-ugly_0.10.7.bb
@@ -1,10 +1,17 @@
 require gst-plugins.inc
-PR = "r0"
+PR = "r1"
 
 DEPENDS += "gst-plugins-base mpeg2dec libsidplay"
 
 SRC_URI += "\
-#  file://cross-compile.patch;patch=1 \
   file://gstmad_16bit.patch;patch=1 \
   file://gstsid_autofoo_HACK.patch;patch=1 \
 "
+
+python() {
+	# Don't build, if we are building an ENTERPRISE distro
+	enterprise = bb.data.getVar("ENTERPRISE_DISTRO", d, 1)
+	if enterprise == "1":
+		raise bb.parse.SkipPackage("gst-plugins-ugly will only build if ENTERPRISE_DISTRO != 1")
+}
+





More information about the Openembedded-commits mailing list