55 lines
1.9 KiB
Bash
55 lines
1.9 KiB
Bash
# Template file for 'obs'
|
|
pkgname=obs
|
|
version=30.2.3
|
|
revision=2
|
|
archs="i686* x86_64* ppc64le* aarch64* riscv64*"
|
|
build_style=cmake
|
|
configure_args="-DOBS_VERSION_OVERRIDE=${version} -DENABLE_JACK=ON
|
|
-DCMAKE_INSTALL_DATAROOTDIR=share
|
|
-DENABLE_VST=OFF -DENABLE_AJA=OFF -DCALM_DEPRECATION=ON
|
|
-DENABLE_SCRIPTING_LUA=$(vopt_if luajit 'ON' 'OFF')
|
|
-DENABLE_NATIVE_NVENC=OFF -DENABLE_QSV11=$(vopt_if 'ON' 'OFF')"
|
|
hostmakedepends="pkg-config swig python3-devel qt6-base"
|
|
makedepends="$(vopt_if luajit LuaJIT-devel) fdk-aac-devel ffmpeg6-devel glu-devel
|
|
jack-devel libXcomposite-devel libcurl-devel libva-devel
|
|
pulseaudio-devel python3-devel speexdsp-devel v4l-utils-devel
|
|
vlc-devel qt6-svg-devel x264-devel mbedtls-devel jansson-devel
|
|
wayland-devel pipewire-devel libxkbcommon-devel pciutils-devel
|
|
librist-devel srt-devel libdatachannel-devel oneVPL-devel uthash
|
|
qt6-base-private-devel json-c++"
|
|
depends="xset xdg-desktop-portal"
|
|
short_desc="Open Broadcaster Software"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://obsproject.com"
|
|
changelog="https://github.com/obsproject/obs-studio/releases"
|
|
distfiles="https://github.com/obsproject/obs-studio/archive/refs/tags/$version.tar.gz"
|
|
checksum=3d5f37f564564b6e6fb32ba535285e062ee25d573b3a6a405e5a86d5ab029351
|
|
|
|
build_options="luajit qsv"
|
|
case $XBPS_TARGET_MACHINE in
|
|
riscv64*);;
|
|
x86_64*) build_options_default="luajit qsv";;
|
|
*) build_options_default="luajit";;
|
|
esac
|
|
|
|
pre_configure() {
|
|
# it's not enough to use -DENABLE_BROWSER ...
|
|
touch plugins/obs-browser/CMakeLists.txt
|
|
touch plugins/obs-websocket/CMakeLists.txt
|
|
}
|
|
|
|
obs-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/lib/libobs-frontend-api.so
|
|
vmove usr/lib/libobs-opengl.so
|
|
vmove usr/lib/libobs.so
|
|
vmove usr/lib/libobs-scripting.so
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|