2019-03-07 18:22:56 +11:00
|
|
|
# Description: Open Broadcaster Software Studio
|
|
|
|
# URL: https://obsproject.com/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-03-18 23:21:20 +11:00
|
|
|
# Depends on: fdk-aac ffmpeg jansson libgmp mbedtls qt5 x264
|
|
|
|
# Optional: jack-audio-connection-kit ffnvcodec-headers vlc luajit speexdsp x265 pulseaudio libva
|
2019-03-07 18:22:56 +11:00
|
|
|
|
|
|
|
name=obs-studio
|
2020-05-24 12:27:40 +10:00
|
|
|
version=25.0.8
|
2020-12-21 21:44:42 +11:00
|
|
|
release=2
|
|
|
|
source=(https://github.com/obsproject/$name/archive/$version/$name-$version.tar.gz
|
|
|
|
c7f84f8fc4e90ef779a204ac268f5ee1a962e324.patch
|
|
|
|
fix_python_binary_loading.patch)
|
2019-03-07 18:22:56 +11:00
|
|
|
|
|
|
|
build() {
|
2020-03-18 23:21:20 +11:00
|
|
|
# cmake ..
|
|
|
|
# cmake -LA
|
|
|
|
|
2020-12-21 21:44:42 +11:00
|
|
|
# https://github.com/obsproject/obs-studio/commit/c7f84f8fc4e90ef779a204ac268f5ee1a962e324
|
|
|
|
patch -d $name-$version -p1 -i $SRC/c7f84f8fc4e90ef779a204ac268f5ee1a962e324.patch
|
|
|
|
patch -d $name-$version -p1 -i $SRC/fix_python_binary_loading.patch
|
|
|
|
|
2020-11-08 09:14:00 +00:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:58:56 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 09:14:00 +00:00
|
|
|
-D OBS_VERSION_OVERRIDE="$version" \
|
|
|
|
-D UNIX_STRUCTURE=ON \
|
2020-11-08 12:11:23 +00:00
|
|
|
-Wno-dev
|
2020-11-08 09:14:00 +00:00
|
|
|
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-03-07 18:22:56 +11:00
|
|
|
|
2019-06-16 22:56:55 +10:00
|
|
|
chmod -R g-w $PKG
|
|
|
|
|
2020-03-18 23:21:20 +11:00
|
|
|
rm $PKG/usr/share/obs/obs-studio/authors/AUTHORS
|
2019-03-07 18:22:56 +11:00
|
|
|
|
|
|
|
find $PKG/usr/share/obs \
|
|
|
|
-iname '*ini' \
|
|
|
|
! -iname 'en-*.ini' \
|
|
|
|
! -iname 'locale.ini' \
|
|
|
|
-exec rm '{}' \+
|
|
|
|
}
|