void-packages/srcpkgs/tigervnc/template

49 lines
1.8 KiB
Bash

# Template file for 'tigervnc'
pkgname=tigervnc
version=1.9.0
revision=2
_xorg_version=1.20.0
build_style=cmake
short_desc="VNC client forked from TightVNC"
maintainer="Evan Deaubl <evan@deaubl.name>"
license="GPL-2.0-or-later"
hostmakedepends="automake xorg-util-macros font-util pkg-config libtool xtrans"
makedepends="fltk-devel zlib-devel libXtst-devel libjpeg-turbo-devel pixman-devel
xorgproto libxkbfile-devel libXfont2-devel gnutls-devel libdrm-devel"
depends="perl xauth xkeyboard-config"
conflicts="turbovnc>=0"
homepage="https://www.tigervnc.org"
distfiles="https://github.com/TigerVNC/tigervnc/archive/v${version}.tar.gz>tigervnc-${version}.tar.gz
${XORG_SITE}/xserver/xorg-server-${_xorg_version}.tar.bz2"
checksum="f15ced8500ec56356c3bf271f52e58ed83729118361c7103eab64a618441f740
9d967d185f05709274ee0c4f861a4672463986e550ca05725ce27974f550d3e6"
post_configure() {
cd ${wrksrc}/unix/xserver
cp -R ${XBPS_BUILDDIR}/xorg-server-${_xorg_version}/* .
patch -p1 <../xserver120.patch
autoreconf -fi
./configure --host=${XBPS_CROSS_TRIPLET} --prefix=/usr \
--with-pic --without-dtrace --disable-static \
--disable-xvfb --disable-xnest --disable-xorg --disable-dmx \
--disable-xwin --disable-xwayland --disable-xephyr \
--disable-kdrive --disable-config-hal --disable-config-udev \
--disable-dri --enable-dri2 --enable-dri3 --enable-glx \
--disable-unit-tests --disable-devel-docs --disable-selective-werror \
CFLAGS="$CFLAGS -I${XBPS_CROSS_BASE}/usr/include/libdrm"
# Hardcodes TIGERVNC_BUILDDIR which we have to set later on because
# we do out of source builds
sed "s/TIGERVNC_BUILDDIR =/TIGERVNC_BUILDDIR :=/" -i hw/vnc/Makefile
}
post_build() {
cd ${wrksrc}/unix/xserver
make TIGERVNC_BUILDDIR=${wrksrc}/build
}
post_install() {
cd ${wrksrc}/unix/xserver/hw/vnc
make TIGERVNC_BUILDDIR=${wrksrc}/build DESTDIR=${DESTDIR} install
}