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-libs/avidemux-plugins | |
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-libs/avidemux-plugins')
12 files changed, 1251 insertions, 0 deletions
diff --git a/media-libs/avidemux-plugins/Manifest b/media-libs/avidemux-plugins/Manifest new file mode 100644 index 000000000000..2938f2088ab6 --- /dev/null +++ b/media-libs/avidemux-plugins/Manifest @@ -0,0 +1,6 @@ +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-libs/avidemux-plugins/avidemux-plugins-2.6.2-r2.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.6.2-r2.ebuild new file mode 100644 index 000000000000..826b43575a6f --- /dev/null +++ b/media-libs/avidemux-plugins/avidemux-plugins-2.6.2-r2.ebuild @@ -0,0 +1,93 @@ +# 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_PN="${PN/-plugins/}" +MY_P="${MY_PN}_${PV}" + +DESCRIPTION="Plugins for avidemux; a video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/avidemux" +SRC_URI="mirror://sourceforge/${MY_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 and avidemux into here. +RDEPEND="=media-video/avidemux-${PV}-r1" +DEPEND="$RDEPEND" + +S="${WORKDIR}/${MY_P}" + +PROCESSES="buildPluginsCommon:avidemux_plugins + buildPluginsCLI:avidemux_plugins" + +use qt4 && PROCESSES+=" buildPluginsQt4:avidemux_plugins" + +src_configure() { + local x mycmakeargs plugin_ui + + 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." + + if [[ "${SOURCE}" == "buildPluginsCommon" ]] ; then + plugin_ui="-DPLUGIN_UI=COMMON" + elif [[ "${SOURCE}" == "buildPluginsCLI" ]] ; then + plugin_ui="-DPLUGIN_UI=CLI" + elif [[ "${SOURCE}" == "buildPluginsQt4" ]] ; then + plugin_ui="-DPLUGIN_UI=QT4" + fi + + cmake -DAVIDEMUX_SOURCE_DIR="${S}" \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + ${mycmakeargs} ${plugin_ui} -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 +} diff --git a/media-libs/avidemux-plugins/avidemux-plugins-2.6.3.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.6.3.ebuild new file mode 100644 index 000000000000..11ad3908e719 --- /dev/null +++ b/media-libs/avidemux-plugins/avidemux-plugins-2.6.3.ebuild @@ -0,0 +1,126 @@ +# 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_PN="${PN/-plugins/}" +MY_P="${MY_PN}_${PV}" + +DESCRIPTION="Plugins for avidemux; a video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/avidemux" +SRC_URI="mirror://sourceforge/${MY_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 faac faad fontconfig fribidi jack lame libsamplerate cpu_flags_x86_mmx opengl oss qt4 vorbis truetype twolame xvid x264 vpx" + +DEPEND=" + =media-video/avidemux-${PV}[opengl?,qt4?] + >=dev-lang/spidermonkey-1.5-r2:0 + dev-libs/libxml2 + media-libs/libpng + virtual/libiconv + aften? ( media-libs/aften ) + alsa? ( >=media-libs/alsa-lib-1.0.3b-r2 ) + amr? ( media-libs/opencore-amr ) + dts? ( media-libs/libdca ) + faac? ( media-libs/faac ) + faad? ( media-libs/faad2 ) + fontconfig? ( media-libs/fontconfig ) + fribidi? ( dev-libs/fribidi ) + jack? ( + media-sound/jack-audio-connection-kit + libsamplerate? ( media-libs/libsamplerate ) + ) + lame? ( media-sound/lame ) + oss? ( virtual/os-headers ) + truetype? ( >=media-libs/freetype-2.1.5 ) + twolame? ( media-sound/twolame ) + x264? ( media-libs/x264:= ) + xvid? ( media-libs/xvid ) + vorbis? ( media-libs/libvorbis ) + vpx? ( media-libs/libvpx ) +" +RDEPEND="$DEPEND" + +S="${WORKDIR}/${MY_P}" + +PROCESSES="buildPluginsCommon:avidemux_plugins + buildPluginsCLI:avidemux_plugins" + +use qt4 && PROCESSES+=" buildPluginsQt4:avidemux_plugins" + +src_configure() { + local x mycmakeargs plugin_ui extra_mycmakeargs + + mycmakeargs=" + $(cmake-utils_use fontconfig FONTCONFIG) + $(cmake-utils_use truetype FREETYPE2) + $(cmake-utils_use x264 X264) + " + + 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." + + if [[ "${SOURCE}" == "buildPluginsCommon" ]] ; then + plugin_ui="-DPLUGIN_UI=COMMON" + + extra_mycmakeargs=" + $(cmake-utils_use amr OPENCORE_AMRWB) + $(cmake-utils_use amr OPENCORE_AMRNB) + $(cmake-utils_use dts LIBDCA) + $(cmake-utils_use faad FAAD) + $(cmake-utils_use jack JACK) + $(cmake-utils_use vorbis VORBIS) + " + elif [[ "${SOURCE}" == "buildPluginsCLI" ]] ; then + plugin_ui="-DPLUGIN_UI=CLI" + extra_mycmakeargs="" + elif [[ "${SOURCE}" == "buildPluginsQt4" ]] ; then + plugin_ui="-DPLUGIN_UI=QT4" + extra_mycmakeargs="" + fi + + cmake -DAVIDEMUX_SOURCE_DIR="${S}" \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + ${mycmakeargs} ${extra_mycmakeargs} ${plugin_ui} -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 +} diff --git a/media-libs/avidemux-plugins/avidemux-plugins-2.6.4-r1.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.6.4-r1.ebuild new file mode 100644 index 000000000000..faebc53dfe5d --- /dev/null +++ b/media-libs/avidemux-plugins/avidemux-plugins-2.6.4-r1.ebuild @@ -0,0 +1,141 @@ +# 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_PN="${PN/-plugins/}" +MY_P="${MY_PN}_${PV}" + +DESCRIPTION="Plugins for avidemux; a video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/avidemux" +SRC_URI="mirror://sourceforge/${MY_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="aac aften a52 alsa amr debug dts fontconfig fribidi jack lame libsamplerate cpu_flags_x86_mmx opengl oss pulseaudio qt4 vorbis truetype twolame xv xvid x264 vpx" + +DEPEND=" + ~media-video/avidemux-${PV}[opengl?,qt4?] + >=dev-lang/spidermonkey-1.5-r2:0 + dev-libs/libxml2 + media-libs/libpng + virtual/libiconv + aac? ( + media-libs/faac + media-libs/faad2 + ) + aften? ( media-libs/aften ) + alsa? ( >=media-libs/alsa-lib-1.0.3b-r2 ) + amr? ( media-libs/opencore-amr ) + dts? ( media-libs/libdca ) + fontconfig? ( media-libs/fontconfig ) + fribidi? ( dev-libs/fribidi ) + jack? ( + media-sound/jack-audio-connection-kit + libsamplerate? ( media-libs/libsamplerate ) + ) + lame? ( media-sound/lame ) + oss? ( virtual/os-headers ) + pulseaudio? ( media-sound/pulseaudio ) + truetype? ( media-libs/freetype:2 ) + twolame? ( media-sound/twolame ) + x264? ( media-libs/x264:= ) + xv? ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXv + ) + xvid? ( media-libs/xvid ) + vorbis? ( media-libs/libvorbis ) + vpx? ( media-libs/libvpx ) +" +RDEPEND="$DEPEND" + +S="${WORKDIR}/${MY_P}" + +processes="buildPluginsCommon:avidemux_plugins + buildPluginsCLI:avidemux_plugins" + +use qt4 && processes+=" buildPluginsQt4:avidemux_plugins" + +src_prepare() { + epatch "${FILESDIR}"/${P}-optional-pulse.patch +} + +src_configure() { + for process in ${processes} ; do + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + -DCMAKE_INSTALL_PREFIX='/usr' + $(cmake-utils_use aac FAAC) + $(cmake-utils_use aac FAAD) + $(cmake-utils_use alsa) + $(cmake-utils_use aften) + $(cmake-utils_use amr OPENCORE_AMRWB) + $(cmake-utils_use amr OPENCORE_AMRNB) + $(cmake-utils_use dts LIBDCA) + $(cmake-utils_use fontconfig) + $(cmake-utils_use jack) + $(cmake-utils_use lame) + $(cmake-utils_use oss) + $(cmake-utils_use pulseaudio PULSEAUDIOSIMPLE) + $(cmake-utils_use qt4) + $(cmake-utils_use truetype FREETYPE2) + $(cmake-utils_use twolame) + $(cmake-utils_use x264) + $(cmake-utils_use xv XVIDEO) + $(cmake-utils_use xvid) + $(cmake-utils_use vorbis) + $(cmake-utils_use vorbis LIBVORBIS) + $(cmake-utils_use vpx VPXDEC) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug" + fi + + local build="${process%%:*}" + + if [[ "${build}" == "buildPluginsCommon" ]] ; then + mycmakeargs+=" -DPLUGIN_UI=COMMON" + elif [[ "${build}" == "buildPluginsCLI" ]] ; then + mycmakeargs+=" -DPLUGIN_UI=CLI" + elif [[ "${build}" == "buildPluginsQt4" ]] ; then + mycmakeargs+=" -DPLUGIN_UI=QT4" + fi + + 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 + cd "${S}"/${process%%:*} || die "Can't enter build folder." + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" + done +} + +src_install() { + for process in ${processes} ; do + cd "${S}"/${process%%:*} || die "Can't enter build folder." + emake DESTDIR="${ED}" install + done +} diff --git a/media-libs/avidemux-plugins/avidemux-plugins-2.6.4.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.6.4.ebuild new file mode 100644 index 000000000000..11ad3908e719 --- /dev/null +++ b/media-libs/avidemux-plugins/avidemux-plugins-2.6.4.ebuild @@ -0,0 +1,126 @@ +# 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_PN="${PN/-plugins/}" +MY_P="${MY_PN}_${PV}" + +DESCRIPTION="Plugins for avidemux; a video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/avidemux" +SRC_URI="mirror://sourceforge/${MY_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 faac faad fontconfig fribidi jack lame libsamplerate cpu_flags_x86_mmx opengl oss qt4 vorbis truetype twolame xvid x264 vpx" + +DEPEND=" + =media-video/avidemux-${PV}[opengl?,qt4?] + >=dev-lang/spidermonkey-1.5-r2:0 + dev-libs/libxml2 + media-libs/libpng + virtual/libiconv + aften? ( media-libs/aften ) + alsa? ( >=media-libs/alsa-lib-1.0.3b-r2 ) + amr? ( media-libs/opencore-amr ) + dts? ( media-libs/libdca ) + faac? ( media-libs/faac ) + faad? ( media-libs/faad2 ) + fontconfig? ( media-libs/fontconfig ) + fribidi? ( dev-libs/fribidi ) + jack? ( + media-sound/jack-audio-connection-kit + libsamplerate? ( media-libs/libsamplerate ) + ) + lame? ( media-sound/lame ) + oss? ( virtual/os-headers ) + truetype? ( >=media-libs/freetype-2.1.5 ) + twolame? ( media-sound/twolame ) + x264? ( media-libs/x264:= ) + xvid? ( media-libs/xvid ) + vorbis? ( media-libs/libvorbis ) + vpx? ( media-libs/libvpx ) +" +RDEPEND="$DEPEND" + +S="${WORKDIR}/${MY_P}" + +PROCESSES="buildPluginsCommon:avidemux_plugins + buildPluginsCLI:avidemux_plugins" + +use qt4 && PROCESSES+=" buildPluginsQt4:avidemux_plugins" + +src_configure() { + local x mycmakeargs plugin_ui extra_mycmakeargs + + mycmakeargs=" + $(cmake-utils_use fontconfig FONTCONFIG) + $(cmake-utils_use truetype FREETYPE2) + $(cmake-utils_use x264 X264) + " + + 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." + + if [[ "${SOURCE}" == "buildPluginsCommon" ]] ; then + plugin_ui="-DPLUGIN_UI=COMMON" + + extra_mycmakeargs=" + $(cmake-utils_use amr OPENCORE_AMRWB) + $(cmake-utils_use amr OPENCORE_AMRNB) + $(cmake-utils_use dts LIBDCA) + $(cmake-utils_use faad FAAD) + $(cmake-utils_use jack JACK) + $(cmake-utils_use vorbis VORBIS) + " + elif [[ "${SOURCE}" == "buildPluginsCLI" ]] ; then + plugin_ui="-DPLUGIN_UI=CLI" + extra_mycmakeargs="" + elif [[ "${SOURCE}" == "buildPluginsQt4" ]] ; then + plugin_ui="-DPLUGIN_UI=QT4" + extra_mycmakeargs="" + fi + + cmake -DAVIDEMUX_SOURCE_DIR="${S}" \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + ${mycmakeargs} ${extra_mycmakeargs} ${plugin_ui} -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 +} diff --git a/media-libs/avidemux-plugins/avidemux-plugins-2.6.5-r1.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.6.5-r1.ebuild new file mode 100644 index 000000000000..34ed5cfd72dc --- /dev/null +++ b/media-libs/avidemux-plugins/avidemux-plugins-2.6.5-r1.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils eutils flag-o-matic python-single-r1 + +SLOT="2.6" + +DESCRIPTION="Plugins for avidemux; a video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/avidemux" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +IUSE="aac aften a52 alsa amr debug dts fontconfig fribidi jack lame libsamplerate cpu_flags_x86_mmx opengl oss pulseaudio qt4 vorbis truetype twolame xv xvid x264 vpx" +KEYWORDS="~amd64 ~x86" + +MY_PN="${PN/-plugins/}" +if [[ ${PV} == *9999* ]] ; then + KEYWORDS="" + EGIT_REPO_URI="git://gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git https://git.gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git" + + inherit git-2 +else + MY_P="${MY_PN}_${PV}" + SRC_URI="mirror://sourceforge/${MY_PN}/${PV}/${MY_P}.tar.gz" +fi + +DEPEND=" + ~media-video/avidemux-${PV}:${SLOT}[opengl?,qt4?] + >=dev-lang/spidermonkey-1.5-r2:0= + dev-libs/libxml2:2 + media-libs/libpng:0= + virtual/libiconv:0 + aac? ( + media-libs/faac:0 + media-libs/faad2:0 + ) + aften? ( media-libs/aften:0 ) + alsa? ( >=media-libs/alsa-lib-1.0.3b-r2:0 ) + amr? ( media-libs/opencore-amr:0 ) + dts? ( media-libs/libdca:0 ) + fontconfig? ( media-libs/fontconfig:1.0 ) + fribidi? ( dev-libs/fribidi:0 ) + jack? ( + media-sound/jack-audio-connection-kit:0 + libsamplerate? ( media-libs/libsamplerate:0 ) + ) + lame? ( media-sound/lame:0 ) + oss? ( virtual/os-headers:0 ) + pulseaudio? ( media-sound/pulseaudio:0 ) + truetype? ( media-libs/freetype:2 ) + twolame? ( media-sound/twolame:0 ) + x264? ( media-libs/x264:0= ) + xv? ( + x11-libs/libX11:0 + x11-libs/libXext:0 + x11-libs/libXv:0 + ) + xvid? ( media-libs/xvid:0 ) + vorbis? ( media-libs/libvorbis:0 ) + vpx? ( media-libs/libvpx:0 ) + ${PYTHON_DEPS} +" +RDEPEND="$DEPEND" + +S="${WORKDIR}/${MY_P}" + +processes="buildPluginsCommon:avidemux_plugins + buildPluginsCLI:avidemux_plugins" +use qt4 && processes+=" buildPluginsQt4:avidemux_plugins" + +PATCHES=( "${FILESDIR}"/${PN}-2.6.4-optional-pulse.patch ) + +src_configure() { + # 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 build="${process%%:*}" + + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + -DPLUGIN_UI=$(echo ${build/buildPlugins/} | tr '[:lower:]' '[:upper:]') + $(cmake-utils_use aac FAAC) + $(cmake-utils_use aac FAAD) + $(cmake-utils_use alsa) + $(cmake-utils_use aften) + $(cmake-utils_use amr OPENCORE_AMRWB) + $(cmake-utils_use amr OPENCORE_AMRNB) + $(cmake-utils_use dts LIBDCA) + $(cmake-utils_use fontconfig) + $(cmake-utils_use jack) + $(cmake-utils_use lame) + $(cmake-utils_use oss) + $(cmake-utils_use pulseaudio PULSEAUDIOSIMPLE) + $(cmake-utils_use qt4) + $(cmake-utils_use truetype FREETYPE2) + $(cmake-utils_use twolame) + $(cmake-utils_use x264) + $(cmake-utils_use xv XVIDEO) + $(cmake-utils_use xvid) + $(cmake-utils_use vorbis) + $(cmake-utils_use vorbis LIBVORBIS) + $(cmake-utils_use vpx VPXDEC) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1" + fi + + mkdir "${S}"/${build} || die "Can't create build folder." + + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done +} + +src_compile() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile + done +} + +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 + + python_fix_shebang "${D}" +} diff --git a/media-libs/avidemux-plugins/avidemux-plugins-2.6.5.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.6.5.ebuild new file mode 100644 index 000000000000..34ed5cfd72dc --- /dev/null +++ b/media-libs/avidemux-plugins/avidemux-plugins-2.6.5.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils eutils flag-o-matic python-single-r1 + +SLOT="2.6" + +DESCRIPTION="Plugins for avidemux; a video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/avidemux" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +IUSE="aac aften a52 alsa amr debug dts fontconfig fribidi jack lame libsamplerate cpu_flags_x86_mmx opengl oss pulseaudio qt4 vorbis truetype twolame xv xvid x264 vpx" +KEYWORDS="~amd64 ~x86" + +MY_PN="${PN/-plugins/}" +if [[ ${PV} == *9999* ]] ; then + KEYWORDS="" + EGIT_REPO_URI="git://gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git https://git.gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git" + + inherit git-2 +else + MY_P="${MY_PN}_${PV}" + SRC_URI="mirror://sourceforge/${MY_PN}/${PV}/${MY_P}.tar.gz" +fi + +DEPEND=" + ~media-video/avidemux-${PV}:${SLOT}[opengl?,qt4?] + >=dev-lang/spidermonkey-1.5-r2:0= + dev-libs/libxml2:2 + media-libs/libpng:0= + virtual/libiconv:0 + aac? ( + media-libs/faac:0 + media-libs/faad2:0 + ) + aften? ( media-libs/aften:0 ) + alsa? ( >=media-libs/alsa-lib-1.0.3b-r2:0 ) + amr? ( media-libs/opencore-amr:0 ) + dts? ( media-libs/libdca:0 ) + fontconfig? ( media-libs/fontconfig:1.0 ) + fribidi? ( dev-libs/fribidi:0 ) + jack? ( + media-sound/jack-audio-connection-kit:0 + libsamplerate? ( media-libs/libsamplerate:0 ) + ) + lame? ( media-sound/lame:0 ) + oss? ( virtual/os-headers:0 ) + pulseaudio? ( media-sound/pulseaudio:0 ) + truetype? ( media-libs/freetype:2 ) + twolame? ( media-sound/twolame:0 ) + x264? ( media-libs/x264:0= ) + xv? ( + x11-libs/libX11:0 + x11-libs/libXext:0 + x11-libs/libXv:0 + ) + xvid? ( media-libs/xvid:0 ) + vorbis? ( media-libs/libvorbis:0 ) + vpx? ( media-libs/libvpx:0 ) + ${PYTHON_DEPS} +" +RDEPEND="$DEPEND" + +S="${WORKDIR}/${MY_P}" + +processes="buildPluginsCommon:avidemux_plugins + buildPluginsCLI:avidemux_plugins" +use qt4 && processes+=" buildPluginsQt4:avidemux_plugins" + +PATCHES=( "${FILESDIR}"/${PN}-2.6.4-optional-pulse.patch ) + +src_configure() { + # 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 build="${process%%:*}" + + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + -DPLUGIN_UI=$(echo ${build/buildPlugins/} | tr '[:lower:]' '[:upper:]') + $(cmake-utils_use aac FAAC) + $(cmake-utils_use aac FAAD) + $(cmake-utils_use alsa) + $(cmake-utils_use aften) + $(cmake-utils_use amr OPENCORE_AMRWB) + $(cmake-utils_use amr OPENCORE_AMRNB) + $(cmake-utils_use dts LIBDCA) + $(cmake-utils_use fontconfig) + $(cmake-utils_use jack) + $(cmake-utils_use lame) + $(cmake-utils_use oss) + $(cmake-utils_use pulseaudio PULSEAUDIOSIMPLE) + $(cmake-utils_use qt4) + $(cmake-utils_use truetype FREETYPE2) + $(cmake-utils_use twolame) + $(cmake-utils_use x264) + $(cmake-utils_use xv XVIDEO) + $(cmake-utils_use xvid) + $(cmake-utils_use vorbis) + $(cmake-utils_use vorbis LIBVORBIS) + $(cmake-utils_use vpx VPXDEC) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1" + fi + + mkdir "${S}"/${build} || die "Can't create build folder." + + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done +} + +src_compile() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile + done +} + +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 + + python_fix_shebang "${D}" +} diff --git a/media-libs/avidemux-plugins/avidemux-plugins-2.6.7.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.6.7.ebuild new file mode 100644 index 000000000000..39ecfb56a45e --- /dev/null +++ b/media-libs/avidemux-plugins/avidemux-plugins-2.6.7.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils eutils flag-o-matic python-single-r1 + +SLOT="2.6" + +DESCRIPTION="Plugins for avidemux; a video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/avidemux" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +IUSE="aac aften a52 alsa amr debug dts fontconfig fribidi jack lame libsamplerate cpu_flags_x86_mmx opengl oss pulseaudio qt4 vorbis truetype twolame xv xvid x264 vdpau vpx" +KEYWORDS="~amd64 ~x86" + +MY_PN="${PN/-plugins/}" +if [[ ${PV} == *9999* ]] ; then + KEYWORDS="" + EGIT_REPO_URI="git://gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git https://git.gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git" + + inherit git-2 +else + MY_P="${MY_PN}_${PV}" + SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}/${PV}/${MY_P}.tar.gz" +fi + +DEPEND=" + ~media-libs/avidemux-core-${PV}:${SLOT}[vdpau?] + ~media-video/avidemux-${PV}:${SLOT}[opengl?,qt4?] + >=dev-lang/spidermonkey-1.5-r2:0= + dev-libs/libxml2:2 + media-libs/libpng:0= + virtual/libiconv:0 + aac? ( + media-libs/faac:0 + media-libs/faad2:0 + ) + aften? ( media-libs/aften:0 ) + alsa? ( >=media-libs/alsa-lib-1.0.3b-r2:0 ) + amr? ( media-libs/opencore-amr:0 ) + dts? ( media-libs/libdca:0 ) + fontconfig? ( media-libs/fontconfig:1.0 ) + fribidi? ( dev-libs/fribidi:0 ) + jack? ( + media-sound/jack-audio-connection-kit:0 + libsamplerate? ( media-libs/libsamplerate:0 ) + ) + lame? ( media-sound/lame:0 ) + oss? ( virtual/os-headers:0 ) + pulseaudio? ( media-sound/pulseaudio:0 ) + truetype? ( media-libs/freetype:2 ) + twolame? ( media-sound/twolame:0 ) + x264? ( media-libs/x264:0= ) + xv? ( + x11-libs/libX11:0 + x11-libs/libXext:0 + x11-libs/libXv:0 + ) + xvid? ( media-libs/xvid:0 ) + vorbis? ( media-libs/libvorbis:0 ) + vpx? ( media-libs/libvpx:0 ) + ${PYTHON_DEPS} +" +RDEPEND="$DEPEND" + +S="${WORKDIR}/${MY_P}" + +processes="buildPluginsCommon:avidemux_plugins + buildPluginsCLI:avidemux_plugins" +use qt4 && processes+=" buildPluginsQt4:avidemux_plugins" + +PATCHES=( "${FILESDIR}"/${PN}-2.6.4-optional-pulse.patch ) + +src_configure() { + # 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 build="${process%%:*}" + + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + -DPLUGIN_UI=$(echo ${build/buildPlugins/} | tr '[:lower:]' '[:upper:]') + $(cmake-utils_use aac FAAC) + $(cmake-utils_use aac FAAD) + $(cmake-utils_use alsa) + $(cmake-utils_use aften) + $(cmake-utils_use amr OPENCORE_AMRWB) + $(cmake-utils_use amr OPENCORE_AMRNB) + $(cmake-utils_use dts LIBDCA) + $(cmake-utils_use fontconfig) + $(cmake-utils_use jack) + $(cmake-utils_use lame) + $(cmake-utils_use oss) + $(cmake-utils_use pulseaudio PULSEAUDIOSIMPLE) + $(cmake-utils_use qt4) + $(cmake-utils_use truetype FREETYPE2) + $(cmake-utils_use twolame) + $(cmake-utils_use x264) + $(cmake-utils_use xv XVIDEO) + $(cmake-utils_use xvid) + $(cmake-utils_use vdpau) + $(cmake-utils_use vorbis) + $(cmake-utils_use vorbis LIBVORBIS) + $(cmake-utils_use vpx VPXDEC) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1" + fi + + mkdir "${S}"/${build} || die "Can't create build folder." + + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done +} + +src_compile() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile + done +} + +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 + + python_fix_shebang "${D}" +} diff --git a/media-libs/avidemux-plugins/avidemux-plugins-2.6.8.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-2.6.8.ebuild new file mode 100644 index 000000000000..39ecfb56a45e --- /dev/null +++ b/media-libs/avidemux-plugins/avidemux-plugins-2.6.8.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils eutils flag-o-matic python-single-r1 + +SLOT="2.6" + +DESCRIPTION="Plugins for avidemux; a video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/avidemux" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +IUSE="aac aften a52 alsa amr debug dts fontconfig fribidi jack lame libsamplerate cpu_flags_x86_mmx opengl oss pulseaudio qt4 vorbis truetype twolame xv xvid x264 vdpau vpx" +KEYWORDS="~amd64 ~x86" + +MY_PN="${PN/-plugins/}" +if [[ ${PV} == *9999* ]] ; then + KEYWORDS="" + EGIT_REPO_URI="git://gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git https://git.gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git" + + inherit git-2 +else + MY_P="${MY_PN}_${PV}" + SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}/${PV}/${MY_P}.tar.gz" +fi + +DEPEND=" + ~media-libs/avidemux-core-${PV}:${SLOT}[vdpau?] + ~media-video/avidemux-${PV}:${SLOT}[opengl?,qt4?] + >=dev-lang/spidermonkey-1.5-r2:0= + dev-libs/libxml2:2 + media-libs/libpng:0= + virtual/libiconv:0 + aac? ( + media-libs/faac:0 + media-libs/faad2:0 + ) + aften? ( media-libs/aften:0 ) + alsa? ( >=media-libs/alsa-lib-1.0.3b-r2:0 ) + amr? ( media-libs/opencore-amr:0 ) + dts? ( media-libs/libdca:0 ) + fontconfig? ( media-libs/fontconfig:1.0 ) + fribidi? ( dev-libs/fribidi:0 ) + jack? ( + media-sound/jack-audio-connection-kit:0 + libsamplerate? ( media-libs/libsamplerate:0 ) + ) + lame? ( media-sound/lame:0 ) + oss? ( virtual/os-headers:0 ) + pulseaudio? ( media-sound/pulseaudio:0 ) + truetype? ( media-libs/freetype:2 ) + twolame? ( media-sound/twolame:0 ) + x264? ( media-libs/x264:0= ) + xv? ( + x11-libs/libX11:0 + x11-libs/libXext:0 + x11-libs/libXv:0 + ) + xvid? ( media-libs/xvid:0 ) + vorbis? ( media-libs/libvorbis:0 ) + vpx? ( media-libs/libvpx:0 ) + ${PYTHON_DEPS} +" +RDEPEND="$DEPEND" + +S="${WORKDIR}/${MY_P}" + +processes="buildPluginsCommon:avidemux_plugins + buildPluginsCLI:avidemux_plugins" +use qt4 && processes+=" buildPluginsQt4:avidemux_plugins" + +PATCHES=( "${FILESDIR}"/${PN}-2.6.4-optional-pulse.patch ) + +src_configure() { + # 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 build="${process%%:*}" + + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + -DPLUGIN_UI=$(echo ${build/buildPlugins/} | tr '[:lower:]' '[:upper:]') + $(cmake-utils_use aac FAAC) + $(cmake-utils_use aac FAAD) + $(cmake-utils_use alsa) + $(cmake-utils_use aften) + $(cmake-utils_use amr OPENCORE_AMRWB) + $(cmake-utils_use amr OPENCORE_AMRNB) + $(cmake-utils_use dts LIBDCA) + $(cmake-utils_use fontconfig) + $(cmake-utils_use jack) + $(cmake-utils_use lame) + $(cmake-utils_use oss) + $(cmake-utils_use pulseaudio PULSEAUDIOSIMPLE) + $(cmake-utils_use qt4) + $(cmake-utils_use truetype FREETYPE2) + $(cmake-utils_use twolame) + $(cmake-utils_use x264) + $(cmake-utils_use xv XVIDEO) + $(cmake-utils_use xvid) + $(cmake-utils_use vdpau) + $(cmake-utils_use vorbis) + $(cmake-utils_use vorbis LIBVORBIS) + $(cmake-utils_use vpx VPXDEC) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1" + fi + + mkdir "${S}"/${build} || die "Can't create build folder." + + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done +} + +src_compile() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile + done +} + +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 + + python_fix_shebang "${D}" +} diff --git a/media-libs/avidemux-plugins/avidemux-plugins-9999.ebuild b/media-libs/avidemux-plugins/avidemux-plugins-9999.ebuild new file mode 100644 index 000000000000..39ecfb56a45e --- /dev/null +++ b/media-libs/avidemux-plugins/avidemux-plugins-9999.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils eutils flag-o-matic python-single-r1 + +SLOT="2.6" + +DESCRIPTION="Plugins for avidemux; a video editor designed for simple cutting, filtering and encoding tasks" +HOMEPAGE="http://fixounet.free.fr/avidemux" + +# Multiple licenses because of all the bundled stuff. +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" +IUSE="aac aften a52 alsa amr debug dts fontconfig fribidi jack lame libsamplerate cpu_flags_x86_mmx opengl oss pulseaudio qt4 vorbis truetype twolame xv xvid x264 vdpau vpx" +KEYWORDS="~amd64 ~x86" + +MY_PN="${PN/-plugins/}" +if [[ ${PV} == *9999* ]] ; then + KEYWORDS="" + EGIT_REPO_URI="git://gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git https://git.gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git" + + inherit git-2 +else + MY_P="${MY_PN}_${PV}" + SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}/${PV}/${MY_P}.tar.gz" +fi + +DEPEND=" + ~media-libs/avidemux-core-${PV}:${SLOT}[vdpau?] + ~media-video/avidemux-${PV}:${SLOT}[opengl?,qt4?] + >=dev-lang/spidermonkey-1.5-r2:0= + dev-libs/libxml2:2 + media-libs/libpng:0= + virtual/libiconv:0 + aac? ( + media-libs/faac:0 + media-libs/faad2:0 + ) + aften? ( media-libs/aften:0 ) + alsa? ( >=media-libs/alsa-lib-1.0.3b-r2:0 ) + amr? ( media-libs/opencore-amr:0 ) + dts? ( media-libs/libdca:0 ) + fontconfig? ( media-libs/fontconfig:1.0 ) + fribidi? ( dev-libs/fribidi:0 ) + jack? ( + media-sound/jack-audio-connection-kit:0 + libsamplerate? ( media-libs/libsamplerate:0 ) + ) + lame? ( media-sound/lame:0 ) + oss? ( virtual/os-headers:0 ) + pulseaudio? ( media-sound/pulseaudio:0 ) + truetype? ( media-libs/freetype:2 ) + twolame? ( media-sound/twolame:0 ) + x264? ( media-libs/x264:0= ) + xv? ( + x11-libs/libX11:0 + x11-libs/libXext:0 + x11-libs/libXv:0 + ) + xvid? ( media-libs/xvid:0 ) + vorbis? ( media-libs/libvorbis:0 ) + vpx? ( media-libs/libvpx:0 ) + ${PYTHON_DEPS} +" +RDEPEND="$DEPEND" + +S="${WORKDIR}/${MY_P}" + +processes="buildPluginsCommon:avidemux_plugins + buildPluginsCLI:avidemux_plugins" +use qt4 && processes+=" buildPluginsQt4:avidemux_plugins" + +PATCHES=( "${FILESDIR}"/${PN}-2.6.4-optional-pulse.patch ) + +src_configure() { + # 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 build="${process%%:*}" + + local mycmakeargs=" + -DAVIDEMUX_SOURCE_DIR='${S}' + -DPLUGIN_UI=$(echo ${build/buildPlugins/} | tr '[:lower:]' '[:upper:]') + $(cmake-utils_use aac FAAC) + $(cmake-utils_use aac FAAD) + $(cmake-utils_use alsa) + $(cmake-utils_use aften) + $(cmake-utils_use amr OPENCORE_AMRWB) + $(cmake-utils_use amr OPENCORE_AMRNB) + $(cmake-utils_use dts LIBDCA) + $(cmake-utils_use fontconfig) + $(cmake-utils_use jack) + $(cmake-utils_use lame) + $(cmake-utils_use oss) + $(cmake-utils_use pulseaudio PULSEAUDIOSIMPLE) + $(cmake-utils_use qt4) + $(cmake-utils_use truetype FREETYPE2) + $(cmake-utils_use twolame) + $(cmake-utils_use x264) + $(cmake-utils_use xv XVIDEO) + $(cmake-utils_use xvid) + $(cmake-utils_use vdpau) + $(cmake-utils_use vorbis) + $(cmake-utils_use vorbis LIBVORBIS) + $(cmake-utils_use vpx VPXDEC) + " + + if use debug ; then + mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1" + fi + + mkdir "${S}"/${build} || die "Can't create build folder." + + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure + done +} + +src_compile() { + for process in ${processes} ; do + BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile + done +} + +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 + + python_fix_shebang "${D}" +} diff --git a/media-libs/avidemux-plugins/files/avidemux-plugins-2.6.4-optional-pulse.patch b/media-libs/avidemux-plugins/files/avidemux-plugins-2.6.4-optional-pulse.patch new file mode 100644 index 000000000000..78650aaa7c02 --- /dev/null +++ b/media-libs/avidemux-plugins/files/avidemux-plugins-2.6.4-optional-pulse.patch @@ -0,0 +1,21 @@ +--- a/cmake/admCheckAudioDeviceLibs.cmake
++++ b/cmake/admCheckAudioDeviceLibs.cmake
+@@ -158,6 +158,8 @@
+
+ MESSAGE(STATUS "Checking for PULSEAUDIOSIMPLE")
+ MESSAGE(STATUS "*****************************")
++
++ IF (PULSEAUDIOSIMPLE)
+ IF (PULSEAUDIOSIMPLE_INCLUDE_DIR AND PULSEAUDIOSIMPLE_LIBRARIES)
+ # in cache already
+ SET(PULSEAUDIOSIMPLE_FIND_QUIETLY TRUE)
+@@ -198,6 +200,9 @@
+ MARK_AS_ADVANCED(PULSEAUDIOSIMPLE_INCLUDE_DIR PULSEAUDIOSIMPLE_LIBRARIES)
+
+ APPEND_SUMMARY_LIST("Audio Device" "PulseAudio" "${USE_PULSE_SIMPLE}")
++ ELSE (PULSEAUDIOSIMPLE)
++ MESSAGE("${MSG_DISABLE_OPTION}")
++ ENDIF (PULSEAUDIOSIMPLE)
+ ELSE (UNIX AND NOT APPLE)
+ SET(PULSEAUDIOSIMPLE_CAPABLE FALSE)
+ ENDIF (UNIX AND NOT APPLE)
diff --git a/media-libs/avidemux-plugins/metadata.xml b/media-libs/avidemux-plugins/metadata.xml new file mode 100644 index 000000000000..795f8bbed276 --- /dev/null +++ b/media-libs/avidemux-plugins/metadata.xml @@ -0,0 +1,17 @@ +<?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="faac">Enable free MPEG-4 audio codecs support via <pkg>media-libs/faac</pkg>.</flag> + <flag name="faad">Enable AAC audio decoding library support via <pkg>media-libs/faad2</pkg>.</flag> + <flag name="fribidi">Enable unicode bidirectional algorithm support via <pkg>dev-libs/fribidi</pkg>.</flag> + <flag name="twolame">Enable TwoLAME support via <pkg>media-sound/twolame</pkg>, an optimised MPEG Audio Layer 2 (MP2) encoder.</flag> + <flag name="vpx">Enable WebM VP8 Codec SDK support via <pkg>media-libs/libvpx</pkg>.</flag> + </use> + <upstream> + <remote-id type="sourceforge">avidemux</remote-id> + </upstream> +</pkgmetadata> |