Skip to content

Commit

Permalink
multimedia/libopenshot: Fix build with protobuf 22+
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Dec 14, 2023
1 parent 1999831 commit 8ab7917
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 3 additions & 2 deletions multimedia/libopenshot/Makefile
Expand Up @@ -33,6 +33,7 @@ CMAKE_ON= USE_SYSTEM_JSONCPP DISABLE_BUNDLED_JSONCPP\
CMAKE_DISABLE_FIND_PACKAGE_Catch2
CMAKE_OFF= ENABLE_PARALLEL_CTEST VERBOSE_TESTS ENABLE_COVERAGE\
APPIMAGE_BUILD BUILD_TESTING ENABLE_TESTS
USE_CXXSTD= c++17

OPTIONS_DEFINE= DOCS IMAGEMAGICK OPENCV RESVG RUBY
OPTIONS_DEFAULT= IMAGEMAGICK OPENCV
Expand Down Expand Up @@ -61,9 +62,9 @@ RUBY_CMAKE_BOOL= ENABLE_RUBY
RUBY_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_Ruby

.if !exists(/usr/include/omp.h)
USES+= compiler:gcc-c++11-lib
USES+= compiler:gcc-c++17-lib
.else
USES+= compiler:c++14-lang
USES+= compiler:c++17-lang
.endif

.include <bsd.port.mk>
11 changes: 10 additions & 1 deletion multimedia/libopenshot/files/patch-CMakeLists.txt
@@ -1,5 +1,14 @@
--- CMakeLists.txt.orig 2022-12-01 22:04:03 UTC
--- CMakeLists.txt.orig 2023-04-19 22:01:02 UTC
+++ CMakeLists.txt
@@ -102,7 +102,7 @@ if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") AND
endif()

#### Set C++ standard level
-set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

@@ -135,7 +135,7 @@ endif()
### Process subdirectories
###
Expand Down

0 comments on commit 8ab7917

Please sign in to comment.