You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
4 months ago
|
# Copyright 1999-2024 Gentoo Authors
|
||
3 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=8
|
||
3 years ago
|
|
||
2 years ago
|
inherit cmake flag-o-matic xdg
|
||
3 years ago
|
|
||
|
DESCRIPTION="A free, open source, cross-platform video editor"
|
||
|
HOMEPAGE="https://www.shotcut.org/ https://github.com/mltframework/shotcut/"
|
||
3 years ago
|
if [[ ${PV} != 9999* ]] ; then
|
||
|
SRC_URI="https://github.com/mltframework/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
4 months ago
|
KEYWORDS="~amd64"
|
||
3 years ago
|
else
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="https://github.com/mltframework/shotcut/"
|
||
|
fi
|
||
3 years ago
|
|
||
3 years ago
|
IUSE="debug"
|
||
|
|
||
3 years ago
|
LICENSE="GPL-3+"
|
||
|
SLOT="0"
|
||
|
|
||
|
BDEPEND="
|
||
4 months ago
|
dev-qt/qttools:6[linguist]
|
||
3 years ago
|
"
|
||
4 months ago
|
DEPEND="
|
||
|
dev-qt/qtbase:6[concurrent,gui,network,opengl,sql,widgets,xml]
|
||
|
dev-qt/qtdeclarative:6[widgets]
|
||
|
dev-qt/qtmultimedia:6
|
||
|
>=media-libs/mlt-7.18.0[ffmpeg,frei0r,jack,opengl,sdl,xml]
|
||
3 years ago
|
media-video/ffmpeg
|
||
|
"
|
||
4 months ago
|
|
||
|
RDEPEND="${DEPEND}
|
||
3 years ago
|
virtual/jack
|
||
|
"
|
||
|
|
||
|
src_configure() {
|
||
2 years ago
|
CMAKE_BUILD_TYPE=$(usex debug Debug Release)
|
||
4 months ago
|
if [[ ${PV} != 9999* ]] ; then
|
||
|
SHOTCUT_VERSION="${PV}"
|
||
|
else
|
||
|
SHOTCUT_VERSION="$(git log --date=format:'%y.%m.%d' -1 --format='%ad')"
|
||
|
fi
|
||
2 years ago
|
local mycmakeargs=(
|
||
4 months ago
|
-DSHOTCUT_VERSION="${SHOTCUT_VERSION}"
|
||
3 years ago
|
)
|
||
2 years ago
|
use debug || append-cxxflags "-DNDEBUG"
|
||
|
append-cxxflags "-DSHOTCUT_NOUPGRADE"
|
||
|
cmake_src_configure
|
||
3 years ago
|
}
|