1 |
commit: 4f0450984b3a5827e10e3701c40e9f75b992a301 |
2 |
Author: Marco Scardovi <marco <AT> scardovi <DOT> com> |
3 |
AuthorDate: Sun Jun 20 18:21:00 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 00:01:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f045098 |
7 |
|
8 |
media-libs/avidemux-core: bump to 2.7.8 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Marco Scardovi <marco <AT> scardovi.com> |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
media-libs/avidemux-core/Manifest | 1 + |
15 |
.../avidemux-core/avidemux-core-2.7.8.ebuild | 99 ++++++++++++++++++++++ |
16 |
2 files changed, 100 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/avidemux-core/Manifest b/media-libs/avidemux-core/Manifest |
19 |
index d9b9b78a2a0..9fc07834baa 100644 |
20 |
--- a/media-libs/avidemux-core/Manifest |
21 |
+++ b/media-libs/avidemux-core/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST avidemux-2.7.6.tar.gz 21963753 BLAKE2B 6ca343f90c37844ebfd61123badccefb7327cbf500723c031257cf26500a5b6d98955568c2a9c0d182af68f162e878459a51e6049485937f9b01b4439b32e5e0 SHA512 bc60c733168d40d5b39cc7dd1f74b3f1315e9727302478ef1621e18748bad3400bcfd4d5199862c3093ad9df51385b6b2a96f0f8fedf9bf1c00060327545fb0f |
24 |
+DIST avidemux-2.7.8.tar.gz 22080267 BLAKE2B a1e56856f44d56afac6ea4015f206a3f9301c025b3c8da1528165bd4c139ccc971074ac21aa05b9b3dfd6d514eabcbb375e671c8df9c9e5cae74a0a6597577c4 SHA512 6cd5527ab34517a07bf73e46d01f15b7ff023ff34ed70ee54f1d7dbfb6cf57364a323b4ecb89bb9aadeb9bc05473aacb40d8c4eecc522840a3c1c4b3a8756d82 |
25 |
|
26 |
diff --git a/media-libs/avidemux-core/avidemux-core-2.7.8.ebuild b/media-libs/avidemux-core/avidemux-core-2.7.8.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..f1b9a125c6c |
29 |
--- /dev/null |
30 |
+++ b/media-libs/avidemux-core/avidemux-core-2.7.8.ebuild |
31 |
@@ -0,0 +1,99 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+CMAKE_MAKEFILE_GENERATOR="emake" |
38 |
+ |
39 |
+inherit cmake flag-o-matic toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="Core libraries for simple video cutting, filtering and encoding tasks" |
42 |
+HOMEPAGE="http://fixounet.free.fr/avidemux" |
43 |
+SRC_URI="https://github.com/mean00/avidemux2/archive/${PV}.tar.gz -> avidemux-${PV}.tar.gz" |
44 |
+ |
45 |
+# Multiple licenses because of all the bundled stuff. |
46 |
+LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" |
47 |
+SLOT="2.7" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+IUSE="debug nls nvenc sdl system-ffmpeg vaapi vdpau xv" |
50 |
+ |
51 |
+# Trying to use virtual; ffmpeg misses aac,cpudetection USE flags now though, are they needed? |
52 |
+DEPEND=" |
53 |
+ dev-db/sqlite:3 |
54 |
+ nvenc? ( media-video/nvidia_video_sdk ) |
55 |
+ sdl? ( media-libs/libsdl:0 ) |
56 |
+ system-ffmpeg? ( >=media-video/ffmpeg-9:0[mp3,theora] ) |
57 |
+ vaapi? ( x11-libs/libva:0= ) |
58 |
+ vdpau? ( x11-libs/libvdpau:0 ) |
59 |
+ xv? ( x11-libs/libXv:0 ) |
60 |
+" |
61 |
+RDEPEND=" |
62 |
+ ${DEPEND} |
63 |
+ !<media-libs/avidemux-core-${PV} |
64 |
+ !<media-video/avidemux-${PV} |
65 |
+ nls? ( virtual/libintl:0 ) |
66 |
+" |
67 |
+BDEPEND=" |
68 |
+ virtual/pkgconfig |
69 |
+ nls? ( sys-devel/gettext ) |
70 |
+ !system-ffmpeg? ( dev-lang/yasm[nls=] ) |
71 |
+" |
72 |
+ |
73 |
+PATCHES=( "${FILESDIR}"/avidemux-core-2.7.6-ffmpeg-flags.patch ) |
74 |
+ |
75 |
+S="${WORKDIR}/avidemux2-${PV}" |
76 |
+CMAKE_USE_DIR="${S}/${PN/-/_}" |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ cmake_src_prepare |
80 |
+ |
81 |
+ if use system-ffmpeg ; then |
82 |
+ # Preparations to support the system ffmpeg. Currently fails because |
83 |
+ # it depends on files the system ffmpeg doesn't install. |
84 |
+ local error="Failed to remove bundled ffmpeg." |
85 |
+ |
86 |
+ rm -r cmake/admFFmpeg* cmake/ffmpeg* avidemux_core/ffmpeg_package buildCore/ffmpeg || die "${error}" |
87 |
+ sed -e 's/include(admFFmpegUtil)//g' -e '/registerFFmpeg/d' -i avidemux/commonCmakeApplication.cmake || die "${error}" |
88 |
+ sed -e 's/include(admFFmpegBuild)//g' -i avidemux_core/CMakeLists.txt || die "${error}" |
89 |
+ else |
90 |
+ local ffmpeg_args=( |
91 |
+ --cc=$(tc-getCC) |
92 |
+ --cxx=$(tc-getCXX) |
93 |
+ --ar=$(tc-getAR) |
94 |
+ --nm=$(tc-getNM) |
95 |
+ --ranlib=$(tc-getRANLIB) |
96 |
+ "--optflags='${CFLAGS}'" |
97 |
+ ) |
98 |
+ |
99 |
+ sed -i -e "s/@@GENTOO_FFMPEG_FLAGS@@/${ffmpeg_args[*]}/" cmake/ffmpeg_configure.sh.cmake || die |
100 |
+ fi |
101 |
+} |
102 |
+ |
103 |
+src_configure() { |
104 |
+ # See bug 432322. |
105 |
+ use x86 && replace-flags -O0 -O1 |
106 |
+ # Bug 768210 |
107 |
+ append-cxxflags -std=gnu++14 |
108 |
+ |
109 |
+ local mycmakeargs=( |
110 |
+ -DAVIDEMUX_SOURCE_DIR='${S}' |
111 |
+ -DGETTEXT="$(usex nls)" |
112 |
+ -DNVENC="$(usex nvenc)" |
113 |
+ -DSDL="$(usex sdl)" |
114 |
+ -DLIBVA="$(usex vaapi)" |
115 |
+ -DVDPAU="$(usex vdpau)" |
116 |
+ -DXVIDEO="$(usex xv)" |
117 |
+ ) |
118 |
+ |
119 |
+ use debug && mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 ) |
120 |
+ |
121 |
+ cmake_src_configure |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ cmake_src_compile |
126 |
+} |
127 |
+ |
128 |
+src_install() { |
129 |
+ cmake_src_install |
130 |
+} |