1 |
|
# Copyright 1999-2023 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
PKGNAME="ssr"
|
|
6 |
MY_PN="ssr"
|
7 |
7 |
inherit cmake-multilib flag-o-matic xdg
|
8 |
8 |
|
9 |
|
DESCRIPTION="A Simple Screen Recorder"
|
|
9 |
DESCRIPTION="Simple Screen Recorder"
|
10 |
10 |
HOMEPAGE="https://www.maartenbaert.be/simplescreenrecorder/"
|
11 |
|
if [[ ${PV} = 9999 ]] ; then
|
|
11 |
if [[ ${PV} == *9999* ]]; then
|
12 |
12 |
inherit git-r3
|
13 |
|
EGIT_REPO_URI="https://github.com/MaartenBaert/${PKGNAME}.git"
|
|
13 |
EGIT_REPO_URI="https://github.com/MaartenBaert/${MY_PN}.git"
|
14 |
14 |
EGIT_BOOTSTRAP=""
|
15 |
15 |
else
|
16 |
|
SRC_URI="https://github.com/MaartenBaert/${PKGNAME}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
17 |
|
KEYWORDS="amd64 x86"
|
18 |
|
S="${WORKDIR}/${PKGNAME}-${PV}"
|
|
16 |
SRC_URI="https://github.com/MaartenBaert/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
17 |
KEYWORDS="~amd64 ~x86"
|
|
18 |
S="${WORKDIR}/${MY_PN}-${PV}"
|
19 |
19 |
fi
|
20 |
20 |
|
21 |
21 |
LICENSE="GPL-3"
|
... | ... | |
25 |
25 |
REQUIRED_USE="abi_x86_32? ( opengl )"
|
26 |
26 |
|
27 |
27 |
RDEPEND="
|
28 |
|
dev-qt/qtcore:5
|
29 |
|
dev-qt/qtgui:5
|
30 |
|
dev-qt/qtwidgets:5
|
31 |
|
dev-qt/qtx11extras:5
|
|
28 |
dev-qt/qtbase:6[gui,widgets]
|
32 |
29 |
media-libs/alsa-lib:0=
|
33 |
30 |
media-video/ffmpeg:=[vorbis?,vpx?,x264?,mp3?,theora?]
|
34 |
31 |
x11-libs/libX11[${MULTILIB_USEDEP}]
|
... | ... | |
43 |
40 |
v4l? ( media-libs/libv4l )
|
44 |
41 |
"
|
45 |
42 |
DEPEND="${RDEPEND}"
|
46 |
|
BDEPEND="dev-qt/linguist-tools:5"
|
47 |
|
|
48 |
|
PATCHES=( "${FILESDIR}"/${P}-ffmpeg5.patch )
|
|
43 |
BDEPEND="dev-qt/qttools:6[linguist]"
|
49 |
44 |
|
50 |
45 |
pkg_pretend() {
|
51 |
|
if [[ "${ABI}" == amd64 ]] ; then
|
|
46 |
if [[ ${ABI} == amd64 ]] ; then
|
52 |
47 |
einfo "You may want to add USE flag 'abi_x86_32' when running a 64bit system"
|
53 |
48 |
einfo "When added 32bit GLInject libraries are also included. This is"
|
54 |
49 |
einfo "required if you want to use OpenGL recording on 32bit applications."
|
... | ... | |
86 |
81 |
if multilib_is_native_abi ; then
|
87 |
82 |
mycmakeargs+=(
|
88 |
83 |
-DENABLE_32BIT_GLINJECT="false"
|
89 |
|
-DWITH_QT5="true"
|
|
84 |
-DWITH_QT6=ON
|
90 |
85 |
)
|
91 |
86 |
else
|
92 |
87 |
mycmakeargs+=(
|