40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'glslViewer'
|
|
pkgname=glslViewer
|
|
version=3.0.7
|
|
revision=1
|
|
_vera_gitrev="a3538e06ecbfe0694e2a64fc51ce6c4ee018a9a0"
|
|
build_wrksrc=${pkgname}
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config"
|
|
makedepends="glfw-devel glu-devel MesaLib-devel libX11-devel libXrandr-devel
|
|
libXi-devel libXxf86vm-devel libXcursor-devel libXinerama-devel libXext-devel
|
|
libXrender-devel libXdamage-devel ncurses-devel liblo-devel"
|
|
short_desc="Live GLSL coding render"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://patriciogonzalezvivo.com/2015/glslViewer/"
|
|
distfiles="https://github.com/patriciogonzalezvivo/glslViewer/archive/${version}.tar.gz
|
|
https://github.com/patriciogonzalezvivo/vera/archive/${_vera_gitrev}.tar.gz"
|
|
checksum="4d8bac6a801fa61b81e472a8dabfe5469a43c44547d558849a078ed2c26c8034
|
|
a71f149e84afdf12aa88555efef09d0e420c5d5c6ba9c2d67126ecc49fddaff0"
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
post_extract() {
|
|
mv ${pkgname}-${version} ${build_wrksrc}
|
|
mv vera-${_vera_gitrev}/* ${build_wrksrc}/deps/vera
|
|
}
|
|
|
|
pre_configure() {
|
|
if [ -z "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
vsed -e '/target_link_libraries(glslViewer PRIVATE atomic)/d' \
|
|
-i CMakeLists.txt
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|