glslViewer: update to 3.0.7.

This commit is contained in:
Krul Ceter 2022-11-16 01:36:02 +03:00 committed by Michal Vasilek
parent 83bb800262
commit d2ce1c0f12
2 changed files with 56 additions and 15 deletions

View file

@ -0,0 +1,33 @@
--- a/glslViewer/CMakeLists.txt
+++ b/glslViewer/CMakeLists.txt
@@ -31,7 +31,10 @@
add_executable(glslViewer ${ROOT_SOURCE})
-include_directories(deps/liblo)
+include(FindPkgConfig)
+pkg_search_module(LIBLO REQUIRED liblo>=0.31)
+include_directories(glslViewer PRIVATE ${LIBLO_INCLUDE_DIRS})
+target_link_libraries(glslViewer PRIVATE ${LIBLO_LIBRARIES})
target_include_directories(glslViewer PRIVATE deps)
target_link_libraries(glslViewer PRIVATE vera)
target_compile_definitions(glslViewer PRIVATE GLSLVIEWER_VERSION_MAJOR=${VERSION_MAJOR})
@@ -151,7 +154,7 @@
set(CPACK_GENERATOR "ZIP")
else()
- target_link_libraries(glslViewer PRIVATE pthread dl lo_static)
+ target_link_libraries(glslViewer PRIVATE pthread dl)
install(TARGETS glslViewer DESTINATION bin)
if (NOT APPLE)
--- a/glslViewer/deps/CMakeLists.txt
+++ b/glslViewer/deps/CMakeLists.txt
@@ -1,6 +1,2 @@
## Ada
add_subdirectory(vera)
-
-if (NOT EMSCRIPTEN)
- add_subdirectory(liblo/cmake)
-endif()
\ No newline at end of file

View file

@ -1,31 +1,39 @@
# Template file for 'glslViewer' # Template file for 'glslViewer'
pkgname=glslViewer pkgname=glslViewer
version=1.6.8 version=3.0.7
revision=1 revision=1
build_style=gnu-makefile _vera_gitrev="a3538e06ecbfe0694e2a64fc51ce6c4ee018a9a0"
make_use_env=yes build_wrksrc=${pkgname}
build_style=cmake
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="glfw-devel glu-devel MesaLib-devel libX11-devel libXrandr-devel makedepends="glfw-devel glu-devel MesaLib-devel libX11-devel libXrandr-devel
libXi-devel libXxf86vm-devel libXcursor-devel libXinerama-devel libXext-devel libXi-devel libXxf86vm-devel libXcursor-devel libXinerama-devel libXext-devel
libXrender-devel libXdamage-devel" libXrender-devel libXdamage-devel ncurses-devel liblo-devel"
short_desc="Live GLSL coding render" short_desc="Live GLSL coding render"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause" license="BSD-3-Clause"
homepage="http://patriciogonzalezvivo.com/2015/glslViewer/" homepage="http://patriciogonzalezvivo.com/2015/glslViewer/"
distfiles="https://github.com/patriciogonzalezvivo/glslViewer/archive/${version}.tar.gz" distfiles="https://github.com/patriciogonzalezvivo/glslViewer/archive/${version}.tar.gz
checksum=3792984457c9487cd1f87374b7698f3b66f4480b3eeac7d940a2ecf9e74dee3e https://github.com/patriciogonzalezvivo/vera/archive/${_vera_gitrev}.tar.gz"
checksum="4d8bac6a801fa61b81e472a8dabfe5469a43c44547d558849a078ed2c26c8034
a71f149e84afdf12aa88555efef09d0e420c5d5c6ba9c2d67126ecc49fddaff0"
pre_build() { if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
# can obscure real errors makedepends+=" libatomic-devel"
vsed -e 's|-fpermissive||g' \ fi
-e 's|^CXX =.*||g' \
-i Makefile
vsed -e '/window = glfwCreateWindow/i glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);' \ post_extract() {
-i src/window.cpp mv ${pkgname}-${version} ${build_wrksrc}
mv vera-${_vera_gitrev}/* ${build_wrksrc}/deps/vera
} }
do_install() { pre_configure() {
vbin bin/glslViewer if [ -z "$XBPS_TARGET_NO_ATOMIC8" ]; then
vsed -e '/target_link_libraries(glslViewer PRIVATE atomic)/d' \
-i CMakeLists.txt
fi
}
post_install() {
vlicense LICENSE vlicense LICENSE
} }