31 lines
946 B
Bash
31 lines
946 B
Bash
# Template file for 'glslViewer'
|
|
pkgname=glslViewer
|
|
version=1.6.8
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
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"
|
|
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"
|
|
checksum=3792984457c9487cd1f87374b7698f3b66f4480b3eeac7d940a2ecf9e74dee3e
|
|
|
|
pre_build() {
|
|
# can obscure real errors
|
|
vsed -e 's|-fpermissive||g' \
|
|
-e 's|^CXX =.*||g' \
|
|
-i Makefile
|
|
|
|
vsed -e '/window = glfwCreateWindow/i glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);' \
|
|
-i src/window.cpp
|
|
}
|
|
|
|
do_install() {
|
|
vbin bin/glslViewer
|
|
vlicense LICENSE
|
|
}
|