1 |
commit: c2bce840d5c0acc9f836302cb66185f67f549dce |
2 |
Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 7 17:33:00 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 8 02:29:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2bce840 |
7 |
|
8 |
media-video/obs-studio: add version 27.1.3 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org> |
12 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
13 |
|
14 |
media-video/obs-studio/Manifest | 1 + |
15 |
media-video/obs-studio/obs-studio-27.1.3.ebuild | 214 ++++++++++++++++++++++++ |
16 |
2 files changed, 215 insertions(+) |
17 |
|
18 |
diff --git a/media-video/obs-studio/Manifest b/media-video/obs-studio/Manifest |
19 |
index 4c88e779fa6..0bc277ad108 100644 |
20 |
--- a/media-video/obs-studio/Manifest |
21 |
+++ b/media-video/obs-studio/Manifest |
22 |
@@ -3,3 +3,4 @@ DIST obs-browser-2a338b7c76d5dd0a6b23f1d49affefd40213b0e9.tar.gz 89474 BLAKE2B f |
23 |
DIST obs-browser-f1a61c5a2579e5673765c31a47c2053d4b502d4b.tar.gz 79259 BLAKE2B 28cfa46928de0b5e626b384673f7b92b3a48cb631066dda06288c51df78f06b913707a1295a5142d4521505b0678a6c639bfbb5b8a066d585fa12849578a382e SHA512 3ecab39bfb36774ac501de087ca70ecde12f408cfd54cdf12539a92e89d0cf531767a066ff77139389158c46beee423cf1848081ed187890b86241aa96f7b179 |
24 |
DIST obs-studio-27.0.1.tar.gz 15787807 BLAKE2B c2ea571f06a81b2e87ce5d9fd010610ea6cc2753223e6373025f0389972d4638a5f3ff1802f9f0af2c631d71ebcf4603e064da804e8c89eb032b1ad5743d1bd4 SHA512 c15dda62c1f212f623914e61a90c6b1e035720fb84d64726c14f43d77ae7569777a23d04221db34347ce610e7c3407c29e726ae36412e98e34ea2ddb2072b7f3 |
25 |
DIST obs-studio-27.1.1.tar.gz 15994581 BLAKE2B 43ec33b36e9d63636c9b9b750788795cb2e31866e2572d18e405836c569e24a375108b0fda5826b56c9a13839210c8a51cf3fef22d589f816c189c6bb76b826e SHA512 911fec2168ea0d378dfc295e10851ab436fb9f94ea7bb6aef6d00d32ea427b34e4929c955b138973b3f635e55ef17aa9272faaff4f9ba2c1c3c97c082318d59c |
26 |
+DIST obs-studio-27.1.3.tar.gz 15994678 BLAKE2B 5544a1ecdb04dca7f6422936ea5499a206b4beb8e5332605c18cd72a91ce73aa74ff06c49a106931822c1c413ee94d383942f173a71f2b21168a00495b4e301f SHA512 04c11c79e3b091aa9ea8fc6674c9fbcaa1c924fe049f68e9be63f63724c31305d6e4fb33aecdd4d0095d20013e2ee188983f6938b175257368d2260681c2fb39 |
27 |
|
28 |
diff --git a/media-video/obs-studio/obs-studio-27.1.3.ebuild b/media-video/obs-studio/obs-studio-27.1.3.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..6e23d6b2b47 |
31 |
--- /dev/null |
32 |
+++ b/media-video/obs-studio/obs-studio-27.1.3.ebuild |
33 |
@@ -0,0 +1,214 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+CMAKE_REMOVE_MODULES_LIST=( FindFreetype ) |
40 |
+LUA_COMPAT=( luajit ) |
41 |
+PYTHON_COMPAT=( python3_{8..10} ) |
42 |
+ |
43 |
+inherit cmake lua-single python-single-r1 xdg |
44 |
+ |
45 |
+OBS_BROWSER_COMMIT="2a338b7c76d5dd0a6b23f1d49affefd40213b0e9" |
46 |
+CEF_DIR="cef_binary_4280_linux64" |
47 |
+ |
48 |
+if [[ ${PV} == 9999 ]]; then |
49 |
+ inherit git-r3 |
50 |
+ EGIT_REPO_URI="https://github.com/obsproject/obs-studio.git" |
51 |
+ EGIT_SUBMODULES=( plugins/obs-browser ) |
52 |
+else |
53 |
+ SRC_URI="https://github.com/obsproject/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
54 |
+ SRC_URI+=" browser? ( https://github.com/obsproject/obs-browser/archive/${OBS_BROWSER_COMMIT}.tar.gz -> obs-browser-${OBS_BROWSER_COMMIT}.tar.gz )" |
55 |
+ KEYWORDS="~amd64 ~ppc64 ~x86" |
56 |
+fi |
57 |
+SRC_URI+=" browser? ( https://cdn-fastly.obsproject.com/downloads/${CEF_DIR}.tar.bz2 )" |
58 |
+ |
59 |
+DESCRIPTION="Software for Recording and Streaming Live Video Content" |
60 |
+HOMEPAGE="https://obsproject.com" |
61 |
+ |
62 |
+LICENSE="GPL-2" |
63 |
+SLOT="0" |
64 |
+IUSE=" |
65 |
+ +alsa browser decklink fdk jack lua nvenc pipewire |
66 |
+ pulseaudio python speex +ssl truetype v4l vlc wayland |
67 |
+" |
68 |
+REQUIRED_USE=" |
69 |
+ browser? ( || ( alsa pulseaudio ) ) |
70 |
+ lua? ( ${LUA_REQUIRED_USE} ) |
71 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
72 |
+" |
73 |
+ |
74 |
+BDEPEND=" |
75 |
+ lua? ( dev-lang/swig ) |
76 |
+ python? ( dev-lang/swig ) |
77 |
+" |
78 |
+DEPEND=" |
79 |
+ dev-libs/glib:2 |
80 |
+ dev-libs/jansson:= |
81 |
+ dev-qt/qtcore:5 |
82 |
+ dev-qt/qtdeclarative:5 |
83 |
+ dev-qt/qtgui:5[wayland?] |
84 |
+ dev-qt/qtmultimedia:5 |
85 |
+ dev-qt/qtnetwork:5 |
86 |
+ dev-qt/qtquickcontrols:5 |
87 |
+ dev-qt/qtsql:5 |
88 |
+ dev-qt/qtsvg:5 |
89 |
+ dev-qt/qtwidgets:5 |
90 |
+ dev-qt/qtx11extras:5 |
91 |
+ dev-qt/qtxml:5 |
92 |
+ media-libs/libglvnd |
93 |
+ media-libs/x264:= |
94 |
+ media-video/ffmpeg:=[x264] |
95 |
+ net-misc/curl |
96 |
+ sys-apps/dbus |
97 |
+ sys-libs/zlib:= |
98 |
+ virtual/udev |
99 |
+ x11-libs/libX11 |
100 |
+ x11-libs/libXcomposite |
101 |
+ x11-libs/libXfixes |
102 |
+ x11-libs/libXinerama |
103 |
+ x11-libs/libXrandr |
104 |
+ x11-libs/libxcb:= |
105 |
+ alsa? ( media-libs/alsa-lib ) |
106 |
+ browser? ( |
107 |
+ app-accessibility/at-spi2-atk |
108 |
+ app-accessibility/at-spi2-core:2 |
109 |
+ dev-libs/atk |
110 |
+ dev-libs/expat |
111 |
+ dev-libs/glib |
112 |
+ dev-libs/nspr |
113 |
+ dev-libs/nss |
114 |
+ media-libs/alsa-lib |
115 |
+ media-libs/fontconfig |
116 |
+ media-libs/mesa[gbm(+)] |
117 |
+ net-print/cups |
118 |
+ x11-libs/libdrm |
119 |
+ x11-libs/libXScrnSaver |
120 |
+ x11-libs/libXcursor |
121 |
+ x11-libs/libXdamage |
122 |
+ x11-libs/libXext |
123 |
+ x11-libs/libXi |
124 |
+ x11-libs/libXrender |
125 |
+ x11-libs/libXtst |
126 |
+ ) |
127 |
+ fdk? ( media-libs/fdk-aac:= ) |
128 |
+ jack? ( virtual/jack ) |
129 |
+ lua? ( ${LUA_DEPS} ) |
130 |
+ nvenc? ( >=media-video/ffmpeg-4[video_cards_nvidia] ) |
131 |
+ pipewire? ( media-video/pipewire:= ) |
132 |
+ pulseaudio? ( media-sound/pulseaudio ) |
133 |
+ python? ( ${PYTHON_DEPS} ) |
134 |
+ speex? ( media-libs/speexdsp ) |
135 |
+ ssl? ( net-libs/mbedtls:= ) |
136 |
+ truetype? ( |
137 |
+ media-libs/fontconfig |
138 |
+ media-libs/freetype |
139 |
+ ) |
140 |
+ v4l? ( media-libs/libv4l ) |
141 |
+ vlc? ( media-video/vlc:= ) |
142 |
+ wayland? ( dev-libs/wayland ) |
143 |
+" |
144 |
+RDEPEND="${DEPEND}" |
145 |
+ |
146 |
+QA_PREBUILT=" |
147 |
+ usr/lib*/obs-plugins/chrome-sandbox |
148 |
+ usr/lib*/obs-plugins/libEGL.so |
149 |
+ usr/lib*/obs-plugins/libGLESv2.so |
150 |
+ usr/lib*/obs-plugins/libcef.so |
151 |
+ usr/lib*/obs-plugins/swiftshader/libEGL.so |
152 |
+ usr/lib*/obs-plugins/swiftshader/libGLESv2.so |
153 |
+" |
154 |
+ |
155 |
+PATCHES=( |
156 |
+ "${FILESDIR}/${PN}-26.1.2-python-3.8.patch" |
157 |
+) |
158 |
+ |
159 |
+pkg_setup() { |
160 |
+ use lua && lua-single_pkg_setup |
161 |
+ use python && python-single-r1_pkg_setup |
162 |
+} |
163 |
+ |
164 |
+src_unpack() { |
165 |
+ default |
166 |
+ |
167 |
+ if [[ ${PV} == 9999 ]]; then |
168 |
+ git-r3_src_unpack |
169 |
+ elif use browser; then |
170 |
+ rm -d ${P}/plugins/obs-browser || die |
171 |
+ mv obs-browser-${OBS_BROWSER_COMMIT} ${P}/plugins/obs-browser || die |
172 |
+ fi |
173 |
+} |
174 |
+ |
175 |
+src_configure() { |
176 |
+ local libdir=$(get_libdir) |
177 |
+ local mycmakeargs=( |
178 |
+ $(usev browser -DCEF_ROOT_DIR=../${CEF_DIR}) |
179 |
+ -DBUILD_BROWSER=$(usex browser) |
180 |
+ -DBUILD_VST=no |
181 |
+ -DENABLE_WAYLAND=$(usex wayland) |
182 |
+ -DDISABLE_ALSA=$(usex !alsa) |
183 |
+ -DDISABLE_DECKLINK=$(usex !decklink) |
184 |
+ -DDISABLE_FREETYPE=$(usex !truetype) |
185 |
+ -DDISABLE_JACK=$(usex !jack) |
186 |
+ -DDISABLE_LIBFDK=$(usex !fdk) |
187 |
+ -DENABLE_PIPEWIRE=$(usex pipewire) |
188 |
+ -DDISABLE_PULSEAUDIO=$(usex !pulseaudio) |
189 |
+ $(cmake_use_find_package pulseaudio PulseAudio) |
190 |
+ -DDISABLE_SPEEXDSP=$(usex !speex) |
191 |
+ -DDISABLE_V4L2=$(usex !v4l) |
192 |
+ -DDISABLE_VLC=$(usex !vlc) |
193 |
+ -DOBS_MULTIARCH_SUFFIX=${libdir#lib} |
194 |
+ -DUNIX_STRUCTURE=1 |
195 |
+ -DWITH_RTMPS=$(usex ssl) |
196 |
+ |
197 |
+ # deprecated and currently cause issues |
198 |
+ # https://github.com/obsproject/obs-studio/pull/4560#issuecomment-826345608 |
199 |
+ -DLIBOBS_PREFER_IMAGEMAGICK=no |
200 |
+ ) |
201 |
+ |
202 |
+ if [[ ${PV} != 9999 ]]; then |
203 |
+ mycmakeargs+=( |
204 |
+ -DOBS_VERSION_OVERRIDE=${PV} |
205 |
+ ) |
206 |
+ fi |
207 |
+ |
208 |
+ if use lua || use python; then |
209 |
+ mycmakeargs+=( |
210 |
+ -DDISABLE_LUA=$(usex !lua) |
211 |
+ -DDISABLE_PYTHON=$(usex !python) |
212 |
+ -DENABLE_SCRIPTING=yes |
213 |
+ ) |
214 |
+ else |
215 |
+ mycmakeargs+=( -DENABLE_SCRIPTING=no ) |
216 |
+ fi |
217 |
+ |
218 |
+ cmake_src_configure |
219 |
+} |
220 |
+ |
221 |
+src_install() { |
222 |
+ cmake_src_install |
223 |
+ |
224 |
+ # external plugins may need some things not installed by default, install them here |
225 |
+ insinto /usr/include/obs/UI/obs-frontend-api |
226 |
+ doins UI/obs-frontend-api/obs-frontend-api.h |
227 |
+} |
228 |
+ |
229 |
+pkg_postinst() { |
230 |
+ xdg_pkg_postinst |
231 |
+ |
232 |
+ if ! use alsa && ! use pulseaudio; then |
233 |
+ elog |
234 |
+ elog "For the audio capture features to be available," |
235 |
+ elog "either the 'alsa' or the 'pulseaudio' USE-flag needs to" |
236 |
+ elog "be enabled." |
237 |
+ elog |
238 |
+ fi |
239 |
+ |
240 |
+ if use python; then |
241 |
+ ewarn "This ebuild applies a patch that is not yet accepted upstream," |
242 |
+ ewarn "and while it fixes Python support at least to some extent, it" |
243 |
+ ewarn "may cause other issues." |
244 |
+ ewarn "" |
245 |
+ ewarn "Please report any such issues to the Gentoo maintainer." |
246 |
+ fi |
247 |
+} |