termux-packages/x11-packages/xorg-server-xvfb/build.sh

73 lines
1.7 KiB
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://xorg.freedesktop.org/
2018-09-10 00:42:26 +02:00
TERMUX_PKG_DESCRIPTION="X virtual framebuffer"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
2021-05-05 22:21:20 +02:00
TERMUX_PKG_VERSION=1.20.11
2022-03-02 02:18:00 +01:00
TERMUX_PKG_REVISION=6
2018-09-10 00:42:26 +02:00
TERMUX_PKG_SRCURL=https://xorg.freedesktop.org/releases/individual/xserver/xorg-server-${TERMUX_PKG_VERSION}.tar.bz2
2021-05-05 22:21:20 +02:00
TERMUX_PKG_SHA256=914c796e3ffabe1af48071d40ccc85e92117c97a9082ed1df29e4d64e3c34c49
2018-09-10 00:42:26 +02:00
TERMUX_PKG_DEPENDS="libandroid-shmem, libdrm, libpixman, libx11, libxau, libxfont2, libxinerama, libxkbfile, libxshmfence, mesa, openssl, xkeyboard-config, xorg-xkbcomp"
TERMUX_PKG_CONFLICTS="xorg-xvfb"
TERMUX_PKG_REPLACES="xorg-xvfb"
2018-09-10 00:42:26 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--enable-composite
--enable-mitshm
--enable-xres
--enable-record
--enable-xv
--enable-xvmc
--enable-dga
--enable-screensaver
--enable-xdmcp
--disable-glx
--disable-dri
--disable-dri2
--disable-dri3
2018-09-10 00:42:26 +02:00
--enable-present
--enable-xinerama
--enable-xf86vidmode
--enable-xace
--enable-xcsecurity
--enable-dbe
--enable-xf86bigfont
2018-09-10 00:42:26 +02:00
--disable-xfree86-utils
--disable-vgahw
--disable-vbe
--disable-int10-module
--enable-libdrm
2018-09-10 00:42:26 +02:00
--disable-pciaccess
--disable-linux-acpi
--disable-linux-apm
--disable-xorg
--disable-dmx
--enable-xvfb
2018-09-10 00:42:26 +02:00
--disable-xnest
--disable-xwayland
--disable-xwin
2018-09-10 00:42:26 +02:00
--disable-kdrive
--disable-xephyr
--disable-libunwind
--enable-xshmfence
2018-09-10 00:42:26 +02:00
--enable-ipv6
--with-sha1=libcrypto
--with-fontrootdir=${TERMUX_PREFIX}/share/fonts
--with-xkb-path=${TERMUX_PREFIX}/share/X11/xkb
LIBS=-landroid-shmem
"
TERMUX_PKG_RM_AFTER_INSTALL="
share/X11/xkb/compiled
share/man/man1/Xserver.1
"
2018-09-10 00:42:26 +02:00
termux_step_pre_configure() {
CFLAGS+=" -DFNDELAY=O_NDELAY"
CPPFLAGS+=" -I${TERMUX_PREFIX}/include/libdrm"
if [ "$TERMUX_DEBUG_BUILD" = "true" ]; then
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-debug"
fi
2018-09-10 00:42:26 +02:00
}