2019-03-07 08:22:56 +01:00
|
|
|
# Description: Open Broadcaster Software Studio
|
|
|
|
# URL: https://obsproject.com/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2022-09-11 13:36:11 +02:00
|
|
|
# Depends on: fdk-aac ffmpeg jansson libgmp mbedtls qt5 speexdsp swig x264
|
2022-09-25 11:54:59 +02:00
|
|
|
# Optional: ffnvcodec-headers jack-audio-connection-kit libva luajit pipewire pulseaudio speexdsp v4l-utils vlc vlc wayland-protocols x265
|
2019-03-07 08:22:56 +01:00
|
|
|
|
|
|
|
name=obs-studio
|
2022-11-06 18:43:29 +01:00
|
|
|
version=28.1.2
|
2022-12-18 13:12:27 +01:00
|
|
|
release=3
|
2022-09-11 13:36:11 +02:00
|
|
|
source=(https://github.com/obsproject/$name/archive/$version/$name-$version.tar.gz
|
2022-10-15 13:04:17 +02:00
|
|
|
7531.patch
|
2022-09-11 13:36:11 +02:00
|
|
|
disable-some-plugins.patch)
|
2019-03-07 08:22:56 +01:00
|
|
|
|
|
|
|
build() {
|
2022-09-25 11:54:59 +02:00
|
|
|
prt-get isinst luajit || PKGMK_OBS+=' -D ENABLE_SCRIPTING_LUA=OFF'
|
2022-06-01 07:31:13 +02:00
|
|
|
prt-get isinst pipewire || PKGMK_OBS+=' -D ENABLE_PIPEWIRE=OFF'
|
2022-09-11 13:36:11 +02:00
|
|
|
prt-get isinst pulseaudio || PKGMK_OBS+=' -D ENABLE_PULSEAUDIO=OFF'
|
|
|
|
prt-get isinst v4l-utils || PKGMK_OBS+=' -D ENABLE_V4L2=OFF'
|
|
|
|
prt-get isinst vlc || PKGMK_OBS+=' -D ENABLE_VLC=OFF'
|
|
|
|
prt-get isinst wayland-protocols && PKGMK_OBS+=' -D ENABLE_WAYLAND=ON' || PKGMK_OBS+=' -D ENABLE_WAYLAND=OFF'
|
|
|
|
|
|
|
|
prt-get isinst ccache && PATH="$(echo ${PATH} | awk -v RS=: \
|
|
|
|
-v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
|
|
|
|
|
|
|
patch -Np1 -d $name-$version -i $SRC/disable-some-plugins.patch
|
2022-10-15 13:04:17 +02:00
|
|
|
patch -Np1 -d $name-$version -i $SRC/7531.patch
|
2020-03-18 13:21:20 +01:00
|
|
|
|
2022-06-01 07:31:13 +02:00
|
|
|
export QT_QPA_PLATFORMTHEME="qt5ct"
|
|
|
|
cmake -S $name-$version -B build -G Ninja $PKGMK_OBS \
|
2020-11-08 10:14:00 +01:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-07 00:58:56 +01:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 10:14:00 +01:00
|
|
|
-D OBS_VERSION_OVERRIDE="$version" \
|
|
|
|
-D UNIX_STRUCTURE=ON \
|
2022-06-01 07:31:13 +02:00
|
|
|
-D BUILD_VST=OFF \
|
|
|
|
-D BUILD_BROWSER=OFF \
|
2022-09-11 13:36:11 +02:00
|
|
|
-D ENABLE_DECKLINK=OFF \
|
|
|
|
-D ENABLE_NEW_MPEGTS_OUTPUT=OFF \
|
|
|
|
-D LIBOBS_PREFER_IMAGEMAGICK=OFF \
|
2020-11-08 13:11:23 +01:00
|
|
|
-Wno-dev
|
2020-11-08 10:14:00 +01:00
|
|
|
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-03-07 08:22:56 +01:00
|
|
|
|
2022-06-01 07:31:13 +02:00
|
|
|
find $PKG -type d -exec chmod g-w '{}' \;
|
2019-06-16 14:56:55 +02:00
|
|
|
|
2020-03-18 13:21:20 +01:00
|
|
|
rm $PKG/usr/share/obs/obs-studio/authors/AUTHORS
|
2019-03-07 08:22:56 +01:00
|
|
|
|
|
|
|
find $PKG/usr/share/obs \
|
|
|
|
-iname '*ini' \
|
|
|
|
! -iname 'en-*.ini' \
|
|
|
|
! -iname 'locale.ini' \
|
|
|
|
-exec rm '{}' \+
|
|
|
|
}
|