2012-11-20 13:27:26 +00:00
|
|
|
# Template file for 'weston'.
|
|
|
|
pkgname=weston
|
2015-02-15 10:08:49 +00:00
|
|
|
version=1.7.0
|
2015-02-15 10:57:41 +00:00
|
|
|
revision=2
|
2012-11-20 13:27:26 +00:00
|
|
|
build_style=gnu-configure
|
2014-05-22 07:44:34 +00:00
|
|
|
# XXX enable rdp compositor if freerdp is updated to >=1.1.
|
2015-01-24 08:29:00 +00:00
|
|
|
configure_args="--enable-libinput-backend --disable-setuid-install
|
|
|
|
--enable-colord --enable-x11-compositor --enable-xwayland
|
|
|
|
$(vopt_enable backtrace libunwind) $(vopt_enable dbus)
|
|
|
|
$(vopt_enable vaapi vaapi-recorder)"
|
2012-11-20 13:27:26 +00:00
|
|
|
short_desc="Reference implementation of a Wayland compositor"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://wayland.freedesktop.org/"
|
|
|
|
license="MIT"
|
|
|
|
distfiles="http://wayland.freedesktop.org/releases/${pkgname}-${version}.tar.xz"
|
2015-02-15 10:08:49 +00:00
|
|
|
checksum=1c4511945f3f476c24af712e82a7b500ae91a99cbc0fe2e381da1449125166cd
|
2013-04-06 09:40:02 +00:00
|
|
|
|
2015-02-15 10:57:41 +00:00
|
|
|
system_groups="weston-launch"
|
2014-09-04 23:43:57 +00:00
|
|
|
lib32disabled=yes
|
2014-08-09 11:00:35 +00:00
|
|
|
hostmakedepends="pkg-config wayland-devel>=${version} autoconf automake libtool"
|
2014-05-20 12:06:59 +00:00
|
|
|
makedepends="libpng-devel>=1.6 wayland-devel>=${version} libxkbcommon-devel
|
2014-09-04 23:43:57 +00:00
|
|
|
pixman-devel pango-devel cairo-devel mtdev-devel libwebp-devel>=0.4.0
|
2014-05-22 07:44:34 +00:00
|
|
|
poppler-glib-devel pam-devel lcms2-devel libudev-devel libdrm-devel
|
2015-02-15 10:08:49 +00:00
|
|
|
libinput-devel>=0.10.0 libxcb-devel libXcursor-devel colord-devel
|
2015-01-24 08:29:00 +00:00
|
|
|
$(vopt_if backtrace libunwind-devel) $(vopt_if dbus dbus-devel)
|
|
|
|
$(vopt_if systemd systemd-devel) $(vopt_if vaapi libva-devel)"
|
2014-05-22 07:44:34 +00:00
|
|
|
|
2014-02-10 21:39:01 +00:00
|
|
|
# Package build options
|
2014-05-22 07:44:34 +00:00
|
|
|
build_options="backtrace dbus systemd vaapi"
|
2014-07-28 15:26:47 +00:00
|
|
|
build_options_default="backtrace dbus"
|
2014-05-21 06:16:51 +00:00
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
build_options_default+=" vaapi"
|
|
|
|
fi
|
2014-05-20 12:08:04 +00:00
|
|
|
|
2013-07-14 08:01:51 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
armv6l) # Assume RPi for now.
|
2013-10-20 04:35:39 +00:00
|
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/opt/vc/include"
|
2014-05-22 07:44:34 +00:00
|
|
|
LDFLAGS="-Wl,-R/opt/vc/lib"
|
2013-07-14 08:01:51 +00:00
|
|
|
makedepends+=" rpi-firmware rpi-firmware-pcfiles"
|
|
|
|
# Just enable the RPi compositor.
|
2014-05-21 06:16:51 +00:00
|
|
|
configure_args+=" --disable-drm-compositor
|
2013-07-14 08:01:51 +00:00
|
|
|
--disable-wayland-compositor --disable-simple-egl-clients
|
2014-05-21 06:16:51 +00:00
|
|
|
--disable-fbdev-compositor --disable-egl
|
|
|
|
--disable-setuid-install --disable-resize-optimization
|
2013-12-18 16:20:06 +00:00
|
|
|
--enable-weston-launch WESTON_NATIVE_BACKEND=rpi-backend.so"
|
2013-07-14 08:01:51 +00:00
|
|
|
;;
|
|
|
|
x86_64|i686)
|
2014-05-22 07:44:34 +00:00
|
|
|
makedepends+=" glu-devel libva-devel"
|
2014-09-04 23:43:57 +00:00
|
|
|
configure_args+=" --enable-vaapi-recorder"
|
2013-07-14 08:01:51 +00:00
|
|
|
;;
|
|
|
|
esac
|
2013-02-15 13:28:31 +00:00
|
|
|
|
2014-08-09 11:00:35 +00:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2013-02-15 13:28:31 +00:00
|
|
|
post_install() {
|
2015-01-24 08:29:00 +00:00
|
|
|
# weston-launch must be setuid
|
|
|
|
chmod u+s ${DESTDIR}/usr/bin/weston-launch
|
2015-02-06 08:37:00 +00:00
|
|
|
vlicense COPYING LICENSE
|
2013-06-07 16:05:57 +00:00
|
|
|
# Remove development files.
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/pkgconfig
|
2013-02-15 13:28:31 +00:00
|
|
|
}
|
2014-05-22 07:44:34 +00:00
|
|
|
weston-colord_package() {
|
|
|
|
short_desc+=" - colord plugin"
|
|
|
|
pkg_install() {
|
|
|
|
vmove /usr/lib/weston/cms-colord.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
weston-x11_package() {
|
|
|
|
short_desc+=" - x11 backend"
|
|
|
|
pkg_install() {
|
|
|
|
vmove /usr/lib/weston/x11-backend.so
|
|
|
|
}
|
|
|
|
}
|
|
|
|
weston-xwayland_package() {
|
|
|
|
short_desc+=" - xwayland backend"
|
|
|
|
pkg_install() {
|
|
|
|
vmove /usr/lib/weston/xwayland.so
|
|
|
|
}
|
|
|
|
}
|