50 lines
2 KiB
Bash
50 lines
2 KiB
Bash
# Template file for 'tigervnc'
|
|
pkgname=tigervnc
|
|
version=1.10.1
|
|
revision=3
|
|
_xorg_version=1.20.0
|
|
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"
|
|
depends="perl xauth xkeyboard-config"
|
|
short_desc="High performance, multi-platform VNC client and server"
|
|
maintainer="Evan Deaubl <evan@deaubl.name>"
|
|
license="GPL-2.0-or-later"
|
|
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="19fcc80d7d35dd58115262e53cac87d8903180261d94c2a6b0c19224f50b58c4
|
|
9d967d185f05709274ee0c4f861a4672463986e550ca05725ce27974f550d3e6"
|
|
conflicts="turbovnc>=0"
|
|
|
|
post_configure() {
|
|
cd ${wrksrc}/unix/xserver
|
|
cp -R ${XBPS_BUILDDIR}/xorg-server-${_xorg_version}/* .
|
|
patch -p1 <../xserver120.patch
|
|
# glvnd changed versioning
|
|
vsed -i configure.ac -e '/LIBGL/s/[79]\..\.0/1.2/'
|
|
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
|
|
vsed -i hw/vnc/Makefile -e "s/TIGERVNC_BUILDDIR =/TIGERVNC_BUILDDIR :=/"
|
|
}
|
|
|
|
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
|
|
}
|