summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2010-08-01 10:27:52 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2010-08-01 10:27:52 +0000
commit2fbe6b8390fd3840f2ebcf0d3260b6464427b5dc (patch)
tree2af893471987ee674cdc64435ae15d15cf249114 /media-video/avidemux
parentstable x86, bug 321591 (diff)
downloadgentoo-2-2fbe6b8390fd3840f2ebcf0d3260b6464427b5dc.tar.gz
gentoo-2-2fbe6b8390fd3840f2ebcf0d3260b6464427b5dc.tar.bz2
gentoo-2-2fbe6b8390fd3840f2ebcf0d3260b6464427b5dc.zip
Patch to fix pulseaudio automagic dependency. Bug #327555. Thanks to Mike Gilbert <floppymaster@gmail.com>
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-video/avidemux')
-rw-r--r--media-video/avidemux/ChangeLog9
-rw-r--r--media-video/avidemux/avidemux-2.5.3-r2.ebuild166
-rw-r--r--media-video/avidemux/files/avidemux-pulseaudiosimple.patch22
3 files changed, 196 insertions, 1 deletions
diff --git a/media-video/avidemux/ChangeLog b/media-video/avidemux/ChangeLog
index 950bed10cb0d..6494eeeef3fc 100644
--- a/media-video/avidemux/ChangeLog
+++ b/media-video/avidemux/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-video/avidemux
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.167 2010/06/18 22:23:43 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.168 2010/08/01 10:27:52 hwoarang Exp $
+
+*avidemux-2.5.3-r2 (01 Aug 2010)
+
+ 01 Aug 2010; Markos Chandras <hwoarang@gentoo.org>
+ +avidemux-2.5.3-r2.ebuild, +files/avidemux-pulseaudiosimple.patch:
+ Apply patch to fix pulseaudio automagic dependency. Fixes bug #327555.
+ Thanks to Mike Gilbert <floppymaster@gmail.com> for the patch
18 Jun 2010; Markos Chandras <hwoarang@gentoo.org> avidemux-2.5.2.ebuild:
Apply gcc-4.5 patch to previous ebuild
diff --git a/media-video/avidemux/avidemux-2.5.3-r2.ebuild b/media-video/avidemux/avidemux-2.5.3-r2.ebuild
new file mode 100644
index 000000000000..7fa2cc4f5d2a
--- /dev/null
+++ b/media-video/avidemux/avidemux-2.5.3-r2.ebuild
@@ -0,0 +1,166 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/avidemux-2.5.3-r2.ebuild,v 1.1 2010/08/01 10:27:52 hwoarang Exp $
+
+EAPI="2"
+
+inherit cmake-utils 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 ~ppc ~x86"
+IUSE="+aac +aften +alsa amr +dts esd jack libsamplerate +mp3 nls oss
+ pulseaudio +sdl +truetype +vorbis +x264 +xv +xvid gtk +qt4"
+
+RDEPEND="dev-libs/libxml2
+ aac? ( media-libs/faac
+ media-libs/faad2 )
+ aften? ( media-libs/aften )
+ alsa? ( media-libs/alsa-lib )
+ amr? ( media-libs/opencore-amr )
+ dts? ( media-libs/libdca )
+ mp3? ( media-sound/lame )
+ esd? ( media-sound/esound )
+ jack? ( media-sound/jack-audio-connection-kit )
+ libsamplerate? ( media-libs/libsamplerate )
+ oss? ( media-libs/alsa-oss )
+ pulseaudio? ( media-sound/pulseaudio )
+ sdl? ( media-libs/libsdl )
+ truetype? ( media-libs/freetype:2
+ media-libs/fontconfig )
+ vorbis? ( media-libs/libvorbis )
+ x264? ( media-libs/x264 )
+ xv? ( x11-libs/libXv )
+ xvid? ( media-libs/xvid )
+ gtk? ( x11-libs/gtk+:2 )
+ qt4? ( x11-libs/qt-gui:4 )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ dev-util/pkgconfig
+ dev-util/cmake"
+
+S=${WORKDIR}/${MY_P}
+
+AVIDEMUX_LANGS="bg ca cs de el es fr it ja pt_BR ru sr sr@latin tr zh_TW"
+for L in ${AVIDEMUX_LANGS}; do
+ IUSE="${IUSE} linguas_${L}"
+done
+
+PATCHES=(
+ "${FILESDIR}/${PV}_field_asm_fix.diff"
+ "${FILESDIR}/${P}-build-plugins-fix.patch"
+ #bug 327555. Pulseaudio automagic dependency
+ "${FILESDIR}/${PN}-pulseaudiosimple.patch"
+)
+
+src_prepare() {
+ base_src_prepare
+
+ local po_files=
+ local qt_ts_files=
+ local avidemux_ts_files=
+ for lingua in ${LINGUAS}; do
+ if has ${lingua} ${AVIDEMUX_LANGS}; then
+ if [[ -e ${S}/po/${lingua}.po ]]; then
+ po_files="${po_files} \${po_subdir}/${lingua}.po"
+ fi
+ if [[ -e ${S}/po/qt_${lingua}.ts ]]; then
+ qt_ts_files="${qt_ts_files} \${ts_subdir}/qt_${lingua}.ts"
+ fi
+ if [[ -e ${S}/po/${PN}_${lingua}.ts ]]; then
+ avidemux_ts_files="${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 exec command wrt bug #316599 and #291453
+ sed -i "/Exec/s:\[\$e\]::" ${PN}2-gtk.desktop
+}
+
+src_configure() {
+ ### Add lax vector typing for PowerPC
+ if use ppc || use ppc64; then
+ append-cflags "-flax-vector-conversions"
+ fi
+
+ mycmakeargs="${mycmakeargs}
+ -DAVIDEMUX_SOURCE_DIR='${S}'
+ -DAVIDEMUX_INSTALL_PREFIX='${S}_build'
+ -DAVIDEMUX_CORECONFIG_DIR='${S}_build/config'"
+
+ # CMakeLists.txt
+ use gtk || mycmakeargs="${mycmakeargs} -DGTK=0"
+ use qt4 || mycmakeargs="${mycmakeargs} -DQT4=0"
+
+ # cmake/admCheckMiscLibs.cmake
+ use nls || mycmakeargs="${mycmakeargs} -DGETTEXT=0"
+ use sdl || mycmakeargs="${mycmakeargs} -DSDL=0"
+ use xv || mycmakeargs="${mycmakeargs} -DXVIDEO=0"
+
+ # cmake/admCheckAudioDeviceLibs.cmake
+ use alsa || mycmakeargs="${mycmakeargs} -DALSA=0"
+ use esd || mycmakeargs="${mycmakeargs} -DESD=0"
+ use jack || mycmakeargs="${mycmakeargs} -DJACK=0"
+ use oss || mycmakeargs="${mycmakeargs} -DOSS=0"
+ use pulseaudio || mycmakeargs="${mycmakeargs} -DPULSEAUDIOSIMPLE=0"
+
+ # cmake/admCheckAudioEncoderLibs.cmake
+ use aften || mycmakeargs="${mycmakeargs} -DAFTEN=0"
+ use mp3 || mycmakeargs="${mycmakeargs} -DLAME=0"
+ use aac || mycmakeargs="${mycmakeargs} -DFAAC=0"
+ use vorbis || mycmakeargs="${mycmakeargs} -DVORBIS=0"
+
+ # plugins/ADM_audioDecoders
+ use aac || mycmakeargs="${mycmakeargs} -DFAAD=0"
+ use dts || mycmakeargs="${mycmakeargs} -DLIBDCA=0"
+
+ # opencore
+ use amr || mycmakeargs="${mycmakeargs} -DOPENCORE_AMRNB=0 -DOPENCORE_AMRWB=0"
+
+ # plugins/ADM_videoFilters
+ use truetype || mycmakeargs="${mycmakeargs} -DFREETYPE2=0 -DFONTCONFIG=0"
+
+ # plugins/ADM_videoEncoder
+ use xvid || mycmakeargs="${mycmakeargs} -DXVID=0"
+ use x264 || mycmakeargs="${mycmakeargs} -DX264=0"
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ # first build the application
+ cmake-utils_src_compile
+ # and then go on with plugins
+ emake -C "${CMAKE_BUILD_DIR}/plugins" || die "building plugins failed"
+}
+
+src_install() {
+ # install the application
+ cmake-utils_src_install
+ # install plugins
+ emake -C "${CMAKE_BUILD_DIR}/plugins" DESTDIR="${D}" install \
+ || die "installing plugins failed"
+
+ dodoc AUTHORS || die "dodoc failed"
+ newicon ${PN}_icon.png ${PN}.png || die "installing icon failed"
+
+ if use qt4; then
+ sed -i "s/\(${PN}2_\)gtk/\1qt4/" ${PN}2.desktop || die "sed failed"
+ domenu ${PN}2.desktop || die "installing desktop file failed"
+ fi
+
+ if use gtk; then
+ domenu ${PN}2-gtk.desktop || die "installing desktop file failed"
+ fi
+}
diff --git a/media-video/avidemux/files/avidemux-pulseaudiosimple.patch b/media-video/avidemux/files/avidemux-pulseaudiosimple.patch
new file mode 100644
index 000000000000..320415b93593
--- /dev/null
+++ b/media-video/avidemux/files/avidemux-pulseaudiosimple.patch
@@ -0,0 +1,22 @@
+Index: cmake/admCheckAudioDeviceLibs.cmake
+===================================================================
+--- cmake/admCheckAudioDeviceLibs.cmake (revision 6442)
++++ cmake/admCheckAudioDeviceLibs.cmake (working copy)
+@@ -145,6 +145,7 @@
+
+ MESSAGE(STATUS "Checking for PulseAudio Simple")
+ MESSAGE(STATUS "******************************")
++ IF (PULSEAUDIOSIMPLE)
+ IF (PULSEAUDIOSIMPLE_INCLUDE_DIR AND PULSEAUDIOSIMPLE_LIBRARIES)
+ # in cache already
+ SET(PULSEAUDIOSIMPLE_FIND_QUIETLY TRUE)
+@@ -186,6 +187,9 @@
+ MARK_AS_ADVANCED(PULSEAUDIOSIMPLE_INCLUDE_DIR PULSEAUDIOSIMPLE_LIBRARIES)
+
+ MESSAGE("")
++ ELSE (PULSEAUDIOSIMPLE)
++ MESSAGE("${MSG_DISABLE_OPTION}")
++ ENDIF (PULSEAUDIOSIMPLE)
+ ELSE (UNIX AND NOT APPLE)
+ SET(PULSEAUDIOSIMPLE_CAPABLE FALSE)
+ ENDIF (UNIX AND NOT APPLE)