TERMUX_PKG_HOMEPAGE=https://xorg.freedesktop.org/wiki/ TERMUX_PKG_DESCRIPTION="Wayland X11 server" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=22.1.0 TERMUX_PKG_REVISION=14 TERMUX_PKG_SRCURL=https://gitlab.freedesktop.org/xorg/xserver/-/archive/xwayland-${TERMUX_PKG_VERSION}/xserver-xwayland-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=a81d8243f37e75a03d4f8c55f96d0bc25802be6ec45c3bfa5cb614c6d01bac9d TERMUX_PKG_DEPENDS="libandroid-shmem, libdrm, libpciaccess, libpixman, libx11, libxau, libxfont2, libxinerama, libxkbfile, libxshmfence, mesa, openssl, xkeyboard-config, xorg-xkbcomp, libwayland, libwayland-protocols, libepoxy" TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" -Dmitshm=true -Dxres=true -Dxv=true -Dxvmc=true -Ddga=true -Dscreensaver=true -Dxdmcp=true -Dglx=false -Ddri=false -Ddri2=false -Ddri3=false -Dxinerama=true -Dxace=true -Dxcsecurity=true -Dxf86bigfont=true -Dvgahw=false -Dint10=false -Ddrm=true -Dpciaccess=false -Dlinux_acpi=false -Dlinux_apm=false -Dxorg=false -Dglamor=false -Dxvfb=false -Dxnest=false -Dxwayland=true -Dxwin=false -Dsha1=libcrypto -Ddefault-font_path=${TERMUX_PREFIX}/share/fonts -Dxkb-dir=${TERMUX_PREFIX}/share/X11/xkb LIBS=-landroid-shmem" # Remove files conflicting with xorg-server: TERMUX_PKG_RM_AFTER_INSTALL=" share/X11/xkb/compiled share/man/man1/Xserver.1 " termux_step_pre_configure() { CFLAGS+=" -fcommon -fPIC -DFNDELAY=O_NDELAY -Wno-int-to-pointer-cast" CPPFLAGS+=" -fcommon -fPIC -I${TERMUX_PREFIX}/include/libdrm" if [ "${TERMUX_DEBUG_BUILD}" = "true" ]; then TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-debug" fi # fixing automake version mismatch cd ${TERMUX_PKG_SRCDIR} files=`find . -name configure -o -name config.status -o -name Makefile.in` for file in $files; do rm $file; done unset files #you will need xutils-dev package for xorg-macros installed autoreconf -if cd - }