From 5e9101dd36b6b8f201377f8b544e27db94981aee Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 10 Aug 2018 17:50:27 -0300 Subject: [PATCH] glslang: update to 7.8.2850. --- srcpkgs/glslang/allow-dynamic-linking.patch | 114 ------------------ .../patches/allow-dynamic-linking.patch | 110 ----------------- srcpkgs/glslang/template | 6 +- 3 files changed, 3 insertions(+), 227 deletions(-) delete mode 100644 srcpkgs/glslang/allow-dynamic-linking.patch delete mode 100644 srcpkgs/glslang/patches/allow-dynamic-linking.patch diff --git a/srcpkgs/glslang/allow-dynamic-linking.patch b/srcpkgs/glslang/allow-dynamic-linking.patch deleted file mode 100644 index 99197dc6ee..0000000000 --- a/srcpkgs/glslang/allow-dynamic-linking.patch +++ /dev/null @@ -1,114 +0,0 @@ ---- CMakeLists.txt -+++ CMakeLists.txt -@@ -9,6 +9,14 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON) - # Adhere to GNU filesystem layout conventions - include(GNUInstallDirs) - -+option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF) -+ -+set(LIB_TYPE STATIC) -+ -+if(BUILD_SHARED_LIBS) -+ set(LIB_TYPE SHARED) -+endif() -+ - option(SKIP_GLSLANG_INSTALL "Skip installation" ${SKIP_GLSLANG_INSTALL}) - if(NOT ${SKIP_GLSLANG_INSTALL}) - set(ENABLE_GLSLANG_INSTALL ON) ---- SPIRV/CMakeLists.txt -+++ SPIRV/CMakeLists.txt -@@ -40,11 +40,11 @@ if(ENABLE_NV_EXTENSIONS) - GLSL.ext.NV.h) - endif(ENABLE_NV_EXTENSIONS) - --add_library(SPIRV STATIC ${SOURCES} ${HEADERS}) -+add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS}) - set_property(TARGET SPIRV PROPERTY FOLDER glslang) - set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON) - --add_library(SPVRemapper STATIC ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS}) -+add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS}) - set_property(TARGET SPVRemapper PROPERTY FOLDER glslang) - set_property(TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON) - ---- StandAlone/CMakeLists.txt -+++ StandAlone/CMakeLists.txt -@@ -44,4 +44,9 @@ if(ENABLE_GLSLANG_INSTALL) - - install(TARGETS spirv-remap - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ -+ if(BUILD_SHARED_LIBS) -+ install(TARGETS glslang-default-resource-limits -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ endif() - endif(ENABLE_GLSLANG_INSTALL) ---- glslang/CMakeLists.txt -+++ glslang/CMakeLists.txt -@@ -80,7 +80,7 @@ set(HEADERS - # WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) - # set(BISON_GLSLParser_OUTPUT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/MachineIndependent/glslang_tab.cpp) - --add_library(glslang STATIC ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS}) -+add_library(glslang ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS}) - set_property(TARGET glslang PROPERTY FOLDER glslang) - set_property(TARGET glslang PROPERTY POSITION_INDEPENDENT_CODE ON) - target_link_libraries(glslang OGLCompiler OSDependent) ---- hlsl/CMakeLists.txt -+++ hlsl/CMakeLists.txt -@@ -17,7 +17,7 @@ set(HEADERS - hlslGrammar.h - hlslParseables.h) - --add_library(HLSL STATIC ${SOURCES} ${HEADERS}) -+add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS}) - set_property(TARGET HLSL PROPERTY FOLDER hlsl) - set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON) - ---- SPIRV/CMakeLists.txt -+++ SPIRV/CMakeLists.txt -@@ -64,8 +64,14 @@ if(WIN32) - endif(WIN32) - - if(ENABLE_GLSLANG_INSTALL) -+ if(BUILD_SHARED_LIBS) -+ install(TARGETS SPIRV SPVRemapper -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ else() - install(TARGETS SPIRV SPVRemapper - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ endif() - - install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/SPIRV/) - endif(ENABLE_GLSLANG_INSTALL) ---- glslang/CMakeLists.txt -+++ glslang/CMakeLists.txt -@@ -97,8 +97,14 @@ if(WIN32) - endif(WIN32) - - if(ENABLE_GLSLANG_INSTALL) -+ if(BUILD_SHARED_LIBS) -+ install(TARGETS glslang -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ else() - install(TARGETS glslang - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ endif() - endif(ENABLE_GLSLANG_INSTALL) - - if(ENABLE_GLSLANG_INSTALL) ---- hlsl/CMakeLists.txt -+++ hlsl/CMakeLists.txt -@@ -26,6 +26,11 @@ if(WIN32) - endif(WIN32) - - if(ENABLE_GLSLANG_INSTALL) -+ if(BUILD_SHARED_LIBS) - install(TARGETS HLSL -- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ LIBRARY ${CMAKE_INSTALL_LIBDIR}) -+ else() -+ install(TARGETS HLSL -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ endif() - endif(ENABLE_GLSLANG_INSTALL) diff --git a/srcpkgs/glslang/patches/allow-dynamic-linking.patch b/srcpkgs/glslang/patches/allow-dynamic-linking.patch deleted file mode 100644 index 32457bbd50..0000000000 --- a/srcpkgs/glslang/patches/allow-dynamic-linking.patch +++ /dev/null @@ -1,110 +0,0 @@ ---- CMakeLists.txt -+++ CMakeLists.txt -@@ -9,6 +9,14 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON) - # Adhere to GNU filesystem layout conventions - include(GNUInstallDirs) - -+option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF) -+ -+set(LIB_TYPE STATIC) -+ -+if(BUILD_SHARED_LIBS) -+ set(LIB_TYPE SHARED) -+endif() -+ - option(SKIP_GLSLANG_INSTALL "Skip installation" ${SKIP_GLSLANG_INSTALL}) - if(NOT ${SKIP_GLSLANG_INSTALL}) - set(ENABLE_GLSLANG_INSTALL ON) ---- SPIRV/CMakeLists.txt -+++ SPIRV/CMakeLists.txt -@@ -40,11 +40,11 @@ if(ENABLE_NV_EXTENSIONS) - GLSL.ext.NV.h) - endif(ENABLE_NV_EXTENSIONS) - --add_library(SPIRV STATIC ${SOURCES} ${HEADERS}) -+add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS}) - set_property(TARGET SPIRV PROPERTY FOLDER glslang) - set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON) - --add_library(SPVRemapper STATIC ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS}) -+add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS}) - set_property(TARGET SPVRemapper PROPERTY FOLDER glslang) - set_property(TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON) - -@@ -64,8 +64,13 @@ if(WIN32) - endif(WIN32) - - if(ENABLE_GLSLANG_INSTALL) -- install(TARGETS SPIRV SPVRemapper -+ if(BUILD_SHARED_LIBS) -+ install(TARGETS SPIRV SPVRemapper -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ else() -+ install(TARGETS SPIRV SPVRemapper - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ endif() - - install(FILES ${HEADERS} ${SPVREMAP_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/SPIRV/) - endif(ENABLE_GLSLANG_INSTALL) ---- StandAlone/CMakeLists.txt -+++ StandAlone/CMakeLists.txt -@@ -44,4 +44,9 @@ if(ENABLE_GLSLANG_INSTALL) - - install(TARGETS spirv-remap - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -+ -+ if(BUILD_SHARED_LIBS) -+ install(TARGETS glslang-default-resource-limits -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ endif() - endif(ENABLE_GLSLANG_INSTALL) ---- glslang/CMakeLists.txt -+++ glslang/CMakeLists.txt -@@ -80,7 +80,7 @@ set(HEADERS - # WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) - # set(BISON_GLSLParser_OUTPUT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/MachineIndependent/glslang_tab.cpp) - --add_library(glslang STATIC ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS}) -+add_library(glslang ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS}) - set_property(TARGET glslang PROPERTY FOLDER glslang) - set_property(TARGET glslang PROPERTY POSITION_INDEPENDENT_CODE ON) - target_link_libraries(glslang OGLCompiler OSDependent) -@@ -97,8 +97,13 @@ if(WIN32) - endif(WIN32) - - if(ENABLE_GLSLANG_INSTALL) -- install(TARGETS glslang -+ if(BUILD_SHARED_LIBS) -+ install(TARGETS glslang -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ else() -+ install(TARGETS glslang - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ endif() - endif(ENABLE_GLSLANG_INSTALL) - - if(ENABLE_GLSLANG_INSTALL) ---- hlsl/CMakeLists.txt -+++ hlsl/CMakeLists.txt -@@ -17,7 +17,7 @@ set(HEADERS - hlslGrammar.h - hlslParseables.h) - --add_library(HLSL STATIC ${SOURCES} ${HEADERS}) -+add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS}) - set_property(TARGET HLSL PROPERTY FOLDER hlsl) - set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON) - -@@ -26,6 +26,11 @@ if(WIN32) - endif(WIN32) - - if(ENABLE_GLSLANG_INSTALL) -- install(TARGETS HLSL -+ if(BUILD_SHARED_LIBS) -+ install(TARGETS HLSL -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ else() -+ install(TARGETS HLSL - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+ endif() - endif(ENABLE_GLSLANG_INSTALL) diff --git a/srcpkgs/glslang/template b/srcpkgs/glslang/template index c148c719f8..b258cb744b 100644 --- a/srcpkgs/glslang/template +++ b/srcpkgs/glslang/template @@ -1,7 +1,7 @@ # Template file for 'glslang' pkgname=glslang -version=6.2.2596 -revision=2 +version=7.8.2850 +revision=1 build_style=cmake configure_args="-DBUILD_SHARED_LIBS=ON" hostmakedepends="python bison" @@ -10,7 +10,7 @@ maintainer="maxice8 " license="BSD-3-Clause" homepage="https://github.com/KhronosGroup/glslang" distfiles="https://github.com/KhronosGroup/glslang/archive/${version}.tar.gz" -checksum=fce7ec22e66043fb59e4a3c369445ea8c57f2631a04b6a0015f19a7bc954567e +checksum=0130961fb86ace513164c2f81f21e3648fd6c31ccc903e02b134a2a6ee9bbcde glslang-devel_package() { depends="glslang-${version}_${revision}"