From: Daniel Golle Date: Sun, 22 Aug 2021 20:12:44 +0000 (+0100) Subject: weston: add package X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F16%2Fhead;p=feed%2Fvideo.git weston: add package Add weston wayland compositor. Signed-off-by: Daniel Golle --- diff --git a/libs/weston/Makefile b/libs/weston/Makefile new file mode 100644 index 0000000..406b555 --- /dev/null +++ b/libs/weston/Makefile @@ -0,0 +1,89 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=weston +PKG_RELEASE:=$(AUTORELEASE) + +#PKG_VERSION:=9.0.0 +#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +#PKG_SOURCE_URL:=https://wayland.freedesktop.org/releases/ +#PKG_HASH:=5cf5d6ce192e0eb15c1fc861a436bf21b5bb3b91dbdabbdebe83e1f83aa098fe + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://gitlab.freedesktop.org/wayland/weston.git +PKG_SOURCE_DATE:=2021-08-13 +PKG_VERSION:=10.0.0~pre0-$(PKG_SOURCE_DATE) +PKG_SOURCE_VERSION:=d259bbeccdd321b5327537ddcdde06b8c5671d48 +PKG_MIRROR_HASH:=45f6f7ff0a18f11222a09813064ef1a4bc6539eee4e73430d93ce38feea9c9cc + +PKG_MAINTAINER:=Daniel Golle +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=COPYING + +PKG_INSTALL:=1 +PKG_BUILD_DEPENDS:=wayland/host + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/meson.mk + +define Package/weston + SECTION:=libs + CATEGORY:=Libraries + SUBMENU:=Video + TITLE:=weston + URL:=https://wayland.freedesktop.org/ + DEPENDS:=+gstreamer1-plugins-base +libcairo +libevdev \ + +libgst1allocators +libgst1app +libgst1video +libgstreamer1 +libinput \ + +libmesa +libpango +libseat +libwayland +libwebp +libxkbcommon +pixman \ + +seatd +wayland-protocols +xkeyboard-config +endef + +define Package/weston/description +endef + +MESON_ARGS += \ + -Dlauncher-logind=false \ + -Dweston-launch=false \ + -Dlauncher-libseat=true \ + -Dbackend-drm=true \ + -Dbackend-drm-screencast-vaapi=false \ + -Dbackend-headless=false \ + -Dbackend-rdp=false \ + -Dbackend-x11=false \ + -Dxwayland=false \ + -Dcolor-management-lcms=false \ + -Dcolor-management-colord=false \ + -Dsystemd=false \ + -Dpipewire=false \ + -Dtest-gl-renderer=false \ + -Dtest-junit-xml=false \ + -Ddemo-clients=true \ + -Ddoc=false \ + -Dscanner_bin="$(STAGING_DIR_HOSTPKG)/bin/wayland-scanner" + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig +endef + +define Package/weston/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib/libweston-10 + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libweston-10/*.so* $(1)/usr/lib/libweston-10/ + $(INSTALL_DIR) $(1)/usr/lib/weston + $(CP) $(PKG_INSTALL_DIR)/usr/lib/weston/*.so* $(1)/usr/lib/weston/ + $(INSTALL_DIR) $(1)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin + $(INSTALL_DIR) $(1)/usr/libexec + $(CP) $(PKG_INSTALL_DIR)/usr/libexec/* $(1)/usr/libexec/ + $(INSTALL_DIR) $(1)/usr/share/libweston-10/protocols + $(CP) $(PKG_INSTALL_DIR)/usr/share/libweston-10/protocols/* $(1)/usr/share/libweston-10/protocols/ + $(INSTALL_DIR) $(1)/usr/share/weston + $(CP) $(PKG_INSTALL_DIR)/usr/share/weston/* $(1)/usr/share/weston/ +endef + +$(eval $(call BuildPackage,weston)) diff --git a/libs/weston/patches/001-fix-wayland-scanner-detect.patch b/libs/weston/patches/001-fix-wayland-scanner-detect.patch new file mode 100644 index 0000000..277c45b --- /dev/null +++ b/libs/weston/patches/001-fix-wayland-scanner-detect.patch @@ -0,0 +1,25 @@ +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -242,3 +242,9 @@ option( + value: false, + description: 'Generate documentation' + ) ++option( ++ 'scanner_bin', ++ description: 'Path to wayland-scanner binary', ++ type: 'string', ++ value: '' ++) +--- a/protocol/meson.build ++++ b/protocol/meson.build +@@ -1,5 +1,9 @@ + dep_scanner = dependency('wayland-scanner', native: true) +-prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner')) ++if (get_option('scanner_bin') == '') ++ prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner')) ++else ++ prog_scanner = find_program(get_option('scanner_bin')) ++endif + + dep_wp = dependency('wayland-protocols', version: '>= 1.19') + dir_wp_base = dep_wp.get_pkgconfig_variable('pkgdatadir') diff --git a/libs/weston/patches/100-timespec.patch b/libs/weston/patches/100-timespec.patch new file mode 100644 index 0000000..7c2c8f6 --- /dev/null +++ b/libs/weston/patches/100-timespec.patch @@ -0,0 +1,10 @@ +--- a/tests/timespec-test.c ++++ b/tests/timespec-test.c +@@ -25,6 +25,7 @@ + + #include "config.h" + ++#include + #include + #include + #include