tigervnc: source xorg-server-xvfb's build.sh to get configure args

Instead of implementing custom function in the build recipe.

%ci:no-build
This commit is contained in:
Henrik Grimler 2022-02-21 21:37:24 +01:00 committed by Yaksh Bariya
parent c996aeccce
commit 34da5307a6
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 2 additions and 6 deletions

View File

@ -45,13 +45,14 @@ termux_step_pre_configure() {
CPPFLAGS="${CPPFLAGS} -I${TERMUX_PREFIX}/include/libdrm"
LDFLAGS="${LDFLAGS} -llog"
local xorg_server_xvfb_configure_args="$(. $TERMUX_SCRIPTDIR/packages/xorg-server-xvfb/build.sh; echo $TERMUX_PKG_EXTRA_CONFIGURE_ARGS)"
./configure \
--host="${TERMUX_HOST_PLATFORM}" \
--prefix="${TERMUX_PREFIX}" \
--disable-static \
--disable-nls \
--enable-debug \
`TERMUX_PREFIX=${TERMUX_PREFIX} bash ${TERMUX_SCRIPTDIR}/packages/xorg-server-xvfb/build.sh xorg_server_flags`
${xorg_server_xvfb_configure_args}
LDFLAGS="${LDFLAGS} -landroid-shmem"

View File

@ -70,8 +70,3 @@ termux_step_pre_configure() {
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-debug"
fi
}
## The following is required for package 'tigervnc'.
if [ "${#}" -eq 1 ] && [ "${1}" == "xorg_server_flags" ]; then
echo ${TERMUX_PKG_EXTRA_CONFIGURE_ARGS}
fi