2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
|
|
|
|
|
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.tigervnc.org/
|
|
|
|
TERMUX_PKG_VERSION=1.9.0
|
2018-10-17 15:49:24 +02:00
|
|
|
TERMUX_PKG_REVISION=15
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Suite of VNC servers. Based on the VNC 4 branch of TightVNC."
|
|
|
|
TERMUX_PKG_SRCURL=https://github.com/TigerVNC/tigervnc/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=f15ced8500ec56356c3bf271f52e58ed83729118361c7103eab64a618441f740
|
|
|
|
|
2018-10-04 10:57:09 +02:00
|
|
|
TERMUX_PKG_DEPENDS="freetype, libandroid-support, libandroid-shmem, libbz2, libc++, libdrm, libexpat, libgnutls, libjpeg-turbo, libpixman, libpng, libuuid, libx11, libxau, libxcb, libxdamage, libxdmcp, libxext, libxxf86vm, libxfixes, libxfont2, libxshmfence, mesa, openssl, perl, xkeyboard-config, xorg-xauth, xorg-xkbcomp"
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="xorgproto, xorg-font-util, xorg-util-macros, xorg-server-xvfb, xtrans"
|
2018-10-17 15:49:24 +02:00
|
|
|
TERMUX_PKG_SUGGESTS="aterm, xorg-twm"
|
2018-09-10 00:42:26 +02:00
|
|
|
|
|
|
|
TERMUX_PKG_FOLDERNAME=tigervnc-${TERMUX_PKG_VERSION}
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DBUILD_VIEWER=ON -DENABLE_NLS=OFF -DENABLE_PAM=OFF -DENABLE_GNUTLS=ON"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
|
|
|
mkdir -p ${TERMUX_PKG_BUILDDIR}/unix/xserver
|
|
|
|
cd ${TERMUX_PKG_BUILDDIR}/unix/xserver
|
|
|
|
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
cp -R ${TERMUX_TOPDIR}/xorg-server-xvfb/src/* ${TERMUX_PKG_BUILDDIR}/unix/xserver/
|
2018-09-10 00:42:26 +02:00
|
|
|
|
2018-09-11 23:25:32 +02:00
|
|
|
patch -p1 -i ${TERMUX_PKG_SRCDIR}/unix/xserver120.patch
|
2018-09-10 00:42:26 +02:00
|
|
|
|
|
|
|
export ACLOCAL="aclocal -I ${TERMUX_PREFIX}/share/aclocal"
|
|
|
|
autoreconf -fi
|
|
|
|
|
|
|
|
CFLAGS="${CFLAGS} -DFNDELAY=O_NDELAY -DINITARGS=void"
|
2018-09-11 23:25:32 +02:00
|
|
|
CPPFLAGS="${CPPFLAGS} -I${TERMUX_PREFIX}/include/libdrm"
|
2018-09-10 00:42:26 +02:00
|
|
|
LDFLAGS="${LDFLAGS} -llog"
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--host="${TERMUX_HOST_PLATFORM}" \
|
|
|
|
--prefix="${TERMUX_PREFIX}" \
|
|
|
|
--disable-static \
|
|
|
|
--disable-nls \
|
|
|
|
--enable-debug \
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
`TERMUX_PREFIX=${TERMUX_PREFIX} bash ${TERMUX_SCRIPTDIR}/packages/xorg-server-xvfb/build.sh xorg_server_flags`
|
2018-09-10 00:42:26 +02:00
|
|
|
|
|
|
|
LDFLAGS="${LDFLAGS} -landroid-shmem"
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install () {
|
|
|
|
cd ${TERMUX_PKG_BUILDDIR}/unix/xserver
|
|
|
|
make -j ${TERMUX_MAKE_PROCESSES}
|
|
|
|
|
|
|
|
cd ${TERMUX_PKG_BUILDDIR}/unix/xserver/hw/vnc
|
|
|
|
make install
|
|
|
|
|
|
|
|
## use custom variant of vncserver script
|
|
|
|
cp -f "${TERMUX_PKG_BUILDER_DIR}/vncserver" "${TERMUX_PREFIX}/bin/vncserver"
|
|
|
|
}
|