New package: srt-1.4.4

This commit is contained in:
Duncaen 2022-05-29 20:03:11 +02:00
parent fd8c55e034
commit b82c77d1df
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
6 changed files with 82 additions and 0 deletions

View File

@ -4061,6 +4061,7 @@ libmariadbd.so.19 libmariadbclient-10.5.9_1
libinstpatch-1.0.so.2 libinstpatch-1.1.6_1 libinstpatch-1.0.so.2 libinstpatch-1.1.6_1
libbasu.so.0 basu-0.2.0_1 libbasu.so.0 basu-0.2.0_1
libhomfly.so.0 libhomfly-1.02r6_1 libhomfly.so.0 libhomfly-1.02r6_1
libsrt.so.1.4 libsrt-1.4.4_1
libXcomp.so.3 nx-libs-3.5.99.24_1 libXcomp.so.3 nx-libs-3.5.99.24_1
libXcompshad.so.3 nx-libs-3.5.99.24_1 libXcompshad.so.3 nx-libs-3.5.99.24_1
libNX_X11.so.6 nx-libs-3.5.99.24_1 libNX_X11.so.6 nx-libs-3.5.99.24_1

1
srcpkgs/libsrt Symbolic link
View File

@ -0,0 +1 @@
srt

1
srcpkgs/srt-devel Symbolic link
View File

@ -0,0 +1 @@
srt

View File

@ -0,0 +1,23 @@
Use the compiler we setup instead of trying to construct it in cmake
with prefixes.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -211,7 +211,7 @@
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
-if (NOT DEFINED WITH_COMPILER_TYPE)
+if (DEFINED FOO)
# This is for a case when you provided the prefix, but you didn't
# provide compiler type. This option is in this form predicted to work
@@ -227,7 +227,7 @@
set (USING_DEFAULT_COMPILER_PREFIX 1)
endif()
-if (NOT USING_DEFAULT_COMPILER_PREFIX OR DEFINED WITH_COMPILER_PREFIX)
+if (DEFINED FOO)
message(STATUS "Handling compiler with PREFIX=${WITH_COMPILER_PREFIX} TYPE=${WITH_COMPILER_TYPE}")
parse_compiler_type(${WITH_COMPILER_TYPE} COMPILER_TYPE COMPILER_SUFFIX)

View File

@ -0,0 +1,21 @@
Dynamically link libsrt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1061,13 +1061,13 @@
# If static is available, link apps against static one.
# Otherwise link against shared one.
-if (srt_libspec_static)
+if(srt_libspec_shared)
+ set (srt_link_library ${TARGET_srt}_shared)
+elseif(srt_libspec_static)
set (srt_link_library ${TARGET_srt}_static)
if (ENABLE_RELATIVE_LIBPATH)
message(STATUS "ENABLE_RELATIVE_LIBPATH=ON will be ignored due to static linking.")
endif()
-elseif(srt_libspec_shared)
- set (srt_link_library ${TARGET_srt}_shared)
else()
message(FATAL_ERROR "Either ENABLE_STATIC or ENABLE_SHARED has to be ON!")
endif()

35
srcpkgs/srt/template Normal file
View File

@ -0,0 +1,35 @@
# Template file for 'srt'
pkgname=srt
version=1.4.4
revision=1
build_style=cmake
configure_args="
-DCMAKE_INSTALL_BINDIR=bin
-DCMAKE_INSTALL_INCLUDEDIR=include"
hostmakedepends="pkg-config"
makedepends="openssl-devel"
short_desc="Secure, Reliable, Transport"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="MPL-2.0"
homepage="https://github.com/Haivision/srt"
distfiles="https://github.com/Haivision/srt/archive/refs/tags/v${version}.tar.gz"
checksum=93f5f3715bd5bd522b8d65fc0d086ef2ad49db6a41ad2d7b35df2e8bd7094114
libsrt_package() {
depends="libsrt>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
srt-devel_package() {
depends="libsrt>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}