summaryrefslogtreecommitdiffstats
path: root/rules/weston.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-08-07 19:49:32 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-08-08 15:04:45 +0200
commitdc67f22900aa3d4d621463427b2d04b68c62ea26 (patch)
treec7db222d6947b6d31317266f8ec73da3a0122940 /rules/weston.make
parent8f983754828c1aafb602b38fc1d3d70fcfe794ba (diff)
downloadptxdist-dc67f22900aa3d4d621463427b2d04b68c62ea26.tar.gz
ptxdist-dc67f22900aa3d4d621463427b2d04b68c62ea26.tar.xz
weston: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/weston.make')
-rw-r--r--rules/weston.make141
1 files changed, 141 insertions, 0 deletions
diff --git a/rules/weston.make b/rules/weston.make
new file mode 100644
index 000000000..5814ee268
--- /dev/null
+++ b/rules/weston.make
@@ -0,0 +1,141 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Philipp Zabel <p.zabel@pengutronix.de>
+# 2014 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_WESTON) += weston
+
+#
+# Paths and names
+#
+WESTON_VERSION := 1.5.0
+WESTON_MD5 := 8eb40d230efc2411f083c20656534780
+WESTON := weston-$(WESTON_VERSION)
+WESTON_SUFFIX := tar.xz
+WESTON_URL := http://wayland.freedesktop.org/releases/$(WESTON).$(WESTON_SUFFIX)
+WESTON_SOURCE := $(SRCDIR)/$(WESTON).$(WESTON_SUFFIX)
+WESTON_DIR := $(BUILDDIR)/$(WESTON)
+WESTON_LICENSE := MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+WESTON_CONF_TOOL := autoconf
+WESTON_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --disable-static \
+ --enable-shared \
+ --$(call ptx/endis, PTXCONF_WESTON_GL)-egl \
+ --enable-xkbcommon \
+ --disable-setuid-install \
+ --$(call ptx/endis, PTXCONF_WESTON_XWAYLAND)-xwayland \
+ --disable-xwayland-test \
+ --disable-x11-compositor \
+ --$(call ptx/endis, PTXCONF_WESTON_DRM_COMPOSITOR)-drm-compositor \
+ --disable-libinput-backend \
+ --$(call ptx/endis, PTXCONF_WESTON_GL)-wayland-compositor \
+ --$(call ptx/endis, PTXCONF_WESTON_HEADLESS_COMPOSITOR)-headless-compositor \
+ --disable-rpi-compositor \
+ --$(call ptx/endis, PTXCONF_WESTON_FBDEV_COMPOSITOR)-fbdev-compositor \
+ --disable-rdp-compositor \
+ --disable-screen-sharing \
+ --disable-vaapi-recorder \
+ --enable-simple-clients \
+ --$(call ptx/endis, PTXCONF_WESTON_GL)-simple-egl-clients \
+ --enable-clients \
+ --enable-resize-optimization \
+ --disable-weston-launch \
+ --enable-fullscreen-shell \
+ --disable-colord \
+ --disable-dbus \
+ --$(call ptx/endis, PTXCONF_WESTON_WCAP_TOOLS)-wcap-tools \
+ --disable-libunwind \
+ --disable-demo-clients-install \
+ --with-cairo=$(call ptx/ifdef, PTXCONF_WESTON_GL,glesv2,image)
+
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/weston.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, weston)
+ @$(call install_fixup, weston,PRIORITY,optional)
+ @$(call install_fixup, weston,SECTION,base)
+ @$(call install_fixup, weston,AUTHOR,"Philipp Zabel <p.zabel@pengutronix.de>")
+ @$(call install_fixup, weston,DESCRIPTION,"wayland reference compositor implementation")
+
+ @$(call install_copy, weston, 0, 0, 0755, -, /usr/bin/weston)
+ @$(call install_copy, weston, 0, 0, 0755, -, /usr/bin/weston-info)
+ @$(call install_copy, weston, 0, 0, 0755, -, /usr/bin/weston-terminal)
+
+ifdef PTXCONF_WESTON_WCAP_TOOLS
+ @$(call install_copy, weston, 0, 0, 0755, -, /usr/bin/wcap-decode)
+endif
+
+ifdef PTXCONF_WESTON_XWAYLAND
+ @$(call install_lib, weston, 0, 0, 0644, weston/xwayland)
+endif
+ifdef PTXCONF_WESTON_DRM_COMPOSITOR
+ @$(call install_lib, weston, 0, 0, 0644, weston/drm-backend)
+endif
+ifdef PTXCONF_WESTON_HEADLESS_COMPOSITOR
+ @$(call install_lib, weston, 0, 0, 0644, weston/headless-backend)
+endif
+ifdef PTXCONF_WESTON_FBDEV_COMPOSITOR
+ @$(call install_lib, weston, 0, 0, 0644, weston/fbdev-backend)
+endif
+ifdef PTXCONF_WESTON_GL
+ @$(call install_lib, weston, 0, 0, 0644, weston/wayland-backend)
+ @$(call install_lib, weston, 0, 0, 0644, weston/gl-renderer)
+endif
+ @$(call install_lib, weston, 0, 0, 0644, weston/desktop-shell)
+ @$(call install_lib, weston, 0, 0, 0644, weston/fullscreen-shell)
+
+ @$(call install_copy, weston, 0, 0, 0755, -, /usr/libexec/weston-simple-im)
+ @$(call install_copy, weston, 0, 0, 0755, -, /usr/libexec/weston-screenshooter)
+ @$(call install_copy, weston, 0, 0, 0755, -, /usr/libexec/weston-desktop-shell)
+ @$(call install_copy, weston, 0, 0, 0755, -, /usr/libexec/weston-keyboard)
+
+
+ @$(foreach image, \
+ wayland.svg \
+ terminal.png \
+ wayland.png \
+ border.png \
+ pattern.png \
+ sign_maximize.png \
+ icon_window.png \
+ sign_close.png \
+ sign_maximize.png, \
+ $(call install_copy, weston, 0, 0, 0644, -, /usr/share/weston/$(image));)
+
+
+ @$(call install_finish, weston)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/weston.clean:
+# @$(call targetinfo)
+# @$(call clean_pkg, WESTON)
+
+# vim: syntax=make