diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-video/avidemux | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-video/avidemux')
-rw-r--r-- | media-video/avidemux/Manifest | 7 | ||||
-rw-r--r-- | media-video/avidemux/avidemux-2.5.6-r2.ebuild | 172 | ||||
-rw-r--r-- | media-video/avidemux/avidemux-2.6.2-r1.ebuild | 122 | ||||
-rw-r--r-- | media-video/avidemux/avidemux-2.6.3.ebuild | 118 | ||||
-rw-r--r-- | media-video/avidemux/avidemux-2.6.4.ebuild | 118 | ||||
-rw-r--r-- | media-video/avidemux/avidemux-2.6.5-r1.ebuild | 134 | ||||
-rw-r--r-- | media-video/avidemux/avidemux-2.6.5.ebuild | 129 | ||||
-rw-r--r-- | media-video/avidemux/avidemux-2.6.7.ebuild | 129 | ||||
-rw-r--r-- | media-video/avidemux/avidemux-2.6.8.ebuild | 129 | ||||
-rw-r--r-- | media-video/avidemux/avidemux-9999.ebuild | 129 | ||||
-rw-r--r-- | media-video/avidemux/files/avidemux-2.5.4-build-plugins-fix.patch | 13 | ||||
-rw-r--r-- | media-video/avidemux/files/avidemux-2.5.6-ffmpeg-symbol-visibility.patch | 20 | ||||
-rw-r--r-- | media-video/avidemux/metadata.xml | 13 |
13 files changed, 1233 insertions, 0 deletions
diff --git a/media-video/avidemux/Manifest b/media-video/avidemux/Manifest new file mode 100644 index 000000000000..8c4b4ffa31f4 --- /dev/null +++ b/media-video/avidemux/Manifest @@ -0,0 +1,7 @@ +DIST avidemux_2.5.6.tar.gz 14914123 SHA256 d6da7f2c4304368bd9c367a74a464b47d42fee9cada2960e70053d61c1ef9b8b SHA512 8a9dcfc61a396fc4f9f0a213269bcb574de0baa442d3165cfab0fe8e86309e7b0dd2ffe3e2d7ff8a8e6e3fd15da28699e8000367d92da0782fec6d5a38c1d77c WHIRLPOOL fecca87889b19a321a9fe13e734ca11a883c88152e5d59926ecd423b178bb26ef611ee00d8b2897f8a4a36a5c159d6c9f32733bc98fccced08532b8f060bd6ac +DIST avidemux_2.6.2.tar.gz 17009420 SHA256 67c5676692152094033fbab490fbea24af27d8744496578d1c77957ab103fdb6 SHA512 1ba6f1c751732eec9fdceb2b0728122005ceab4c74ac09d213ebeff4c2af2a0b6ce8737d88e7c43970d1b9ca80cb36ad925efc9e4a487c4f463f1435aee328b3 WHIRLPOOL 0c95e87293251fffb773c8a1996ac015ba0d6f9d36d4f5ae01313c0532d2cf020a3ba0704d0f607347bbf0444e10857d7508fcbd968d62e889d7b62b36b85df7 +DIST avidemux_2.6.3.tar.gz 17025710 SHA256 78972b46c6ef1eb52fc012cafdeb2b6275913b968a49053016fb91ef0e9e5137 SHA512 a51e3cd95695a8500f1355c7a76b8313ae3fe68855b8eb9351038c00cd3d05bbf3ada3b75bf9d817fcddf1786a55c1c09cdbc4fe774974c5e4484c12ccd0a8fc WHIRLPOOL 899c5135e92cd3a830c84b1701ac6bfaf73d7417fa869ab26dd16b3754e5b71c5e667b30d747c5f19b902e1a8d53679447e86f9c6403f32a31554e551929e2bf +DIST avidemux_2.6.4.tar.gz 17109929 SHA256 2937c6c09248445942ac7e71b100ff8f7e272c4ad9c38e7d8c519ce4a11cec44 SHA512 1b80f65ac5a1da844b521a82bab8976d01c81923460004dc76ed0f6994f95da0ad9a836c90ffa1595ad060f0d6f27ce30add0204ca9d5295084a62e79dd484c9 WHIRLPOOL a1cbfcfeafa163ed24881edb085126a69eca3e0e8eaee50091ceadb993105a0cb43068b7725fa54871bc04b20ca5b51650ac536688b1d1f8d5b0a2d7356459ef +DIST avidemux_2.6.5.tar.gz 17322253 SHA256 428e1f6d99e2d854ccdcb68f2260d853c47c809eee6bd92f151cb298d98b1861 SHA512 e7f8be29812ca787a1ec2cfddb1c611e1032ed94f24f41c0684f106970085bb6d219c822f3e713c472508a3f7b306540d2cabeb665bdbac061a49bccf8c23a80 WHIRLPOOL 192ce60afe4634319567cd7a1440ba212d83e02c054d6625ad738955fde02d0e722eba948c60932f520bb5e76c46ebbab0001230c1da50d893fb99a18f1da76f +DIST avidemux_2.6.7.tar.gz 17337193 SHA256 d28202273d23be85c748c12d6e4df5e013bb861ea52b9bac7e0f90ba3d23249f SHA512 deea9811a0b6f618fab2ecf63c675b37dac12ea0ab09136a6b251e13601cd62cdc1c97d032762ea54f38e07275380106026541243bc87e230ce302fb821f2e5c WHIRLPOOL a41c338fc51e14d2c900dcef86a3887f94164548e8b904945d47915a78db907d152fda4ae53e5c37bf368348ff9912b529005a271f85d993776f042b5b997553 +DIST avidemux_2.6.8.tar.gz 17380534 SHA256 02998c235a89894d184d745c94cac37b78bc20e9eb44b318ee2bb83f2507e682 SHA512 57a4042f1a9d46462850871d36950215c5ffb5b66ce2f2cde09d747e946c05adb7a550ac7763c96f4c1bcb2c39881407d9d88bc64c93053741091751495ba0b0 WHIRLPOOL 29f8a6039d82e686e8dfbfc7b23658921834238a4cc6c4de338afdfdc032a9a7cba1c8236789aa6dbcab318ec14c344c19563f153e6cbd63cd265c5fb15b44b6 diff --git a/media-video/avidemux/avidemux-2.5.6-r2.ebuild b/media-video/avidemux/avidemux-2.5.6-r2.ebuild new file mode 100644 index 000000000000..8f92b5ed26a5 --- /dev/null +++ b/media-video/avidemux/avidemux-2.5.6-r2.ebuild @@ -0,0 +1,172 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit cmake-utils eutils flag-o-matic + +MY_P=${PN}_${PV} + +DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/avidemux" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="amd64 x86" +IUSE="aac aften alsa amr gtk jack +mp3 nls opengl oss pulseaudio + qt4 sdl +truetype vorbis vpx +x264 +xv +xvid" + +RDEPEND=" + dev-libs/libxml2 + sys-libs/zlib + aac? ( + media-libs/faac + media-libs/faad2 + ) + aften? ( media-libs/aften[cxx] ) + alsa? ( media-libs/alsa-lib ) + amr? ( media-libs/opencore-amr ) + gtk? ( x11-libs/gtk+:2 ) + jack? ( + media-libs/libsamplerate + media-sound/jack-audio-connection-kit + ) + mp3? ( media-sound/lame ) + pulseaudio? ( media-sound/pulseaudio ) + qt4? ( + >=dev-qt/qtgui-4.6:4 + opengl? ( + virtual/opengl + >=dev-qt/qtopengl-4.6:4 + ) + ) + sdl? ( media-libs/libsdl ) + truetype? ( + media-libs/freetype:2 + media-libs/fontconfig + ) + vorbis? ( media-libs/libvorbis ) + vpx? ( media-libs/libvpx ) + x264? ( media-libs/x264:= ) + xv? ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXv + ) + xvid? ( media-libs/xvid ) +" +DEPEND="${RDEPEND} + dev-lang/yasm + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +AVIDEMUX_LANGS="bg ca cs de el es fr it ja pt_BR ru sr sr@latin tr zh_TW" +for lang in ${AVIDEMUX_LANGS}; do + IUSE+=" linguas_${lang}" +done +unset lang + +S=${WORKDIR}/${MY_P} +BUILD_S=${WORKDIR}/${P}_build + +DOCS=( AUTHORS ) +PATCHES=( + "${FILESDIR}/${PN}-2.5.4-build-plugins-fix.patch" + "${FILESDIR}/${P}-ffmpeg-symbol-visibility.patch" +) + +src_prepare() { + cmake-utils_src_prepare + + local lingua= po_files= qt_ts_files= avidemux_ts_files= + for lingua in ${LINGUAS}; do + if has ${lingua} ${AVIDEMUX_LANGS}; then + if [[ -e ${S}/po/${lingua}.po ]]; then + po_files+=" \${po_subdir}/${lingua}.po" + fi + if [[ -e ${S}/po/qt_${lingua}.ts ]]; then + qt_ts_files+=" \${ts_subdir}/qt_${lingua}.ts" + fi + if [[ -e ${S}/po/${PN}_${lingua}.ts ]]; then + avidemux_ts_files+=" \${ts_subdir}/${PN}_${lingua}.ts" + fi + fi + done + + sed -i -e "s!FILE(GLOB po_files .*)!SET(po_files ${po_files})!" \ + "${S}/cmake/Po.cmake" || die "sed failed" + sed -i -e "s!FILE(GLOB.*qt.*)!SET(ts_files ${qt_ts_files})!" \ + -e "s!FILE(GLOB.*avidemux.*)!SET(ts_files ${avidemux_ts_files})!" \ + "${S}/cmake/Ts.cmake" || die "sed failed" + + # fix major issues in desktop files wrt bugs #291453, #316599, #430500 + sed -i -re '/^(Exec|Path)/ s:\[\$e\]::' avidemux2-gtk.desktop || die + sed -i -re '/^Exec/ s:(avidemux2_)gtk:\1qt4:' avidemux2.desktop || die + + # don't install Windows-only files + sed -i -e '/addons\/avsfilter/d' CMakeLists.txt || die +} + +src_configure() { + # add lax vector typing for PowerPC + if use ppc || use ppc64; then + append-cflags -flax-vector-conversions + fi + # bug 432322 + use x86 && replace-flags -O0 -O1 + + local mycmakeargs=( + -DAVIDEMUX_SOURCE_DIR="${S}" + -DAVIDEMUX_INSTALL_PREFIX="${BUILD_S}" + -DAVIDEMUX_CORECONFIG_DIR="${BUILD_S}/config" + -DARTS=OFF + -DESD=OFF + $(cmake-utils_use aac FAAC) + $(cmake-utils_use aac FAAD) + $(cmake-utils_use aften) + $(cmake-utils_use alsa) + $(cmake-utils_use amr OPENCORE_AMRNB) + $(cmake-utils_use amr OPENCORE_AMRWB) + $(cmake-utils_use gtk) + $(cmake-utils_use jack) + $(cmake-utils_use mp3 LAME) + $(cmake-utils_use nls GETTEXT) + $(cmake-utils_use_use opengl) + $(cmake-utils_use oss) + $(cmake-utils_use pulseaudio PULSEAUDIOSIMPLE) + $(cmake-utils_use qt4) + $(cmake-utils_use sdl) + $(cmake-utils_use truetype FREETYPE2) + $(cmake-utils_use truetype FONTCONFIG) + $(cmake-utils_use vorbis) + $(cmake-utils_use vorbis LIBVORBIS) + $(cmake-utils_use vpx VPXDEC) + $(cmake-utils_use x264) + $(cmake-utils_use xv XVIDEO) + $(cmake-utils_use xvid) + ) + cmake-utils_src_configure +} + +src_compile() { + # first build the application + cmake-utils_src_compile -j1 + + # and then go on with plugins + emake -C "${CMAKE_BUILD_DIR}/plugins" +} + +src_install() { + # install the application + cmake-utils_src_install + + # install plugins + emake -C "${CMAKE_BUILD_DIR}/plugins" DESTDIR="${D}" install + + newicon ${PN}_icon.png ${PN}.png + use gtk && domenu avidemux2-gtk.desktop + use qt4 && domenu avidemux2.desktop +} diff --git a/media-video/avidemux/avidemux-2.6.2-r1.ebuild b/media-video/avidemux/avidemux-2.6.2-r1.ebuild new file mode 100644 index 000000000000..bc2cbd50e07a --- /dev/null +++ b/media-video/avidemux/avidemux-2.6.2-r1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr" +inherit cmake-utils eutils flag-o-matic l10n toolchain-funcs + +SLOT="2.6" +MY_P="${PN}_${PV}" + +DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/${PN}" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${MY_P}.tar.gz" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +KEYWORDS="~amd64 ~x86" +IUSE="aften a52 alsa amr debug dts fontconfig jack lame libsamplerate cpu_flags_x86_mmx oss nls qt4 sdl vorbis truetype xvid x264 xv" + +# TODO: Figure out which dependencies can be moved out of avidemux-core into here. +RDEPEND="=media-libs/avidemux-core-${PV}-r1[aften?,a52?,alsa?,amr?,dts?,fontconfig?,jack?,lame?,libsamplerate?,cpu_flags_x86_mmx?,oss?,nls?,sdl?,vorbis?,truetype?,xvid?,x264?,xv?] + qt4? ( >=dev-qt/qtgui-4.8.3:4 )" +DEPEND="$RDEPEND" +PDEPEND="=media-libs/avidemux-plugins-${PV}-r2[aften?,a52?,alsa?,amr?,dts?,fontconfig?,jack?,lame?,libsamplerate?,cpu_flags_x86_mmx?,oss?,nls?,sdl?,vorbis?,truetype?,xvid?,x264?,xv?]" + +S="${WORKDIR}/${MY_P}" + +PROCESSES="buildCli:avidemux/cli" + +use qt4 && PROCESSES+=" buildQt4:avidemux/qt4" + +src_prepare() { + cmake-utils_src_prepare + + # Fix icon name -> avidemux-2.6.png + sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed." + + # Now rename the desktop file to not collide with 2.5. + mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt4:' ${PN}-2.6.desktop || die "Desktop file fix failed." + + # Fix QA warnings that complain a trailing ; is missing and Application is deprecated. + sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}-2.6.desktop +} + +src_configure() { + local x mycmakeargs + + mycmakeargs=" + $(for x in ${IUSE}; do cmake-utils_use ${x/#-/}; done) + $(cmake-utils_use amr OPENCORE_AMRWB) + $(cmake-utils_use amr OPENCORE_AMRNB) + $(cmake-utils_use dts LIBDCA) + $(cmake-utils_use nls GETTEXT) + $(cmake-utils_use truetype FREETYPE2) + $(cmake-utils_use xv XVIDEO) + " + use debug && POSTFIX="_debug" && mycmakeargs+="-DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug" + + for PROCESS in ${PROCESSES} ; do + SOURCE="${PROCESS%%:*}" + DEST="${PROCESS#*:}" + + mkdir "${S}"/${SOURCE} || die "Can't create build folder." + cd "${S}"/${SOURCE} || die "Can't enter build folder." + + cmake -DAVIDEMUX_SOURCE_DIR="${S}" \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + ${mycmakeargs} -G "Unix Makefiles" ../"${DEST}${POSTFIX}/" || die "cmake failed." + done +} + +src_compile() { + # Add lax vector typing for PowerPC. + if use ppc || use ppc64 ; then + append-cflags -flax-vector-conversions + fi + + # See bug 432322. + use x86 && replace-flags -O0 -O1 + + for PROCESS in ${PROCESSES} ; do + SOURCE="${PROCESS%%:*}" + + cd "${S}/${SOURCE}" || die "Can't enter build folder." + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" + done +} + +src_install() { + for PROCESS in ${PROCESSES} ; do + SOURCE="${PROCESS%%:*}" + + cd "${S}/${SOURCE}" || die "Can't enter build folder." + emake DESTDIR="${ED}" install + done + + cd "${S}" || die "Can't enter source folder." + + if [[ -f "${ED}"/usr/bin/avidemux3_cli ]] ; then + fperms +x /usr/bin/avidemux3_cli + fi + + if [[ -f "${ED}"/usr/bin/avidemux3_jobs ]] ; then + fperms +x /usr/bin/avidemux3_jobs + fi + use qt4 && fperms +x /usr/bin/avidemux3_qt4 + + newicon ${PN}_icon.png ${PN}-2.6.png + use qt4 && domenu ${PN}-2.6.desktop + + dodoc AUTHORS README +} diff --git a/media-video/avidemux/avidemux-2.6.3.ebuild b/media-video/avidemux/avidemux-2.6.3.ebuild new file mode 100644 index 000000000000..e3e59e0bdf30 --- /dev/null +++ b/media-video/avidemux/avidemux-2.6.3.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr" +inherit cmake-utils eutils flag-o-matic l10n toolchain-funcs + +SLOT="2.6" +MY_P="${PN}_${PV}" + +DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/${PN}" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${MY_P}.tar.gz" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +KEYWORDS="~amd64 ~x86" +IUSE="debug opengl nls qt4 sdl vdpau xv" + +DEPEND="=media-libs/avidemux-core-${PV}[nls?,sdl?,vdpau?,xv?] + opengl? ( virtual/opengl ) + qt4? ( >=dev-qt/qtgui-4.8.3:4 )" +RDEPEND="$DEPEND" +PDEPEND="=media-libs/avidemux-plugins-${PV}" + +S="${WORKDIR}/${MY_P}" + +PROCESSES="buildCli:avidemux/cli" + +use qt4 && PROCESSES+=" buildQt4:avidemux/qt4" + +src_prepare() { + cmake-utils_src_prepare + + # Fix icon name -> avidemux-2.6.png + sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed." + + # Now rename the desktop file to not collide with 2.5. + mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt4:' ${PN}-2.6.desktop || die "Desktop file fix failed." + + # Fix QA warnings that complain a trailing ; is missing and Application is deprecated. + sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}-2.6.desktop +} + +src_configure() { + local x mycmakeargs + + mycmakeargs=" + $(cmake-utils_use nls GETTEXT) + $(cmake-utils_use sdl SDL) + $(cmake-utils_use vdpau VDPAU) + $(cmake-utils_use xv XVIDEO) + " + use debug && POSTFIX="_debug" && mycmakeargs+="-DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug" + + for PROCESS in ${PROCESSES} ; do + SOURCE="${PROCESS%%:*}" + DEST="${PROCESS#*:}" + + mkdir "${S}"/${SOURCE} || die "Can't create build folder." + cd "${S}"/${SOURCE} || die "Can't enter build folder." + + cmake -DCMAKE_INSTALL_PREFIX="/usr" \ + ${mycmakeargs} -G "Unix Makefiles" ../"${DEST}${POSTFIX}/" || die "cmake failed." + done +} + +src_compile() { + # Add lax vector typing for PowerPC. + if use ppc || use ppc64 ; then + append-cflags -flax-vector-conversions + fi + + # See bug 432322. + use x86 && replace-flags -O0 -O1 + + for PROCESS in ${PROCESSES} ; do + SOURCE="${PROCESS%%:*}" + + cd "${S}/${SOURCE}" || die "Can't enter build folder." + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" + done +} + +src_install() { + for PROCESS in ${PROCESSES} ; do + SOURCE="${PROCESS%%:*}" + + cd "${S}/${SOURCE}" || die "Can't enter build folder." + emake DESTDIR="${ED}" install + done + + cd "${S}" || die "Can't enter source folder." + + if [[ -f "${ED}"/usr/bin/avidemux3_cli ]] ; then + fperms +x /usr/bin/avidemux3_cli + fi + + if [[ -f "${ED}"/usr/bin/avidemux3_jobs ]] ; then + fperms +x /usr/bin/avidemux3_jobs + fi + use qt4 && fperms +x /usr/bin/avidemux3_qt4 + + newicon ${PN}_icon.png ${PN}-2.6.png + use qt4 && domenu ${PN}-2.6.desktop + + dodoc AUTHORS README +} diff --git a/media-video/avidemux/avidemux-2.6.4.ebuild b/media-video/avidemux/avidemux-2.6.4.ebuild new file mode 100644 index 000000000000..9390c328ffb6 --- /dev/null +++ b/media-video/avidemux/avidemux-2.6.4.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr" +inherit cmake-utils eutils flag-o-matic l10n toolchain-funcs + +SLOT="2.6" +MY_P="${PN}_${PV}" + +DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/${PN}" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${MY_P}.tar.gz" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +KEYWORDS="~amd64 ~x86" +IUSE="debug opengl nls qt4 sdl vdpau xv" + +DEPEND="~media-libs/avidemux-core-${PV}[nls?,sdl?,vdpau?,xv?] + opengl? ( virtual/opengl ) + qt4? ( >=dev-qt/qtgui-4.8.3:4 )" +RDEPEND="$DEPEND" +PDEPEND="~media-libs/avidemux-plugins-${PV}" + +S="${WORKDIR}/${MY_P}" + +processes="buildCli:avidemux/cli" + +use qt4 && processes+=" buildQt4:avidemux/qt4" + +src_prepare() { + default + + # Fix icon name -> avidemux-2.6.png + sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed." + + # Now rename the desktop file to not collide with 2.5. + mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt4:' ${PN}-2.6.desktop || die "Desktop file fix failed." + + # Fix QA warnings that complain a trailing ; is missing and Application is deprecated. + sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}-2.6.desktop +} + +src_configure() { + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + -DCMAKE_INSTALL_PREFIX='/usr' + $(cmake-utils_use nls GETTEXT) + $(cmake-utils_use sdl SDL) + $(cmake-utils_use vdpau VDPAU) + $(cmake-utils_use xv XVIDEO) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug" + fi + + for process in ${processes} ; do + local build="${process%%:*}" + + mkdir "${S}"/${build} || die "Can't create build folder." + cd "${S}"/${build} || die "Can't enter build folder." + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done +} + +src_compile() { + # Add lax vector typing for PowerPC. + if use ppc || use ppc64 ; then + append-cflags -flax-vector-conversions + fi + + # See bug 432322. + use x86 && replace-flags -O0 -O1 + + for process in ${processes} ; do + local source="${process%%:*}" + + cd "${S}/${source}" || die "Can't enter build folder." + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" + done +} + +src_install() { + for process in ${processes} ; do + local source="${process%%:*}" + + cd "${S}/${source}" || die "Can't enter build folder." + emake DESTDIR="${ED}" install + done + + cd "${S}" || die "Can't enter source folder." + + if [[ -f "${ED}"/usr/bin/avidemux3_cli ]] ; then + fperms +x /usr/bin/avidemux3_cli + fi + + if [[ -f "${ED}"/usr/bin/avidemux3_jobs ]] ; then + fperms +x /usr/bin/avidemux3_jobs + fi + use qt4 && fperms +x /usr/bin/avidemux3_qt4 + + newicon ${PN}_icon.png ${PN}-2.6.png + use qt4 && domenu ${PN}-2.6.desktop + + dodoc AUTHORS README +} diff --git a/media-video/avidemux/avidemux-2.6.5-r1.ebuild b/media-video/avidemux/avidemux-2.6.5-r1.ebuild new file mode 100644 index 000000000000..1e8da39bf44d --- /dev/null +++ b/media-video/avidemux/avidemux-2.6.5-r1.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr" + +inherit cmake-utils eutils flag-o-matic l10n + +SLOT="2.6" + +DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/${PN}" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +IUSE="debug opengl nls qt4 sdl vaapi vdpau video_cards_fglrx xv" +KEYWORDS="~amd64 ~x86" + +if [[ ${PV} == *9999* ]] ; then + KEYWORDS="" + EGIT_REPO_URI="git://gitorious.org/${PN}2-6/${PN}2-6.git https://git.gitorious.org/${PN}2-6/${PN}2-6.git" + + inherit git-2 +else + MY_P="${PN}_${PV}" + SRC_URI="mirror://sourceforge/${PN}/${PV}/${MY_P}.tar.gz" +fi + +DEPEND=" + ~media-libs/avidemux-core-${PV}:${SLOT}[nls?,sdl?,vaapi?,vdpau?,video_cards_fglrx?,xv?] + opengl? ( virtual/opengl:0 ) + qt4? ( >=dev-qt/qtgui-4.8.3:4 ) + vaapi? ( x11-libs/libva:0 ) + video_cards_fglrx? ( + || ( >=x11-drivers/ati-drivers-14.12-r3 + x11-libs/xvba-video:0 ) + )" +RDEPEND="$DEPEND" +PDEPEND="~media-libs/avidemux-plugins-${PV}:${SLOT}[opengl?,qt4?]" + +S="${WORKDIR}/${MY_P}" + +processes="buildCli:avidemux/cli" +use qt4 && processes+=" buildQt4:avidemux/qt4" + +src_prepare() { + cmake-utils_src_prepare + + # Fix icon name -> avidemux-2.6.png + sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed." + sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt4:' ${PN}2.desktop || die "Desktop file fix failed." + + # Fix QA warnings that complain a trailing ; is missing and Application is deprecated. + sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}2.desktop || die "Desktop file fix failed." + + # Now rename the desktop file to not collide with 2.5. + mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed." + + # Remove "Build Option" dialog because it doesn't reflect what the GUI can or has been built with. (Bug #463628) + sed -i -e '/Build Option/d' avidemux/common/ADM_commonUI/myOwnMenu.h || die "Couldn't remove \"Build Option\" dialog." +} + +src_configure() { + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + $(cmake-utils_use nls GETTEXT) + $(cmake-utils_use sdl) + $(cmake-utils_use vaapi LIBVA) + $(cmake-utils_use vdpau) + $(cmake-utils_use video_cards_fglrx XVBA) + $(cmake-utils_use xv XVIDEO) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1" + fi + + for process in ${processes} ; do + local build="${process%%:*}" + + mkdir "${S}"/${build} || die "Can't create build folder." + cd "${S}"/${build} || die "Can't enter build folder." + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done + + # Add lax vector typing for PowerPC. + if use ppc || use ppc64 ; then + append-cflags -flax-vector-conversions + fi + + # See bug 432322. + use x86 && replace-flags -O0 -O1 +} + +src_compile() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile + done +} + +DOCS=( AUTHORS README ) + +src_install() { + for process in ${processes} ; do + # cmake-utils_src_install doesn't respect BUILD_DIR + # and there sometimes is a preinstall phase present. + pushd "${S}/${process%%:*}" > /dev/null || die + grep '^preinstall/fast' Makefile && emake DESTDIR="${D}" preinstall/fast + grep '^install/fast' Makefile && emake DESTDIR="${D}" install/fast + popd > /dev/null || die + done + + if [[ -f "${ED}"/usr/bin/avidemux3_cli ]] ; then + fperms +x /usr/bin/avidemux3_cli + fi + + if [[ -f "${ED}"/usr/bin/avidemux3_jobs ]] ; then + fperms +x /usr/bin/avidemux3_jobs + fi + + cd "${S}" || die "Can't enter source folder." + newicon ${PN}_icon.png ${PN}-2.6.png + + if use qt4 ; then + fperms +x /usr/bin/avidemux3_qt4 + domenu ${PN}-2.6.desktop + fi +} diff --git a/media-video/avidemux/avidemux-2.6.5.ebuild b/media-video/avidemux/avidemux-2.6.5.ebuild new file mode 100644 index 000000000000..fa60e2250e62 --- /dev/null +++ b/media-video/avidemux/avidemux-2.6.5.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr" + +inherit cmake-utils eutils flag-o-matic l10n + +SLOT="2.6" + +DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/${PN}" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +IUSE="debug opengl nls qt4 sdl vaapi vdpau video_cards_fglrx xv" +KEYWORDS="~amd64 ~x86" + +if [[ ${PV} == *9999* ]] ; then + KEYWORDS="" + EGIT_REPO_URI="git://gitorious.org/${PN}2-6/${PN}2-6.git https://git.gitorious.org/${PN}2-6/${PN}2-6.git" + + inherit git-2 +else + MY_P="${PN}_${PV}" + SRC_URI="mirror://sourceforge/${PN}/${PV}/${MY_P}.tar.gz" +fi + +DEPEND=" + ~media-libs/avidemux-core-${PV}:${SLOT}[nls?,sdl?,vaapi?,vdpau?,video_cards_fglrx?,xv?] + opengl? ( virtual/opengl:0 ) + qt4? ( >=dev-qt/qtgui-4.8.3:4 ) + vaapi? ( x11-libs/libva:0 ) + video_cards_fglrx? ( + || ( >=x11-drivers/ati-drivers-14.12-r3 + x11-libs/xvba-video:0 ) + )" +RDEPEND="$DEPEND" +PDEPEND="~media-libs/avidemux-plugins-${PV}:${SLOT}[opengl?,qt4?]" + +S="${WORKDIR}/${MY_P}" + +processes="buildCli:avidemux/cli" +use qt4 && processes+=" buildQt4:avidemux/qt4" + +src_prepare() { + cmake-utils_src_prepare + + # Fix icon name -> avidemux-2.6.png + sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed." + sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt4:' ${PN}2.desktop || die "Desktop file fix failed." + + # Fix QA warnings that complain a trailing ; is missing and Application is deprecated. + sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}2.desktop || die "Desktop file fix failed." + + # Now rename the desktop file to not collide with 2.5. + mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed." + + # Remove "Build Option" dialog because it doesn't reflect what the GUI can or has been built with. (Bug #463628) + sed -i -e '/Build Option/d' avidemux/common/ADM_commonUI/myOwnMenu.h || die "Couldn't remove \"Build Option\" dialog." +} + +src_configure() { + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + $(cmake-utils_use nls GETTEXT) + $(cmake-utils_use sdl) + $(cmake-utils_use vaapi LIBVA) + $(cmake-utils_use vdpau) + $(cmake-utils_use video_cards_fglrx XVBA) + $(cmake-utils_use xv XVIDEO) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1" + fi + + for process in ${processes} ; do + local build="${process%%:*}" + + mkdir "${S}"/${build} || die "Can't create build folder." + cd "${S}"/${build} || die "Can't enter build folder." + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done + + # Add lax vector typing for PowerPC. + if use ppc || use ppc64 ; then + append-cflags -flax-vector-conversions + fi + + # See bug 432322. + use x86 && replace-flags -O0 -O1 +} + +src_compile() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile + done +} + +DOCS=( AUTHORS README ) + +src_install() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_install + done + + if [[ -f "${ED}"/usr/bin/avidemux3_cli ]] ; then + fperms +x /usr/bin/avidemux3_cli + fi + + if [[ -f "${ED}"/usr/bin/avidemux3_jobs ]] ; then + fperms +x /usr/bin/avidemux3_jobs + fi + + cd "${S}" || die "Can't enter source folder." + newicon ${PN}_icon.png ${PN}-2.6.png + + if use qt4 ; then + fperms +x /usr/bin/avidemux3_qt4 + domenu ${PN}-2.6.desktop + fi +} diff --git a/media-video/avidemux/avidemux-2.6.7.ebuild b/media-video/avidemux/avidemux-2.6.7.ebuild new file mode 100644 index 000000000000..c978ae6479c1 --- /dev/null +++ b/media-video/avidemux/avidemux-2.6.7.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr" + +inherit cmake-utils eutils flag-o-matic l10n + +SLOT="2.6" + +DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/${PN}" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +IUSE="debug opengl nls qt4 sdl vaapi vdpau video_cards_fglrx xv" +KEYWORDS="~amd64 ~x86" + +if [[ ${PV} == *9999* ]] ; then + KEYWORDS="" + EGIT_REPO_URI="git://gitorious.org/${PN}2-6/${PN}2-6.git https://git.gitorious.org/${PN}2-6/${PN}2-6.git" + + inherit git-2 +else + MY_P="${PN}_${PV}" + SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${MY_P}.tar.gz" +fi + +DEPEND=" + ~media-libs/avidemux-core-${PV}:${SLOT}[nls?,sdl?,vaapi?,vdpau?,video_cards_fglrx?,xv?] + opengl? ( virtual/opengl:0 ) + qt4? ( >=dev-qt/qtgui-4.8.3:4 ) + vaapi? ( x11-libs/libva:0 ) + video_cards_fglrx? ( + || ( >=x11-drivers/ati-drivers-14.12-r3 + x11-libs/xvba-video:0 ) + )" +RDEPEND="$DEPEND" +PDEPEND="~media-libs/avidemux-plugins-${PV}:${SLOT}[opengl?,qt4?]" + +S="${WORKDIR}/${MY_P}" + +processes="buildCli:avidemux/cli" +use qt4 && processes+=" buildQt4:avidemux/qt4" + +src_prepare() { + cmake-utils_src_prepare + + # Fix icon name -> avidemux-2.6.png + sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed." + sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt4:' ${PN}2.desktop || die "Desktop file fix failed." + + # Fix QA warnings that complain a trailing ; is missing and Application is deprecated. + sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}2.desktop || die "Desktop file fix failed." + + # Now rename the desktop file to not collide with 2.5. + mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed." + + # Remove "Build Option" dialog because it doesn't reflect what the GUI can or has been built with. (Bug #463628) + sed -i -e '/Build Option/d' avidemux/common/ADM_commonUI/myOwnMenu.h || die "Couldn't remove \"Build Option\" dialog." +} + +src_configure() { + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + $(cmake-utils_use nls GETTEXT) + $(cmake-utils_use sdl) + $(cmake-utils_use vaapi LIBVA) + $(cmake-utils_use vdpau) + $(cmake-utils_use video_cards_fglrx XVBA) + $(cmake-utils_use xv XVIDEO) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1" + fi + + for process in ${processes} ; do + local build="${process%%:*}" + + mkdir "${S}"/${build} || die "Can't create build folder." + cd "${S}"/${build} || die "Can't enter build folder." + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done + + # Add lax vector typing for PowerPC. + if use ppc || use ppc64 ; then + append-cflags -flax-vector-conversions + fi + + # See bug 432322. + use x86 && replace-flags -O0 -O1 +} + +src_compile() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile + done +} + +DOCS=( AUTHORS README ) + +src_install() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_install + done + + if [[ -f "${ED}"/usr/bin/avidemux3_cli ]] ; then + fperms +x /usr/bin/avidemux3_cli + fi + + if [[ -f "${ED}"/usr/bin/avidemux3_jobs ]] ; then + fperms +x /usr/bin/avidemux3_jobs + fi + + cd "${S}" || die "Can't enter source folder." + newicon ${PN}_icon.png ${PN}-2.6.png + + if use qt4 ; then + fperms +x /usr/bin/avidemux3_qt4 + domenu ${PN}-2.6.desktop + fi +} diff --git a/media-video/avidemux/avidemux-2.6.8.ebuild b/media-video/avidemux/avidemux-2.6.8.ebuild new file mode 100644 index 000000000000..c978ae6479c1 --- /dev/null +++ b/media-video/avidemux/avidemux-2.6.8.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr" + +inherit cmake-utils eutils flag-o-matic l10n + +SLOT="2.6" + +DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/${PN}" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +IUSE="debug opengl nls qt4 sdl vaapi vdpau video_cards_fglrx xv" +KEYWORDS="~amd64 ~x86" + +if [[ ${PV} == *9999* ]] ; then + KEYWORDS="" + EGIT_REPO_URI="git://gitorious.org/${PN}2-6/${PN}2-6.git https://git.gitorious.org/${PN}2-6/${PN}2-6.git" + + inherit git-2 +else + MY_P="${PN}_${PV}" + SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${MY_P}.tar.gz" +fi + +DEPEND=" + ~media-libs/avidemux-core-${PV}:${SLOT}[nls?,sdl?,vaapi?,vdpau?,video_cards_fglrx?,xv?] + opengl? ( virtual/opengl:0 ) + qt4? ( >=dev-qt/qtgui-4.8.3:4 ) + vaapi? ( x11-libs/libva:0 ) + video_cards_fglrx? ( + || ( >=x11-drivers/ati-drivers-14.12-r3 + x11-libs/xvba-video:0 ) + )" +RDEPEND="$DEPEND" +PDEPEND="~media-libs/avidemux-plugins-${PV}:${SLOT}[opengl?,qt4?]" + +S="${WORKDIR}/${MY_P}" + +processes="buildCli:avidemux/cli" +use qt4 && processes+=" buildQt4:avidemux/qt4" + +src_prepare() { + cmake-utils_src_prepare + + # Fix icon name -> avidemux-2.6.png + sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed." + sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt4:' ${PN}2.desktop || die "Desktop file fix failed." + + # Fix QA warnings that complain a trailing ; is missing and Application is deprecated. + sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}2.desktop || die "Desktop file fix failed." + + # Now rename the desktop file to not collide with 2.5. + mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed." + + # Remove "Build Option" dialog because it doesn't reflect what the GUI can or has been built with. (Bug #463628) + sed -i -e '/Build Option/d' avidemux/common/ADM_commonUI/myOwnMenu.h || die "Couldn't remove \"Build Option\" dialog." +} + +src_configure() { + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + $(cmake-utils_use nls GETTEXT) + $(cmake-utils_use sdl) + $(cmake-utils_use vaapi LIBVA) + $(cmake-utils_use vdpau) + $(cmake-utils_use video_cards_fglrx XVBA) + $(cmake-utils_use xv XVIDEO) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1" + fi + + for process in ${processes} ; do + local build="${process%%:*}" + + mkdir "${S}"/${build} || die "Can't create build folder." + cd "${S}"/${build} || die "Can't enter build folder." + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done + + # Add lax vector typing for PowerPC. + if use ppc || use ppc64 ; then + append-cflags -flax-vector-conversions + fi + + # See bug 432322. + use x86 && replace-flags -O0 -O1 +} + +src_compile() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile + done +} + +DOCS=( AUTHORS README ) + +src_install() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_install + done + + if [[ -f "${ED}"/usr/bin/avidemux3_cli ]] ; then + fperms +x /usr/bin/avidemux3_cli + fi + + if [[ -f "${ED}"/usr/bin/avidemux3_jobs ]] ; then + fperms +x /usr/bin/avidemux3_jobs + fi + + cd "${S}" || die "Can't enter source folder." + newicon ${PN}_icon.png ${PN}-2.6.png + + if use qt4 ; then + fperms +x /usr/bin/avidemux3_qt4 + domenu ${PN}-2.6.desktop + fi +} diff --git a/media-video/avidemux/avidemux-9999.ebuild b/media-video/avidemux/avidemux-9999.ebuild new file mode 100644 index 000000000000..c978ae6479c1 --- /dev/null +++ b/media-video/avidemux/avidemux-9999.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr" + +inherit cmake-utils eutils flag-o-matic l10n + +SLOT="2.6" + +DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/${PN}" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +IUSE="debug opengl nls qt4 sdl vaapi vdpau video_cards_fglrx xv" +KEYWORDS="~amd64 ~x86" + +if [[ ${PV} == *9999* ]] ; then + KEYWORDS="" + EGIT_REPO_URI="git://gitorious.org/${PN}2-6/${PN}2-6.git https://git.gitorious.org/${PN}2-6/${PN}2-6.git" + + inherit git-2 +else + MY_P="${PN}_${PV}" + SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${MY_P}.tar.gz" +fi + +DEPEND=" + ~media-libs/avidemux-core-${PV}:${SLOT}[nls?,sdl?,vaapi?,vdpau?,video_cards_fglrx?,xv?] + opengl? ( virtual/opengl:0 ) + qt4? ( >=dev-qt/qtgui-4.8.3:4 ) + vaapi? ( x11-libs/libva:0 ) + video_cards_fglrx? ( + || ( >=x11-drivers/ati-drivers-14.12-r3 + x11-libs/xvba-video:0 ) + )" +RDEPEND="$DEPEND" +PDEPEND="~media-libs/avidemux-plugins-${PV}:${SLOT}[opengl?,qt4?]" + +S="${WORKDIR}/${MY_P}" + +processes="buildCli:avidemux/cli" +use qt4 && processes+=" buildQt4:avidemux/qt4" + +src_prepare() { + cmake-utils_src_prepare + + # Fix icon name -> avidemux-2.6.png + sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed." + + # The desktop file is broken. It uses avidemux2 instead of avidemux3 + # so it will actually launch avidemux-2.5 if it is installed. + sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed." + sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt4:' ${PN}2.desktop || die "Desktop file fix failed." + + # Fix QA warnings that complain a trailing ; is missing and Application is deprecated. + sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}2.desktop || die "Desktop file fix failed." + + # Now rename the desktop file to not collide with 2.5. + mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed." + + # Remove "Build Option" dialog because it doesn't reflect what the GUI can or has been built with. (Bug #463628) + sed -i -e '/Build Option/d' avidemux/common/ADM_commonUI/myOwnMenu.h || die "Couldn't remove \"Build Option\" dialog." +} + +src_configure() { + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + $(cmake-utils_use nls GETTEXT) + $(cmake-utils_use sdl) + $(cmake-utils_use vaapi LIBVA) + $(cmake-utils_use vdpau) + $(cmake-utils_use video_cards_fglrx XVBA) + $(cmake-utils_use xv XVIDEO) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1" + fi + + for process in ${processes} ; do + local build="${process%%:*}" + + mkdir "${S}"/${build} || die "Can't create build folder." + cd "${S}"/${build} || die "Can't enter build folder." + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done + + # Add lax vector typing for PowerPC. + if use ppc || use ppc64 ; then + append-cflags -flax-vector-conversions + fi + + # See bug 432322. + use x86 && replace-flags -O0 -O1 +} + +src_compile() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile + done +} + +DOCS=( AUTHORS README ) + +src_install() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_install + done + + if [[ -f "${ED}"/usr/bin/avidemux3_cli ]] ; then + fperms +x /usr/bin/avidemux3_cli + fi + + if [[ -f "${ED}"/usr/bin/avidemux3_jobs ]] ; then + fperms +x /usr/bin/avidemux3_jobs + fi + + cd "${S}" || die "Can't enter source folder." + newicon ${PN}_icon.png ${PN}-2.6.png + + if use qt4 ; then + fperms +x /usr/bin/avidemux3_qt4 + domenu ${PN}-2.6.desktop + fi +} diff --git a/media-video/avidemux/files/avidemux-2.5.4-build-plugins-fix.patch b/media-video/avidemux/files/avidemux-2.5.4-build-plugins-fix.patch new file mode 100644 index 000000000000..66b44ad6986d --- /dev/null +++ b/media-video/avidemux/files/avidemux-2.5.4-build-plugins-fix.patch @@ -0,0 +1,13 @@ +Index: avidemux_2.5.4/CMakeLists.txt +=================================================================== +--- avidemux_2.5.4.orig/CMakeLists.txt ++++ avidemux_2.5.4/CMakeLists.txt +@@ -205,7 +205,7 @@ ADD_SUBDIRECTORY(avidemux) + ADD_SUBDIRECTORY(po)
+ ADD_SUBDIRECTORY(scripts)
+ # MEANX : DOES NOT WORK ADD_SUBDIRECTORY(plugins EXCLUDE_FROM_ALL)
+-
++ADD_SUBDIRECTORY(plugins EXCLUDE_FROM_ALL) + ########################################
+ # Config Summary
+ ########################################
diff --git a/media-video/avidemux/files/avidemux-2.5.6-ffmpeg-symbol-visibility.patch b/media-video/avidemux/files/avidemux-2.5.6-ffmpeg-symbol-visibility.patch new file mode 100644 index 000000000000..3251209800a0 --- /dev/null +++ b/media-video/avidemux/files/avidemux-2.5.6-ffmpeg-symbol-visibility.patch @@ -0,0 +1,20 @@ +--- branches/avidemux_2.5_branch_gruntster/cmake/patches/libavcodec_libavcodec.v.patch 2011/12/15 11:09:11 7699 ++++ branches/avidemux_2.5_branch_gruntster/cmake/patches/libavcodec_libavcodec.v.patch 2012/03/15 07:19:34 7750 +@@ -1,11 +1,12 @@ +---- ../ffmpeg-0.9/libavcodec/libavcodec.v 2011-12-14 15:00:29 +0000 +-+++ libavcodec/libavcodec.v 2011-12-14 15:00:28 +0000 +-@@ -25,5 +25,8 @@ ++--- libavcodec/libavcodec.v.old 2012-03-04 08:36:22.038330656 +0100 +++++ libavcodec/libavcodec.v 2012-03-04 08:36:44.128330633 +0100 ++@@ -25,5 +25,9 @@ + ff_mmxext_idct; + ff_idct_xvid*; + ff_jpeg_fdct*; + + ff_h264_info; +-+ ff_golomb_vlc_len; +-+ ff_ue_golomb_vlc_code; +++ ff_golomb_vlc_len; +++ ff_ue_golomb_vlc_code; +++ ff_se_golomb_vlc_code; + local: *; + }; diff --git a/media-video/avidemux/metadata.xml b/media-video/avidemux/metadata.xml new file mode 100644 index 000000000000..3f82cb4412c7 --- /dev/null +++ b/media-video/avidemux/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>video</herd> + <use> + <flag name="aften">Enable A/52 (AC-3) audio encoder support.</flag> + <flag name="amr">Enable Adaptive Multi-Rate format support via <pkg>media-libs/opencore-amr</pkg>.</flag> + <flag name="vpx">Enable VP8 codec support via <pkg>media-libs/libvpx</pkg>.</flag> + </use> + <upstream> + <remote-id type="sourceforge">avidemux</remote-id> + </upstream> +</pkgmetadata> |