summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Wijsman <tomwij@gentoo.org>2013-03-16 11:14:55 +0000
committerTom Wijsman <tomwij@gentoo.org>2013-03-16 11:14:55 +0000
commitd305e8931b13f31d675ec952ac4c37c35c875eb4 (patch)
tree86fad71877d06d9d0d7452ef21b826197c0afca0 /media-libs
parentTemporarily mask new libmikmod with abi_x86_32 support pending on new emul-li... (diff)
downloadgentoo-2-d305e8931b13f31d675ec952ac4c37c35c875eb4.tar.gz
gentoo-2-d305e8931b13f31d675ec952ac4c37c35c875eb4.tar.bz2
gentoo-2-d305e8931b13f31d675ec952ac4c37c35c875eb4.zip
New package to separate the core libraries from avidemux.
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/avidemux-core/ChangeLog9
-rw-r--r--media-libs/avidemux-core/Manifest4
-rw-r--r--media-libs/avidemux-core/avidemux-core-2.6.2.ebuild113
-rw-r--r--media-libs/avidemux-core/metadata.xml14
4 files changed, 140 insertions, 0 deletions
diff --git a/media-libs/avidemux-core/ChangeLog b/media-libs/avidemux-core/ChangeLog
new file mode 100644
index 000000000000..e66be547fa2b
--- /dev/null
+++ b/media-libs/avidemux-core/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for media-libs/avidemux-core
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/avidemux-core/ChangeLog,v 1.1 2013/03/16 11:14:55 tomwij Exp $
+
+*avidemux-core-2.6.2 (16 Mar 2013)
+
+ 16 Mar 2013; Tom Wijsman <TomWij@gentoo.org> +avidemux-core-2.6.2.ebuild,
+ +metadata.xml:
+ New package to separate the core libraries from avidemux.
diff --git a/media-libs/avidemux-core/Manifest b/media-libs/avidemux-core/Manifest
new file mode 100644
index 000000000000..f6ff819f3510
--- /dev/null
+++ b/media-libs/avidemux-core/Manifest
@@ -0,0 +1,4 @@
+DIST avidemux_2.6.2.tar.gz 17009420 SHA256 67c5676692152094033fbab490fbea24af27d8744496578d1c77957ab103fdb6 SHA512 1ba6f1c751732eec9fdceb2b0728122005ceab4c74ac09d213ebeff4c2af2a0b6ce8737d88e7c43970d1b9ca80cb36ad925efc9e4a487c4f463f1435aee328b3 WHIRLPOOL 0c95e87293251fffb773c8a1996ac015ba0d6f9d36d4f5ae01313c0532d2cf020a3ba0704d0f607347bbf0444e10857d7508fcbd968d62e889d7b62b36b85df7
+EBUILD avidemux-core-2.6.2.ebuild 3687 SHA256 57e4b907dbea05e306cf4febf2ecbcca80fe14077ea3ad5e11a17c00000e1eb7 SHA512 46f99d4b3c545d68308ee55d9fd3c3406b043f078ad5a802219812da2490c5826d1eb2c7ac6b44c508842caac55b7bc85eae533401a6599523596bf165da70ba WHIRLPOOL 4c00fb2754c63d9d7d75630c35d7414f3aadf67e54a43e609714538cf548993cfe2b6536fea0b1b7f2dfcc500800fcb74cb87fd77179f7b7d61e58f483a930b3
+MISC ChangeLog 314 SHA256 6628a075b94d4c6ec90e474b248d331f06d9926bd1bb7ad6960908ac42a7569e SHA512 36288173d7ac53831eec0a46220ee932261ccd490ff6da4431c6959e561c1d820f7250578c35e318b56db66c130f2d63aab473be45f412e449a151253cc095d7 WHIRLPOOL e9473f9d4a5a2d620f25c3a0a4c32e4bd3ec9b37ecf525cf5f781835ec948ab4c39ac5ab5ef7209cb518eb77238001a060f02c19d7b4aea73398a9c2c329cb53
+MISC metadata.xml 531 SHA256 df76d8b7f4994551e675fecc89d6bf8212cc6df6fbf6a6076bd7b550216c112b SHA512 0278ba98d729ab620362485878cd7935c5d1d71c093d4a52777724235f765f049a3f0cae224a7d7da3a278126b93d85ec140c98f42baa2dc19ede7d57458dcdb WHIRLPOOL 15779ddc80f052e428820ed249c971ec4a43bc0dc4a495526c5b48a23bd71ae33283ff3e5c1e8105e9484ae264517f36704a462ff030f3ee35400c1982028d0e
diff --git a/media-libs/avidemux-core/avidemux-core-2.6.2.ebuild b/media-libs/avidemux-core/avidemux-core-2.6.2.ebuild
new file mode 100644
index 000000000000..d2b961d4bba5
--- /dev/null
+++ b/media-libs/avidemux-core/avidemux-core-2.6.2.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/avidemux-core/avidemux-core-2.6.2.ebuild,v 1.1 2013/03/16 11:14:55 tomwij Exp $
+
+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/-core/}"
+MY_P="${MY_PN}_${PV}"
+
+DESCRIPTION="Core libraries for a video editor designed for simple cutting, filtering and encoding tasks."
+HOMEPAGE="http://fixounet.free.fr/${MY_PN}"
+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 mmx oss nls sdl -system-ffmpeg vorbis truetype xvid x264 xv"
+
+RDEPEND="
+ >=dev-lang/spidermonkey-1.5-r2
+ 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 )
+ fontconfig? ( media-libs/fontconfig )
+ jack? (
+ media-sound/jack-audio-connection-kit
+ libsamplerate? ( media-libs/libsamplerate )
+ )
+ lame? ( media-sound/lame )
+ sdl? ( media-libs/libsdl )
+ system-ffmpeg? ( >=media-video/ffmpeg-1.0[aac,cpudetection,mp3,theora] )
+ truetype? ( >=media-libs/freetype-2.1.5 )
+ x264? ( media-libs/x264 )
+ xv? ( x11-libs/libXv )
+ xvid? ( media-libs/xvid )
+ vorbis? ( media-libs/libvorbis )
+"
+DEPEND="
+ $RDEPEND
+ oss? ( virtual/os-headers )
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+
+ # Preparations to support the system ffmpeg.
+ if use system-ffmpeg ; then
+ rm -rf cmake/admFFmpeg* cmake/ffmpeg* avidemux_core/ffmpeg_package buildCore/ffmpeg || die "Failed to remove ffmpeg."
+
+ sed -i -e 's/include(admFFmpegUtil)//g' avidemux/commonCmakeApplication.cmake || die "Failed to remove ffmpeg."
+ sed -i -e '/registerFFmpeg/d' avidemux/commonCmakeApplication.cmake || die "Failed to remove ffmpeg."
+ sed -i -e 's/include(admFFmpegBuild)//g' avidemux_core/CMakeLists.txt || die "Failed to remove ffmpeg."
+ fi
+
+ # Avoid existing avidemux installations from making the build process fail, bug #461496.
+ sed -i -e "s:getFfmpegLibNames(\"\${sourceDir}\"):getFfmpegLibNames(\"${S}/buildCore/ffmpeg/source/\"):g" cmake/admFFmpegUtil.cmake || die "Failed to avoid existing avidemux installation from making the build fail."
+}
+
+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"
+
+ mkdir "${S}"/buildCore || die "Can't creante build folder."
+ cd "${S}"/buildCore || die "Can't enter build folder."
+
+ cmake -DAVIDEMUX_SOURCE_DIR="${S}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ ${mycmakeargs} -G "Unix Makefiles" ../"avidemux_core${POSTFIX}/" || die "cmake failed."
+}
+
+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
+
+ # TODO: Report -j1 problem upstream, seems to be within ffmpeg code.
+ cd "${S}"/buildCore || die "Can't enter build folder."
+ emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)"
+}
+
+src_install() {
+ # TODO: Report -j1 problem upstream, seems to be within ffmpeg code.
+ cd "${S}"/buildCore || die "Can't enter build folder."
+ emake DESTDIR="${ED}" -j1 install
+
+ dodoc "${S}"/{AUTHORS,README}
+}
diff --git a/media-libs/avidemux-core/metadata.xml b/media-libs/avidemux-core/metadata.xml
new file mode 100644
index 000000000000..6f2bfe61299a
--- /dev/null
+++ b/media-libs/avidemux-core/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>TomWij@gentoo.org</email>
+ <name>Tom Wijsman</name>
+ </maintainer>
+ <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="system-ffmpeg">Use the ffmpeg provided by the system.</flag>
+ </use>
+</pkgmetadata>