From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/libsrt/fix-cmake.patch | 39 +++++++++++++++++++++++++++++++++++++++ repo/libsrt/libsrt.xibuild | 28 ++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 repo/libsrt/fix-cmake.patch create mode 100644 repo/libsrt/libsrt.xibuild (limited to 'repo/libsrt') diff --git a/repo/libsrt/fix-cmake.patch b/repo/libsrt/fix-cmake.patch new file mode 100644 index 0000000..6193da2 --- /dev/null +++ b/repo/libsrt/fix-cmake.patch @@ -0,0 +1,39 @@ +Upstream: Should be, and they should fix it +Reason: Fixes a few issues + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ed6e603..5f899c1 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -34,14 +34,8 @@ set_if(GNU ${CMAKE_SYSTEM_NAME} MATCHES "GNU") + set_if(POSIX LINUX OR DARWIN OR BSD OR (CYGWIN AND CYGWIN_USE_POSIX)) + set_if(SYMLINKABLE LINUX OR DARWIN OR BSD OR CYGWIN OR GNU) + +-# Not sure what to do in case of compiling by MSVC. +-# This will make installdir in C:\Program Files\SRT then +-# inside "bin" and "lib64" directories. At least this maintains +-# the current status. Shall this be not desired, override values +-# of CMAKE_INSTALL_BINDIR, CMAKE_INSTALL_LIBDIR and CMAKE_INSTALL_INCLUDEDIR. +-if (NOT DEFINED CMAKE_INSTALL_LIBDIR) +- include(GNUInstallDirs) +-endif() ++ ++include(GNUInstallDirs) + + set (SRT_VERSION 1.4.2) + set_version_variables(SRT_VERSION ${SRT_VERSION}) +@@ -59,14 +53,6 @@ endif() + # Set CMAKE_BUILD_TYPE properly, now that you know + # that ENABLE_DEBUG is set as it should. + +-if (ENABLE_DEBUG EQUAL 2) +- set (CMAKE_BUILD_TYPE "RelWithDebInfo") +-elseif (ENABLE_DEBUG) # 1, ON, YES, TRUE, Y, or any other non-zero number +- set (CMAKE_BUILD_TYPE "Debug") +-else() +- set (CMAKE_BUILD_TYPE "Release") +-endif() +- + message(STATUS "BUILD TYPE: ${CMAKE_BUILD_TYPE}") + + getVarsWith(ENFORCE_ enforcers) diff --git a/repo/libsrt/libsrt.xibuild b/repo/libsrt/libsrt.xibuild new file mode 100644 index 0000000..3d79326 --- /dev/null +++ b/repo/libsrt/libsrt.xibuild @@ -0,0 +1,28 @@ +#!/bin/sh + +NAME="libsrt" +DESC="Secure Reliable Transport (SRT)" + +MAKEDEPS="cmake " +DEPS="openssl musl" + +PKG_VER=1.4.4 +SOURCE="https://github.com/Haivision/srt/archive/v$PKG_VER.tar.gz" +ADDITIONAL="fix-cmake.patch " + +prepare () { + apply_patches +} + +build () { + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DBUILD_SHARED_LIBS=True \ + -DBUILD_STATIC_LIBS=OFF + cmake --build build +} + +package () { + DESTDIR="$PKG_DEST" cmake --install build +} -- cgit v1.2.1