Skip to contentSkip to conversation

libproxy: Allow to build in non-gplv3 configuration

PATCH New Richard Purdie 1 participant 1 message Apr 17, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libproxy: Allow to build in non-gplv3 configuration

---

meta/recipes-support/libproxy/libproxy_0.4.7.bb +6 -0
index 2cb8ed3..11b2abf 100644
@@ -29,3 +29,9 @@ do_configure_prepend() {
 	export HOST_SYS=${HOST_SYS}
 	export BUILD_SYS=${BUILD_SYS}
 }
+
+python() {
+    if (d.getVar("INCOMPATIBLE_LICENSE", True) or "").find("GPLv3") != -1:
+        d.setVar("EXTRA_OECMAKE", d.getVar("EXTRA_OECMAKE").replace("-DWITH_GNOME=yes", "-DWITH_GNOME=no"))
+        d.setVar("DEPENDS", " ".join(i for i in d.getVar("DEPENDS").split() if i != "gconf"))
+}