103ab731ab
* runit is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'renderdoc'
|
|
pkgname=renderdoc
|
|
version=1.12
|
|
revision=2
|
|
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
|
|
-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
|
|
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"
|
|
checksum=4dece1b4cb859a76533b28fcd50e17321acfaa81c3435500a006c4a5ba15fddb
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
makedepends+=" libexecinfo-devel"
|
|
LDLIBS="-lexecinfo"
|
|
broken="uses RTLD_DL_LINKMAP, RTLD_DEEPBIND, _r_debug"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
nocross="Cross-compilation can't find python3 interpreter"
|
|
|
|
post_patch() {
|
|
[ -z "$XBPS_TARGET_NO_ATOMIC8" ] && return 0
|
|
vsed -i 's,#libatomic , ,' renderdoc/CMakeLists.txt
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
vlicense docs/credits_acknowledgements.rst
|
|
}
|