From fa35f9272d937f67f73632d7b4b97491c93bd035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 28 Aug 2014 01:22:10 +0100 Subject: Build only one wayland independent of the architecture This makes gtk (and everything that is on top) independent of the architecture we are building. --- strata/wayland-generic/cairo.morph | 5 ++ strata/wayland-generic/freefont-otf.morph | 5 ++ strata/wayland-generic/linux-api-headers.morph | 9 ++++ strata/wayland-generic/mesa-wayland.morph | 7 +++ strata/wayland-generic/wayland-ivi-extension.morph | 8 ++++ strata/wayland-generic/wayland.morph | 7 +++ strata/wayland-generic/weston.morph | 53 ++++++++++++++++++++++ 7 files changed, 94 insertions(+) create mode 100644 strata/wayland-generic/cairo.morph create mode 100644 strata/wayland-generic/freefont-otf.morph create mode 100644 strata/wayland-generic/linux-api-headers.morph create mode 100644 strata/wayland-generic/mesa-wayland.morph create mode 100644 strata/wayland-generic/wayland-ivi-extension.morph create mode 100644 strata/wayland-generic/wayland.morph create mode 100644 strata/wayland-generic/weston.morph (limited to 'strata/wayland-generic') diff --git a/strata/wayland-generic/cairo.morph b/strata/wayland-generic/cairo.morph new file mode 100644 index 00000000..f91ac385 --- /dev/null +++ b/strata/wayland-generic/cairo.morph @@ -0,0 +1,5 @@ +name: cairo +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --enable-glesv2 diff --git a/strata/wayland-generic/freefont-otf.morph b/strata/wayland-generic/freefont-otf.morph new file mode 100644 index 00000000..e5c6c482 --- /dev/null +++ b/strata/wayland-generic/freefont-otf.morph @@ -0,0 +1,5 @@ +name: freefont-otf +kind: chunk +install-commands: +- mkdir -p $DESTDIR/usr/share/fonts/opentype/freefont +- install -p *.otf $DESTDIR/usr/share/fonts/opentype/freefont diff --git a/strata/wayland-generic/linux-api-headers.morph b/strata/wayland-generic/linux-api-headers.morph new file mode 100644 index 00000000..595138fe --- /dev/null +++ b/strata/wayland-generic/linux-api-headers.morph @@ -0,0 +1,9 @@ +name: linux-api-headers +kind: chunk +build-commands: +- make mrproper +- make headers_check +install-commands: +- make INSTALL_HDR_PATH=dest headers_install +- install -d "$DESTDIR${PREFIX-/usr}/include" +- cp -r dest/include/* "$DESTDIR/${PREFIX-/usr}/include" diff --git a/strata/wayland-generic/mesa-wayland.morph b/strata/wayland-generic/mesa-wayland.morph new file mode 100644 index 00000000..06dfeee3 --- /dev/null +++ b/strata/wayland-generic/mesa-wayland.morph @@ -0,0 +1,7 @@ +name: mesa-wayland +kind: chunk +build-system: autotools +configure-commands: +- ./autogen.sh --prefix="$PREFIX" --enable-gles2 --enable-gallium-egl --with-egl-platforms=wayland,drm + --enable-gbm --enable-dri --enable-shared-glapi --with-gallium-drivers=swrast --with-dri-drivers=,i915,i965,swrast + --with-state-trackers=egl diff --git a/strata/wayland-generic/wayland-ivi-extension.morph b/strata/wayland-generic/wayland-ivi-extension.morph new file mode 100644 index 00000000..c3308ce7 --- /dev/null +++ b/strata/wayland-generic/wayland-ivi-extension.morph @@ -0,0 +1,8 @@ +name: wayland-ivi-extension +kind: chunk +configure-commands: +- cmake -DCMAKE_INSTALL_PREFIX=$PREFIX +build-commands: +- make +install-commands: +- make install DESTDIR=$DESTDIR diff --git a/strata/wayland-generic/wayland.morph b/strata/wayland-generic/wayland.morph new file mode 100644 index 00000000..752a5d6e --- /dev/null +++ b/strata/wayland-generic/wayland.morph @@ -0,0 +1,7 @@ +name: wayland +kind: chunk +description: Wayland server +build-system: autotools +configure-commands: +- autoreconf -ivf +- ./configure --prefix="$PREFIX" --disable-documentation diff --git a/strata/wayland-generic/weston.morph b/strata/wayland-generic/weston.morph new file mode 100644 index 00000000..8ce58496 --- /dev/null +++ b/strata/wayland-generic/weston.morph @@ -0,0 +1,53 @@ +name: weston +kind: chunk +description: weston compositor +build-system: autotools +configure-commands: +- autoreconf -ivf +- | + LDFLAGS='-L/lib64 -lrt' \ + ./configure --prefix=$PREFIX --with-cairo-glesv2 --disable-xwayland \ + --disable-drm-compositor --disable-x11-compositor \ + --disable-wayland-compositor --disable-weston-launch --enable-egl \ + --enable-clients --enable-demo-clients-install --enable-fbdev-compositor +post-install-commands: +- install -d "$DESTDIR/usr/share/weston" +- install -m 0644 data/*.png "$DESTDIR/usr/share/weston/" +- sed -i 's,/weston.build/data/,/usr/share/weston/,g' ivi-shell/weston.ini +- sed -i 's,/weston.build/clients/,/usr/bin/,g' ivi-shell/weston.ini +- sed -i 's,/weston.build/,/usr/libexec/,g' ivi-shell/weston.ini +- sed -i '/^\[ivi-launcher\]/,$d' ivi-shell/weston.ini +- | + cat <> ivi-shell/weston.ini + [ivi-launcher] + workspace-id=0 + icon-id=4001 + icon=/usr/share/weston/icon_ivi_flower.png + path=/usr/bin/weston-flower + + [ivi-launcher] + workspace-id=0 + icon-id=4002 + icon=/usr/share/weston/icon_ivi_clickdot.png + path=/usr/bin/weston-clickdot + + [ivi-launcher] + workspace-id=1 + icon-id=4003 + icon=/usr/share/weston/icon_ivi_simple-egl.png + path=/usr/bin/weston-simple-egl + + [ivi-launcher] + workspace-id=1 + icon-id=4004 + icon=/usr/share/weston/icon_ivi_simple-shm.png + path=/usr/bin/weston-simple-shm + + [ivi-launcher] + workspace-id=2 + icon-id=4005 + icon=/usr/share/weston/icon_ivi_smoke.png + path=/usr/bin/weston-smoke + EOF +- install -d "$DESTDIR/usr/share/doc/weston" +- install -m 0644 ivi-shell/weston.ini "$DESTDIR/usr/share/doc/weston/ivi-shell-weston.ini" -- cgit v1.2.1