void-packages/srcpkgs/weston/template

83 lines
2.6 KiB
Text
Raw Normal View History

2012-11-20 13:27:26 +00:00
# Template file for 'weston'.
pkgname=weston
2015-01-24 08:29:00 +00:00
version=1.6.1
2014-09-19 14:01:21 +00:00
revision=1
2012-11-20 13:27:26 +00:00
build_style=gnu-configure
# 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-01-24 08:29:00 +00:00
checksum=e9ef779fda4008b7081ee6c64df7971c50954c5cf0d166d8a2fcb104ec1042fd
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"
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
poppler-glib-devel pam-devel lcms2-devel libudev-devel libdrm-devel
2015-01-24 08:29:00 +00:00
libinput-devel>=0.6.0 libxcb-devel libXcursor-devel colord-devel
$(vopt_if backtrace libunwind-devel) $(vopt_if dbus dbus-devel)
$(vopt_if systemd systemd-devel) $(vopt_if vaapi libva-devel)"
# Package build options
build_options="backtrace dbus systemd vaapi"
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
2013-07-14 08:01:51 +00:00
case "$XBPS_TARGET_MACHINE" in
armv6l) # Assume RPi for now.
CFLAGS="-I${XBPS_CROSS_BASE}/opt/vc/include"
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
--enable-weston-launch WESTON_NATIVE_BACKEND=rpi-backend.so"
2013-07-14 08:01:51 +00:00
;;
x86_64|i686)
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
2013-02-15 13:28:31 +00:00
vinstall COPYING 644 usr/share/license/$pkgname
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
}
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
}
}