summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2015-04-07 14:05:59 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2015-04-07 14:06:01 +0000
commit3b4634466edd77b572af1a27ff6bdb2063ca3eab (patch)
tree78987b794e04742a78d5662604f5682932b0c7ab
parent7a8fc12c47eb4dd404aa13cbd3fa7c74c9fa4285 (diff)
downloaddefinitions-3b4634466edd77b572af1a27ff6bdb2063ca3eab.tar.gz
Add automotive message broker
It is using repos on gnome.org and freedesktop until the projects are lorried. It also does not configure AMB to do anything in particular.
-rw-r--r--strata/genivi-demo-platform.morph32
-rw-r--r--strata/genivi-demo-platform/automotive-message-broker.morph23
-rw-r--r--strata/genivi-demo-platform/pygobject.morph8
-rw-r--r--strata/genivi-demo-platform/pygtk.morph10
4 files changed, 73 insertions, 0 deletions
diff --git a/strata/genivi-demo-platform.morph b/strata/genivi-demo-platform.morph
index 3d869fbd..e40f27c2 100644
--- a/strata/genivi-demo-platform.morph
+++ b/strata/genivi-demo-platform.morph
@@ -50,3 +50,35 @@ chunks:
ref: baserock/genivi-demo-platform
unpetrify-ref: master
build-depends: []
+- name: dbus-python
+ repo: git://anongit.freedesktop.org/dbus/dbus-python
+ ref: d0d5b5be685dc4c16b21c54335becc87ca4d6f58
+ unpetrify-ref: dbus-python-1.2.0
+- name: gnome-common
+ repo: upstream:gnome-common
+ ref: d213283fcb5228d05eb2c796579f18240e8467e8
+ unpetrify-ref: 3.12.0
+- name: pygobject
+ morph: strata/genivi-demo-platform/pygobject.morph
+ repo: upstream:pygobject
+ ref: 9456ba70fdb98b3a4eb7ee2f630182387a54ca00
+ unpetrify-ref: pygobject-2-28
+ build-depends:
+ - gnome-common
+- name: pygtk
+ morph: strata/genivi-demo-platform/pygtk.morph
+ repo: git://git.gnome.org/pygtk
+ ref: 42c3cee478bcb2f88f8ec77068c5a46a68bb1e8e
+ unpetrify-ref: PYGTK_2_24_0
+ build-depends:
+ - pygobject
+- name: automotive-message-broker
+ morph: strata/genivi-demo-platform/automotive-message-broker.morph
+ repo: upstream:automotive-message-broker
+ ref: 2b8c0be99cf8d99ede79d4842191ae39d7c6e15a
+ unpetrify-ref: 0.13
+ build-depends:
+ - dbus-python
+ - pygobject
+ - pygtk
+ - boost
diff --git a/strata/genivi-demo-platform/automotive-message-broker.morph b/strata/genivi-demo-platform/automotive-message-broker.morph
new file mode 100644
index 00000000..b877564b
--- /dev/null
+++ b/strata/genivi-demo-platform/automotive-message-broker.morph
@@ -0,0 +1,23 @@
+name: automotive-message-broker
+kind: chunk
+description: The GENIVI Automotive Message Broker
+build-system: cmake
+pre-configure-commands:
+- sed -i 's:pkg_check_modules(json REQUIRED json):pkg_check_modules(json REQUIRED json-c):' $(find -name 'CMakeLists.txt')
+- sed -i 's:<json/json.h>:<json-c/json.h>:' $(find . -name '*.h' -o -name '*.c' -o -name '*.hpp' -o -name '*.cpp')
+post-install-commands:
+- mkdir -p "$DESTDIR/usr/lib/systemd/system"
+- |
+ cat >"$DESTDIR/usr/lib/systemd/system/ambd.service" <<EOF
+ [Unit]
+ Description=Automotive Message Broker
+ After=syslog.target
+
+ [Service]
+ Type=dbus
+ BusName=org.automotive.message.broker
+ ExecStart=/usr/bin/ambd
+
+ [Install]
+ WantedBy=multi-user.target
+ EOF
diff --git a/strata/genivi-demo-platform/pygobject.morph b/strata/genivi-demo-platform/pygobject.morph
new file mode 100644
index 00000000..d7582bec
--- /dev/null
+++ b/strata/genivi-demo-platform/pygobject.morph
@@ -0,0 +1,8 @@
+name: pygobject
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- sed -i 's/automake-1.11/automake-1.15/g' autogen.sh
+- sed -i 's/aclocal-1.11/aclocal-1.15/g' autogen.sh
+configure-commands:
+- ./autogen.sh --prefix="$PREFIX" --disable-cairo
diff --git a/strata/genivi-demo-platform/pygtk.morph b/strata/genivi-demo-platform/pygtk.morph
new file mode 100644
index 00000000..770e50ae
--- /dev/null
+++ b/strata/genivi-demo-platform/pygtk.morph
@@ -0,0 +1,10 @@
+name: pygtk
+kind: chunk
+description: python GTK bindings
+build-system: autotools
+pre-configure-commands:
+- sed -i 's:1.8\*) automake_progs=.*:1.8\*) automake_progs="automake-1.15" ;;:' autogen.sh
+#- sed -i 's/pygobject-2.0/pygobject-3.0/g' configure.ac
+configure-commands:
+- export NOCONFIGURE=1; export ACLOCAL=aclocal; ./autogen.sh
+- ./configure --prefix="$PREFIX"