New package: glslViewer-1.5.5

closes #2307
This commit is contained in:
maxice8 2019-02-20 04:24:33 -03:00 committed by maxice8
parent 914764fd10
commit 629fe86e38
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,15 @@
diff --git a/src/window.cpp b/src/window.cpp
index 66cf765..fc8f44c 100644
--- src/window.cpp
+++ src/window.cpp
@@ -204,6 +204,9 @@ void initGL (glm::ivec4 &_viewport, bool _headless, bool _alwaysOnTop) {
glfwWindowHint(GLFW_FLOATING, GL_TRUE);
}
+ // Make it float
+ glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);
+
window = glfwCreateWindow(_viewport.z, _viewport.w, appTitle.c_str(), NULL, NULL);
if(!window) {

View file

@ -0,0 +1,32 @@
# Template file for 'glslViewer'
pkgname=glslViewer
version=1.5.5
revision=1
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="pkgconf"
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="maxice8 <thinkabit.ukim@gmail.com>"
license="BSD-3-Clause"
homepage="http://patriciogonzalezvivo.com/2015/glslViewer/"
distfiles="https://github.com/patriciogonzalezvivo/glslViewer/archive/${version}.tar.gz"
checksum=28a784d701294fd335031ab293c5f4764a498f84714b1ae677dbc4e05ed94b23
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="Requires lots -D_GNU_SOURCE=1 and #include <sys/types.h>" ;;
esac
pre_build() {
# can obscure real errors
vsed -e 's|-fpermissive||g' \
-e 's|^CXX =.*||g' \
-i Makefile
}
do_install() {
vbin bin/glslViewer
vlicense LICENSE
}