glslViewer: update to 1.6.0

This commit is contained in:
Nathan Owens 2019-11-06 22:46:59 -06:00 committed by Helmut Pozimski
parent 3ca5f84d7b
commit 06d8b39359
2 changed files with 6 additions and 22 deletions

View file

@ -1,15 +0,0 @@
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

@ -1,7 +1,7 @@
# Template file for 'glslViewer'
pkgname=glslViewer
version=1.5.5
revision=2
version=1.6.0
revision=1
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="pkg-config"
@ -13,17 +13,16 @@ 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=28a784d701294fd335031ab293c5f4764a498f84714b1ae677dbc4e05ed94b23
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="Requires lots -D_GNU_SOURCE=1 and #include <sys/types.h>" ;;
esac
checksum=9235fefc41130ad4088c50c76a1f246069fe4986e42df972e352549d16d935b7
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() {