void-packages/srcpkgs/glslViewer/template

45 lines
1.8 KiB
Bash

# Template file for 'glslViewer'
pkgname=glslViewer
version=3.2.4
revision=1
_lygia_gitrev="84eae417ba4bb333dab9204dc303c43ef6a223e8"
_pybind11_gitrev="68211d41c1ef94fa65ef27ea2a6cdd8677996635"
_vera_gitrev="93b2496679c005a723d3e04327199602955ed1dc"
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/lygia/archive/${_lygia_gitrev}.tar.gz>lygia-${_lygia_gitrev}.tar.gz
https://github.com/pybind/pybind11/archive/${_pybind11_gitrev}.tar.gz>pybind11-${_pybind11_gitrev}.tar.gz
https://github.com/patriciogonzalezvivo/vera/archive/${_vera_gitrev}.tar.gz>vera-${_vera_gitrev}.tar.gz"
checksum="3b65172f54d0c5e5f909a31db20c16451355c6c623af6d6e0e3ef690746acb1f
199d651d6f843dd31872229f263cc5408d7e79db2d4d9f8a263e3cd02e4cbbfd
4dc757ad3ab7ba4564dbabfc47eb7d4f3b53a36de0fbc04bf07fd0373e1d5621
eccbfe0e94fc4e333de1975e48deadd606cb954a4109b734573928b49b579a5a"
skip_extraction="lygia-${_lygia_gitrev}.tar.gz
pybind11-${_pybind11_gitrev}.tar.gz
vera-${_vera_gitrev}.tar.gz"
post_extract() {
vsrcextract -C deps/lygia "lygia-${_lygia_gitrev}.tar.gz"
vsrcextract -C deps/pybind11 "pybind11-${_pybind11_gitrev}.tar.gz"
vsrcextract -C deps/vera "vera-${_vera_gitrev}.tar.gz"
}
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
}