aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVVD <vvd@unislabs.com>2022-12-25 14:48:59 +0000
committerNuno Teixeira <eduardo@FreeBSD.org>2022-12-26 05:25:47 +0000
commit8d6f4615f7bf470857eba99d8128e93b5c0ff573 (patch)
tree60779ba72b03ac8149eb1f24395b39642a1011c5
parent4a8fb590ff26e8247fe52869a8fb709257f33adb (diff)
downloadports-8d6f4615f7bf470857eba99d8128e93b5c0ff573.tar.gz
ports-8d6f4615f7bf470857eba99d8128e93b5c0ff573.zip
audio/libopenshot-audio: Update to 0.3.0
-rw-r--r--audio/libopenshot-audio/Makefile17
-rw-r--r--audio/libopenshot-audio/distinfo6
-rw-r--r--audio/libopenshot-audio/files/patch-CMakeLists.txt43
-rw-r--r--audio/libopenshot-audio/pkg-plist4
4 files changed, 30 insertions, 40 deletions
diff --git a/audio/libopenshot-audio/Makefile b/audio/libopenshot-audio/Makefile
index 8601c263247d..31a631589504 100644
--- a/audio/libopenshot-audio/Makefile
+++ b/audio/libopenshot-audio/Makefile
@@ -1,6 +1,6 @@
PORTNAME= libopenshot-audio
DISTVERSIONPREFIX= v
-DISTVERSION= 0.2.2
+DISTVERSION= 0.3.0
CATEGORIES= audio multimedia
MAINTAINER= tatsuki_makino@hotmail.com
@@ -18,21 +18,14 @@ USES= cmake compiler:c++14-lang
USE_GITHUB= yes
GH_ACCOUNT= OpenShot
USE_LDCONFIG= yes
-CMAKE_OFF= DOXYFILE_LATEX
+CMAKE_ON= AUTO_INSTALL_DOCS
+CMAKE_OFF= APPIMAGE_BUILD
OPTIONS_DEFINE= DOCS
-OPTIONS_DEFAULT=
DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
-DOCS_USES= python:3.6+,build
-DOCS_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_Doxygen\
- CMAKE_DISABLE_FIND_PACKAGE_PythonInterp
+DOCS_CMAKE_BOOL= ENABLE_AUDIO_DOCS
+DOCS_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_Doxygen
DOCS_CMAKE_ON= -DCMAKE_INSTALL_DOCDIR:PATH=${DOCSDIR_REL:Q}
DOCS_PORTDOCS= *
-do-build-DOCS-on:
- @(cd ${BUILD_WRKSRC}; if ! ${DO_MAKE_BUILD} doc; then \
- (${ECHO_CMD} "===> ${.TARGET} failed unexpectedly.") | ${FMT_80} ; \
- ${FALSE}; \
- fi)
-
.include <bsd.port.mk>
diff --git a/audio/libopenshot-audio/distinfo b/audio/libopenshot-audio/distinfo
index e3c34bdbfc8e..d179bbb4efe3 100644
--- a/audio/libopenshot-audio/distinfo
+++ b/audio/libopenshot-audio/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1633834800
-SHA256 (OpenShot-libopenshot-audio-v0.2.2_GH0.tar.gz) = 66bedfda0d8d430598b21bc2dde6c0016a758a6c83467d0273a9d692de10baaf
-SIZE (OpenShot-libopenshot-audio-v0.2.2_GH0.tar.gz) = 1808059
+TIMESTAMP = 1670814000
+SHA256 (OpenShot-libopenshot-audio-v0.3.0_GH0.tar.gz) = 007ba6ee812a58506341dd66055dba575b3907e5274a0e7416f99c2fbb80021c
+SIZE (OpenShot-libopenshot-audio-v0.3.0_GH0.tar.gz) = 1772242
diff --git a/audio/libopenshot-audio/files/patch-CMakeLists.txt b/audio/libopenshot-audio/files/patch-CMakeLists.txt
index a6d6ab1c3daf..328d65c1ae0d 100644
--- a/audio/libopenshot-audio/files/patch-CMakeLists.txt
+++ b/audio/libopenshot-audio/files/patch-CMakeLists.txt
@@ -1,20 +1,19 @@
---- CMakeLists.txt.orig 2021-09-04 23:24:41 UTC
+--- CMakeLists.txt.orig 2022-12-01 22:02:54 UTC
+++ CMakeLists.txt
-@@ -171,6 +171,13 @@ set_target_properties(openshot-audio PROPERTIES
+@@ -184,6 +184,12 @@ set_target_properties(openshot-audio PROPERTIES
EXPORT_NAME Audio # Exports as OpenShot::Audio target
)
-+if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
-+ find_package(Threads REQUIRED)
-+ if(Threads_FOUND)
-+ target_link_libraries(openshot-audio PRIVATE ${CMAKE_THREAD_LIBS_INIT})
-+ endif(Threads_FOUND)
-+endif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
++# Thread library
++find_package(Threads REQUIRED)
++if(Threads_FOUND)
++ target_link_libraries(openshot-audio PRIVATE ${CMAKE_THREAD_LIBS_INIT})
++endif(Threads_FOUND)
+
# Require language features we use
if(CMAKE_VERSION VERSION_GREATER 3.8)
target_compile_features(openshot-audio PUBLIC
-@@ -189,7 +196,8 @@ endif()
+@@ -202,7 +208,8 @@ endif()
# Enable stack-unwinding support in c objects on gcc-based platforms.
# Failing to do so will cause your program to be terminated when a png
# or a jpeg exception is thrown on linux or macosx.
@@ -24,7 +23,7 @@
target_compile_options(openshot-audio PRIVATE -fexceptions)
endif()
-@@ -252,8 +260,8 @@ if(UNIX AND NOT APPLE)
+@@ -265,8 +272,8 @@ if(UNIX AND NOT APPLE)
INTERFACE_INCLUDE_DIRECTORIES ${ALSA_INCLUDE_DIR}
INTERFACE_LINK_LIBRARIES ${ALSA_LIBRARIES})
endif()
@@ -35,7 +34,7 @@
else()
# For EXPORTED Config
set(NEED_ALSA FALSE)
-@@ -261,10 +269,24 @@ endif()
+@@ -274,10 +281,22 @@ endif()
# ZLIB -- uses IMPORTED target ZLIB::ZLIB which has existed since CMake 3.1
find_package(ZLIB REQUIRED)
@@ -43,18 +42,16 @@
+target_link_libraries(openshot-audio PRIVATE ZLIB::ZLIB)
+# EXECINFO, SYSINFO
-+if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
-+ find_library(EXECINFO_LIBRARY NAMES execinfo)
-+ if(NOT EXECINFO_LIBRARY)
-+ message(FATAL_ERROR "${EXECINFO_LIBRARY}")
-+ endif(NOT EXECINFO_LIBRARY)
-+ target_link_libraries(openshot-audio PRIVATE ${EXECINFO_LIBRARY})
-+ find_library(SYSINFO_LIBRARY NAMES sysinfo)
-+ if(NOT SYSINFO_LIBRARY)
-+ message(FATAL_ERROR "${SYSINFO_LIBRARY}")
-+ endif(NOT SYSINFO_LIBRARY)
-+ target_link_libraries(openshot-audio PRIVATE ${SYSINFO_LIBRARY})
-+endif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
++find_library(EXECINFO_LIBRARY NAMES execinfo)
++if(NOT EXECINFO_LIBRARY)
++ message(FATAL_ERROR "${EXECINFO_LIBRARY}")
++endif(NOT EXECINFO_LIBRARY)
++target_link_libraries(openshot-audio PRIVATE ${EXECINFO_LIBRARY})
++find_library(SYSINFO_LIBRARY NAMES sysinfo)
++if(NOT SYSINFO_LIBRARY)
++ message(FATAL_ERROR "${SYSINFO_LIBRARY}")
++endif(NOT SYSINFO_LIBRARY)
++target_link_libraries(openshot-audio PRIVATE ${SYSINFO_LIBRARY})
+
# Link with dynamic loader for platform
-target_link_libraries(openshot-audio PUBLIC ${CMAKE_DL_LIBS})
diff --git a/audio/libopenshot-audio/pkg-plist b/audio/libopenshot-audio/pkg-plist
index f8cdce2bf5c1..d424776909d5 100644
--- a/audio/libopenshot-audio/pkg-plist
+++ b/audio/libopenshot-audio/pkg-plist
@@ -363,8 +363,8 @@ lib/cmake/OpenShotAudio/OpenShotAudioConfigVersion.cmake
lib/cmake/OpenShotAudio/OpenShotAudioTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/OpenShotAudio/OpenShotAudioTargets.cmake
lib/libopenshot-audio.so
-lib/libopenshot-audio.so.0.2.2
-lib/libopenshot-audio.so.8
+lib/libopenshot-audio.so.0.3.0
+lib/libopenshot-audio.so.9
share/man/man1/openshot-audio-demo.1.gz
@dir include/libopenshot-audio/juce_audio_devices/native/java/app/com/roli/juce
@dir include/libopenshot-audio/juce_core/native/java/app/com/roli/juce