mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-11 23:00:52 +00:00
04e5fcd051
This commit has been automatically submitted by Github Actions.
43 lines
1.4 KiB
Bash
43 lines
1.4 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/KhronosGroup/Vulkan-Loader
|
|
TERMUX_PKG_DESCRIPTION="Vulkan Loader"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.4.303"
|
|
TERMUX_PKG_SRCURL=https://github.com/KhronosGroup/Vulkan-Loader/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=248a5f7dbf990609f61dac34d19e43f441ccc31fd5ec49b64e807740099057a9
|
|
TERMUX_PKG_BUILD_DEPENDS="vulkan-headers (=${TERMUX_PKG_VERSION}), libx11, libxcb, libxrandr"
|
|
TERMUX_PKG_CONFLICTS="vulkan-loader-android"
|
|
TERMUX_PKG_PROVIDES="vulkan-loader-android"
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
|
|
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+.\d+.\d+"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DBUILD_TESTS=OFF
|
|
-DCMAKE_SYSTEM_NAME=Linux
|
|
-DENABLE_WERROR=OFF
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$TERMUX_PREFIX
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
CPPFLAGS+=" -Wno-typedef-redefinition"
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
# Sanity check
|
|
echo "INFO: ========== vulkan.pc =========="
|
|
cat "$TERMUX_PREFIX/lib/pkgconfig/vulkan.pc"
|
|
echo "INFO: ========== vulkan.pc =========="
|
|
|
|
# Lots of apps will search libvulkan.so.1
|
|
local e=0
|
|
[ ! -e "$TERMUX_PREFIX"/lib/libvulkan.so ] && e=1
|
|
[ ! -e "$TERMUX_PREFIX"/lib/libvulkan.so.1 ] && e=1
|
|
if [[ "${e}" != 0 ]]; then
|
|
termux_error_exit "
|
|
Symlink check failed!
|
|
$(file "$TERMUX_PREFIX"/lib/libvulkan.so)
|
|
$(file "$TERMUX_PREFIX"/lib/libvulkan.so.1)
|
|
"
|
|
fi
|
|
}
|