54 lines
1.9 KiB
Bash
54 lines
1.9 KiB
Bash
# Template file for 'renderdoc'
|
|
pkgname=renderdoc
|
|
version=1.21
|
|
revision=2
|
|
_plt_ver=dbadbe14d601913b81a4a7533b284b6ccd7351d8
|
|
build_style=cmake
|
|
configure_args="-DENABLE_GL=ON -DENABLE_GLES=ON -DENABLE_QRENDERDOC=ON
|
|
-DENABLE_RENDERDOCCMD=ON -DENABLE_VULKAN=ON -DENABLE_XCB=ON -DENABLE_XLIB=ON
|
|
-DBUILD_VERSION_STABLE=ON -DBUILD_VERSION_DIST_NAME=VoidLinux
|
|
-DBUILD_VERSION_DIST_CONTACT=https://voidlinux.org
|
|
-DENABLE_PYRENDERDOC=ON"
|
|
hostmakedepends="bison autoconf automake pkg-config python3 swig"
|
|
makedepends="libX11-devel libxcb-devel xcb-util-keysyms-devel qt5-devel
|
|
libzstd-devel liblz4-devel pugixml-devel
|
|
qt5-svg-devel qt5-x11extras-devel pcre-devel python3-devel"
|
|
short_desc="Stand-alone graphics debugging tool for Vulkan and OpenGL"
|
|
maintainer="Urs Schulz <voidpkgs@ursschulz.de>"
|
|
license="MIT"
|
|
homepage="https://github.com/baldurk/renderdoc"
|
|
distfiles="https://github.com/baldurk/${pkgname}/archive/v${version}.tar.gz
|
|
https://raw.githubusercontent.com/kubo/plthook/${_plt_ver}/plthook.h
|
|
https://raw.githubusercontent.com/kubo/plthook/${_plt_ver}/plthook_elf.c
|
|
"
|
|
checksum="7c12546857ffd4521a859f45161224b0f89aa6f951cfbca2bfbe22db9c2f95a6
|
|
2a30a118858ba1d5753f365a375cc93020012a35e3f596dcdb490ad70519cdb5
|
|
68c858dcb829e07bb60d47fbb962b240797dd82960a53c25ac69513e90aff6fa"
|
|
|
|
skip_extraction="plthook.h plthook_elf.c"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
makedepends+=" libexecinfo-devel"
|
|
configure_args+=" -DNEED_LIBEXECINFO=ON"
|
|
# broken="uses RTLD_DL_LINKMAP, RTLD_DEEPBIND, _r_debug"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
configure_args+=" -DNEED_LIBATOMIC=ON"
|
|
fi
|
|
|
|
nocross="Cross-compilation can't find python3 interpreter"
|
|
|
|
post_extract() {
|
|
for _f in $skip_extraction; do
|
|
cp $XBPS_SRCDISTDIR/${pkgname}-${version}/$_f \
|
|
renderdoc/3rdparty/plthook
|
|
done
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
vlicense docs/credits_acknowledgements.rst
|
|
}
|