void-packages/srcpkgs/tigervnc/template

60 lines
2.0 KiB
Bash

# Template file for 'tigervnc'
pkgname=tigervnc
version=1.14.0
revision=1
_xorg_version=21.1.13
_xorg_dist="xorg-server-${_xorg_version}.tar.gz"
build_style=cmake
hostmakedepends="automake gettext xorg-util-macros font-util pkg-config
libtool xtrans"
makedepends="fltk-devel zlib-devel libXtst-devel libjpeg-turbo-devel pixman-devel
xorgproto libxkbfile-devel libXrandr-devel libXfont2-devel gnutls-devel
libdrm-devel libxshmfence-devel pam-devel xkbcomp libxcvt-devel nettle-devel"
depends="perl xauth xkeyboard-config"
short_desc="High performance, multi-platform VNC client and server"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.tigervnc.org"
distfiles="https://github.com/TigerVNC/tigervnc/archive/v${version}.tar.gz
${XORG_SITE}/xserver/${_xorg_dist}"
checksum="5700f9919802a2f0529cc058b8caded03281cdbf0335581f2dcc7df03f783419
2864b6a5359ab41c5a6132c69b5d0c9af6eb85ad26d433edb012c914029de752"
conflicts="turbovnc>=0"
skip_extraction="${_xorg_dist}"
conf_files="/etc/tigervnc/*"
post_extract() {
bsdtar -x --strip-components 1 -C unix/xserver \
-f "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_xorg_dist}"
}
post_patch() {
cd unix/xserver
patch -p1 < "../xserver${_xorg_version%%.*}.patch"
}
post_configure() {
cd unix/xserver
autoreconf -fi
LDFLAGS="${LDFLAGS} -Wl,-z,lazy" \
CFLAGS="${CFLAGS} -I${XBPS_CROSS_BASE}/usr/include/libdrm" \
./configure --host=${XBPS_CROSS_TRIPLET} --prefix=/usr \
--with-pic --without-dtrace --disable-static --disable-xvfb \
--disable-xnest --disable-xorg --disable-xwin --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
}
post_build() {
# The trailing slash is significant:
# https://github.com/TigerVNC/tigervnc/issues/1691
make -C unix/xserver TIGERVNC_BUILDDIR="${wrksrc}/build/"
}
post_install() {
make -C unix/xserver/hw/vnc DESTDIR=${DESTDIR} \
TIGERVNC_BUILDDIR="${wrksrc}/build/" install
}