From 9bb32123340110fced75bc7ff45b5e20c608fbfa Mon Sep 17 00:00:00 2001 From: lemmi Date: Fri, 26 Jun 2015 04:32:32 +0200 Subject: [PATCH] New package: obs-0.10.1 --- srcpkgs/obs/patches/0001-musl.patch | 30 +++++++++++++++++++++++++++++ srcpkgs/obs/template | 16 +++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 srcpkgs/obs/patches/0001-musl.patch create mode 100644 srcpkgs/obs/template diff --git a/srcpkgs/obs/patches/0001-musl.patch b/srcpkgs/obs/patches/0001-musl.patch new file mode 100644 index 00000000000..389103dd610 --- /dev/null +++ b/srcpkgs/obs/patches/0001-musl.patch @@ -0,0 +1,30 @@ +From d0c8195c1a863e35f23a4c3f5d130078a22bd651 Mon Sep 17 00:00:00 2001 +From: lemmi +Date: Fri, 26 Jun 2015 22:13:26 +0200 +Subject: [PATCH] musl + +--- + libobs/util/threading-posix.c | 8 ++------ + 1 file changed, 2 insertions(+), 6 deletions(-) + +diff --git libobs/util/threading-posix.c libobs/util/threading-posix.c +index dcf6d28..72df7dc 100644 +--- libobs/util/threading-posix.c ++++ libobs/util/threading-posix.c +@@ -263,11 +263,7 @@ bool os_atomic_compare_swap_long(volatile long *val, long old_val, long new_val) + + void os_set_thread_name(const char *name) + { +-#if defined(__APPLE__) +- pthread_setname_np(name); +-#elif defined(__FreeBSD__) +- pthread_set_name_np(pthread_self(), name); +-#elif !defined(__MINGW32__) +- pthread_setname_np(pthread_self(), name); ++#if defined(__GLIBC__) ++ pthread_setname_np(pthread_self(), name); + #endif + } +-- +2.4.4 + diff --git a/srcpkgs/obs/template b/srcpkgs/obs/template new file mode 100644 index 00000000000..f4815cf0c30 --- /dev/null +++ b/srcpkgs/obs/template @@ -0,0 +1,16 @@ +# Template file for 'obs' +pkgname=obs +version=0.10.1 +revision=1 +wrksrc=obs-studio-${version} +only_for_archs="i686 x86_64 i686-musl x86_64-musl" +build_style=cmake +hostmakedepends="cmake pkg-config" +makedepends="libX11-devel glu-devel ffmpeg-devel qt5-devel qt5-x11extras-devel + libXcomposite-devel pulseaudio-devel v4l-utils-devel jack-devel x264-devel" +short_desc="Open Broadcaster Software" +maintainer="lemmi " +license="GPL-2" +homepage="https://obsproject.com" +distfiles="https://github.com/jp9000/obs-studio/archive/${version}.tar.gz" +checksum=f6cf9143b99e1e1325e81e777c2afdf2adb33b0c40cfc4419052f6eb981a8140