50 lines
1.9 KiB
Bash
50 lines
1.9 KiB
Bash
# Template file for 'tigervnc'
|
|
pkgname=tigervnc
|
|
version=1.10.1
|
|
revision=1
|
|
_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 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 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="19fcc80d7d35dd58115262e53cac87d8903180261d94c2a6b0c19224f50b58c4
|
|
9d967d185f05709274ee0c4f861a4672463986e550ca05725ce27974f550d3e6"
|
|
|
|
post_configure() {
|
|
cd ${wrksrc}/unix/xserver
|
|
cp -R ${XBPS_BUILDDIR}/xorg-server-${_xorg_version}/* .
|
|
patch -p1 <../xserver120.patch
|
|
# glvnd changed versioning
|
|
sed -i '/LIBGL/s/[79]\..\.0/1.2/' configure.ac
|
|
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
|
|
}
|