2018-11-28 08:41:48 +00:00
|
|
|
# Forked from Alpine until the ABGR patch lands in Alpine's package:
|
|
|
|
# https://gitlab.freedesktop.org/wayland/weston/merge_requests/61
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgname=weston
|
|
|
|
pkgver=9999
|
2018-11-28 08:41:48 +00:00
|
|
|
_pkgver=5.0.0
|
|
|
|
pkgrel=16
|
2017-05-26 20:26:25 +00:00
|
|
|
_libname=lib$pkgname
|
|
|
|
_libdir=$_libname-${_pkgver%%.*}
|
|
|
|
pkgdesc="The reference Wayland server"
|
2018-11-28 08:41:48 +00:00
|
|
|
url="https://wayland.freedesktop.org/"
|
2019-01-04 05:56:59 +00:00
|
|
|
arch="all"
|
2017-05-26 20:26:25 +00:00
|
|
|
license="MIT"
|
|
|
|
depends=""
|
2018-05-10 18:40:41 +00:00
|
|
|
makedepends="wayland-protocols libxkbcommon-dev xkeyboard-config
|
|
|
|
libinput-dev libunwind-dev mtdev-dev libxcursor-dev glu-dev
|
2018-05-12 21:58:52 +00:00
|
|
|
pango-dev colord-dev libwebp-dev libva-dev dbus-dev
|
2018-11-28 08:41:48 +00:00
|
|
|
linux-pam-dev wayland-dev
|
|
|
|
"
|
2017-05-26 20:26:25 +00:00
|
|
|
_cms="cms-colord cms-static"
|
|
|
|
_shell="shell-desktop shell-fullscreen shell-ivi"
|
|
|
|
_client="info terminal wcap-decode"
|
2018-11-28 08:41:48 +00:00
|
|
|
_backend="backend-drm backend-fbdev backend-headless
|
|
|
|
backend-x11 backend-wayland
|
|
|
|
"
|
2017-05-26 20:26:25 +00:00
|
|
|
for _sub in $_cms $_shell $_client $_backend; do
|
|
|
|
subpackages="$subpackages $pkgname-$_sub:_sub"
|
|
|
|
done
|
|
|
|
subpackages="$pkgname-dev $pkgname-doc $subpackages
|
|
|
|
$pkgname-clients $_libname-desktop:_libd $_libname:libs
|
|
|
|
$pkgname-xwayland $pkgname-desktop-x11:_x11:noarch
|
2018-11-28 08:41:48 +00:00
|
|
|
"
|
|
|
|
source="https://wayland.freedesktop.org/releases/$pkgname-$_pkgver.tar.xz
|
|
|
|
timespec.patch
|
|
|
|
weston-launch-custom-error-function.patch
|
|
|
|
0001-compositor-fbdev-add-support-for-ABGR.patch
|
|
|
|
"
|
2017-05-26 20:26:25 +00:00
|
|
|
builddir="$srcdir/$pkgname-$_pkgver"
|
2018-11-28 08:41:48 +00:00
|
|
|
# weston-launch requires suid
|
|
|
|
options="!check suid"
|
|
|
|
install="$pkgname.pre-install"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$builddir"
|
|
|
|
./configure \
|
|
|
|
--build=$CBUILD \
|
|
|
|
--host=$CHOST \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib/$pkgname \
|
|
|
|
--enable-screen-sharing \
|
|
|
|
--enable-vaapi-recorder \
|
|
|
|
--enable-clients \
|
2018-11-28 08:41:48 +00:00
|
|
|
--enable-demo-clients-install
|
2017-05-26 20:26:25 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2018-11-28 08:41:48 +00:00
|
|
|
# Does not run through, see also:
|
|
|
|
# https://github.com/alpinelinux/aports/pull/1689
|
2017-05-26 20:26:25 +00:00
|
|
|
check() {
|
|
|
|
make -C "$builddir" check
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
make -C "$builddir" DESTDIR="$pkgdir" install
|
|
|
|
}
|
|
|
|
|
|
|
|
libs() {
|
|
|
|
depends="xkeyboard-config"
|
|
|
|
default_libs
|
|
|
|
}
|
|
|
|
|
|
|
|
_libd() {
|
|
|
|
pkgdesc="Desktop shells abstraction library for libweston compositors"
|
2018-11-28 08:41:48 +00:00
|
|
|
mkdir -p "$subpkgdir"/usr/lib || return 1
|
2017-05-26 20:26:25 +00:00
|
|
|
mv "$pkgdir"/usr/lib/*desktop* "$subpkgdir"/usr/lib
|
|
|
|
}
|
|
|
|
|
|
|
|
clients() {
|
|
|
|
pkgdesc="Weston example clients"
|
2018-11-28 08:41:48 +00:00
|
|
|
mkdir -p "$subpkgdir"/usr/bin || return 1
|
2017-05-26 20:26:25 +00:00
|
|
|
mv "$pkgdir"/usr/bin/$pkgname-* "$subpkgdir"/usr/bin
|
|
|
|
}
|
|
|
|
|
|
|
|
xwayland() {
|
|
|
|
pkgdesc="Wayland module to run X Clients"
|
2018-11-28 08:41:48 +00:00
|
|
|
mkdir -p "$subpkgdir"/usr/lib/$_libdir || return 1
|
2017-05-26 20:26:25 +00:00
|
|
|
mv "$pkgdir"/usr/lib/$_libdir/xwayland.so \
|
|
|
|
"$subpkgdir"/usr/lib/$_libdir
|
|
|
|
}
|
|
|
|
|
|
|
|
_x11() {
|
|
|
|
pkgdesc="Weston desktop helper pack (x11 backend)"
|
|
|
|
depends="$pkgname $pkgname-shell-desktop $pkgname-xwayland
|
|
|
|
$pkgname-backend-x11 $pkgname-terminal"
|
|
|
|
mkdir -p "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
_sub() {
|
|
|
|
local name path
|
|
|
|
case $subpkgname in
|
|
|
|
*-cms-*)
|
|
|
|
name=${subpkgname#$pkgname-cms-}
|
|
|
|
path=/usr/lib/$pkgname
|
|
|
|
pkgdesc="Weston CMS module: $name"
|
|
|
|
name=cms-$name.so
|
|
|
|
;;
|
|
|
|
*-shell-*)
|
|
|
|
name=${subpkgname#$pkgname-shell-}
|
|
|
|
path=/usr/lib/$pkgname
|
|
|
|
pkgdesc="Weston shell: $name"
|
|
|
|
name=*$name-shell*
|
|
|
|
;;
|
|
|
|
*-backend-*)
|
|
|
|
name=${subpkgname#$pkgname-backend-}
|
|
|
|
path=/usr/lib/$_libdir
|
|
|
|
pkgdesc="Weston backend: $name"
|
|
|
|
name=$name-backend.so
|
|
|
|
grep -q cairo "$pkgdir"/$path/$name && depends="mesa-dri-swrast"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
name=$subpkgname
|
|
|
|
path=/usr/bin
|
|
|
|
[ -x "$pkgdir"/$path/$name ] || name=${subpkgname#$pkgname-}
|
|
|
|
pkgdesc="Weston client: $name"
|
|
|
|
;;
|
|
|
|
esac
|
2018-11-28 08:41:48 +00:00
|
|
|
mkdir -p "$subpkgdir"/$path || return 1
|
2017-05-26 20:26:25 +00:00
|
|
|
mv "$pkgdir"/$path/$name "$subpkgdir"/$path
|
|
|
|
}
|
2018-11-28 08:41:48 +00:00
|
|
|
sha512sums="b6f97eca014ea47f3de0c5ddd89712f896cd66423d0eb499e1d88d35aab616cef1e735ebb8e0cefd8b60085314b6ec3d56b39d7c4776188bb56d58efc84a52cf weston-5.0.0.tar.xz
|
|
|
|
3e596af4bf0a6b06a5d28376043db111fe1c161ead04501fa6d2c667b5a21889cca3354d1bdc4ac794841bef68ed5e1a7a84e44e7d510e947e3673195706caed timespec.patch
|
|
|
|
3f742a29075fd447995cdda283d12655910925811b22a28fc279bcc7cf5c7c1a888cd391bec42d934b3bad24578504c642882100f15647178f6f6f89a8405916 weston-launch-custom-error-function.patch
|
|
|
|
788e9ea291ce2d3e96965456ff6ca8a15ba2dda18eee37bca744f826a3277d087e9fb637c6d57175036872c2c9c0e052180ab4212af811eac1a232178a23f663 0001-compositor-fbdev-add-support-for-ABGR.patch"
|