1 |
yngwin 09/08/04 12:02:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: avidemux-2.5.0.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.150 media-video/avidemux/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/avidemux/ChangeLog?rev=1.150&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/avidemux/ChangeLog?rev=1.150&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/avidemux/ChangeLog?r1=1.149&r2=1.150 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v |
19 |
retrieving revision 1.149 |
20 |
retrieving revision 1.150 |
21 |
diff -u -r1.149 -r1.150 |
22 |
--- ChangeLog 28 Jun 2009 12:18:43 -0000 1.149 |
23 |
+++ ChangeLog 4 Aug 2009 12:02:38 -0000 1.150 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for media-video/avidemux |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.149 2009/06/28 12:18:43 maekke Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.150 2009/08/04 12:02:38 yngwin Exp $ |
29 |
+ |
30 |
+*avidemux-2.5.0 (04 Aug 2009) |
31 |
+ |
32 |
+ 04 Aug 2009; Ben de Groot <yngwin@g.o> +avidemux-2.5.0.ebuild: |
33 |
+ Version bump |
34 |
|
35 |
28 Jun 2009; Markus Meier <maekke@g.o> avidemux-2.4.4-r2.ebuild: |
36 |
amd64 stable, bug #272842 |
37 |
|
38 |
|
39 |
|
40 |
1.1 media-video/avidemux/avidemux-2.5.0.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/avidemux/avidemux-2.5.0.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/avidemux/avidemux-2.5.0.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: avidemux-2.5.0.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/avidemux-2.5.0.ebuild,v 1.1 2009/08/04 12:02:38 yngwin Exp $ |
50 |
|
51 |
EAPI="2" |
52 |
|
53 |
inherit cmake-utils eutils flag-o-matic |
54 |
|
55 |
MY_P=${PN}_${PV} |
56 |
|
57 |
DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" |
58 |
HOMEPAGE="http://fixounet.free.fr/avidemux" |
59 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz |
60 |
mirror://gentoo/${P}-patches-1.tar.bz2" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="2" |
64 |
KEYWORDS="~amd64 ~ppc ~x86" |
65 |
IUSE="+aac +aften +alsa amrnb +dts esd jack libsamplerate +mp3 nls oss |
66 |
pulseaudio +sdl +truetype +vorbis +x264 +xv +xvid gtk +qt4" |
67 |
|
68 |
RDEPEND="dev-libs/libxml2 |
69 |
aac? ( media-libs/faac |
70 |
media-libs/faad2 ) |
71 |
aften? ( media-libs/aften ) |
72 |
alsa? ( media-libs/alsa-lib ) |
73 |
amrnb? ( media-libs/amrnb ) |
74 |
dts? ( media-libs/libdca ) |
75 |
mp3? ( media-sound/lame ) |
76 |
esd? ( media-sound/esound ) |
77 |
jack? ( media-sound/jack-audio-connection-kit ) |
78 |
libsamplerate? ( media-libs/libsamplerate ) |
79 |
oss? ( media-libs/alsa-oss ) |
80 |
pulseaudio? ( media-sound/pulseaudio ) |
81 |
sdl? ( media-libs/libsdl ) |
82 |
truetype? ( media-libs/freetype:2 |
83 |
media-libs/fontconfig ) |
84 |
vorbis? ( media-libs/libvorbis ) |
85 |
x264? ( media-libs/x264 ) |
86 |
xv? ( x11-libs/libXv ) |
87 |
xvid? ( media-libs/xvid ) |
88 |
gtk? ( x11-libs/gtk+:2 ) |
89 |
qt4? ( >=x11-libs/qt-gui-4.5.1:4 )" |
90 |
DEPEND="${RDEPEND} |
91 |
nls? ( sys-devel/gettext ) |
92 |
dev-util/pkgconfig" |
93 |
|
94 |
S=${WORKDIR}/${MY_P} |
95 |
|
96 |
AVIDEMUX_LANGS="bg ca cs de el es fr it ja pt_BR ru sr sr@latin tr zh_TW" |
97 |
for L in ${AVIDEMUX_LANGS}; do |
98 |
IUSE="${IUSE} linguas_${L}" |
99 |
done |
100 |
|
101 |
PATCHES=( "${WORKDIR}/patches/${PV}-i18n.patch" |
102 |
"${WORKDIR}/patches/${PV}-gcc4.4.patch" |
103 |
"${WORKDIR}/patches/${PV}-multilib.patch" |
104 |
"${WORKDIR}/patches/${PV}-ts-parallel-build.patch" |
105 |
"${WORKDIR}/patches/${PV}-coreImage-parallel-build.patch" |
106 |
# adds plugins as a build target and adjusts include paths |
107 |
"${WORKDIR}/patches/${PV}-build-plugins.patch" |
108 |
# creates a lib dir in a build dir to allow correct plugins linking |
109 |
"${WORKDIR}/patches/${PV}-fake-inst-dir.patch" |
110 |
"${WORKDIR}/patches/${PV}-xv.patch" ) |
111 |
|
112 |
src_prepare() { |
113 |
base_src_prepare |
114 |
|
115 |
local po_files= |
116 |
local qt_ts_files= |
117 |
local avidemux_ts_files= |
118 |
for lingua in ${LINGUAS}; do |
119 |
if has ${lingua} ${AVIDEMUX_LANGS}; then |
120 |
if [[ -e ${S}/po/${lingua}.po ]]; then |
121 |
po_files="${po_files} \${po_subdir}/${lingua}.po" |
122 |
fi |
123 |
if [[ -e ${S}/po/qt_${lingua}.ts ]]; then |
124 |
qt_ts_files="${qt_ts_files} \${ts_subdir}/qt_${lingua}.ts" |
125 |
fi |
126 |
if [[ -e ${S}/po/${PN}_${lingua}.ts ]]; then |
127 |
avidemux_ts_files="${avidemux_ts_files} \${ts_subdir}/${PN}_${lingua}.ts" |
128 |
fi |
129 |
fi |
130 |
done |
131 |
|
132 |
sed -i -e "s!FILE(GLOB po_files .*)!SET(po_files ${po_files})!" \ |
133 |
"${S}/cmake/Po.cmake" || die "sed failed" |
134 |
sed -i -e "s!FILE(GLOB.*qt.*)!SET(ts_files ${qt_ts_files})!" \ |
135 |
-e "s!FILE(GLOB.*avidemux.*)!SET(ts_files ${avidemux_ts_files})!" \ |
136 |
"${S}/cmake/Ts.cmake" || die "sed failed" |
137 |
} |
138 |
|
139 |
src_configure() { |
140 |
mycmakeargs="${mycmakeargs} |
141 |
-DAVIDEMUX_SOURCE_DIR='${S}' |
142 |
-DAVIDEMUX_INSTALL_PREFIX='${S}_build' |
143 |
-DAVIDEMUX_CORECONFIG_DIR='${S}_build/config'" |
144 |
|
145 |
# CMakeLists.txt |
146 |
use gtk || mycmakeargs="${mycmakeargs} -DGTK=0" |
147 |
use qt4 || mycmakeargs="${mycmakeargs} -DQT4=0" |
148 |
|
149 |
# cmake/admCheckMiscLibs.cmake |
150 |
use nls || mycmakeargs="${mycmakeargs} -DGETTEXT=0" |
151 |
use sdl || mycmakeargs="${mycmakeargs} -DSDL=0" |
152 |
use xv || mycmakeargs="${mycmakeargs} -DXVIDEO=0" |
153 |
|
154 |
# cmake/admCheckAudioDeviceLibs.cmake |
155 |
use alsa || mycmakeargs="${mycmakeargs} -DALSA=0" |
156 |
use esd || mycmakeargs="${mycmakeargs} -DESD=0" |
157 |
use jack || mycmakeargs="${mycmakeargs} -DJACK=0" |
158 |
use oss || mycmakeargs="${mycmakeargs} -DOSS=0" |
159 |
use pulseaudio || mycmakeargs="${mycmakeargs} -DPULSEAUDIOSIMPLE=0" |
160 |
|
161 |
# cmake/admCheckAudioEncoderLibs.cmake |
162 |
use aften || mycmakeargs="${mycmakeargs} -DAFTEN=0" |
163 |
use mp3 || mycmakeargs="${mycmakeargs} -DLAME=0" |
164 |
use aac || mycmakeargs="${mycmakeargs} -DFAAC=0" |
165 |
use vorbis || mycmakeargs="${mycmakeargs} -DVORBIS=0" |
166 |
|
167 |
# plugins/ADM_audioDecoders |
168 |
use aac || mycmakeargs="${mycmakeargs} -DFAAD=0" |
169 |
use amrnb || mycmakeargs="${mycmakeargs} -DAMRNB=0" |
170 |
use dts || mycmakeargs="${mycmakeargs} -DLIBDCA=0" |
171 |
|
172 |
# plugins/ADM_videoFilters |
173 |
use truetype || mycmakeargs="${mycmakeargs} -DFREETYPE2=0 -DFONTCONFIG=0" |
174 |
|
175 |
# plugins/ADM_videoEncoder |
176 |
use xvid || mycmakeargs="${mycmakeargs} -DXVID=0" |
177 |
use x264 || mycmakeargs="${mycmakeargs} -DX264=0" |
178 |
|
179 |
cmake-utils_src_configure |
180 |
} |
181 |
|
182 |
src_compile() { |
183 |
# first build the application |
184 |
cmake-utils_src_compile |
185 |
# and then go on with plugins |
186 |
emake -C "${CMAKE_BUILD_DIR}/plugins" || die "building plugins failed" |
187 |
} |
188 |
|
189 |
src_install() { |
190 |
# install the application |
191 |
cmake-utils_src_install |
192 |
# install plugins |
193 |
emake -C "${CMAKE_BUILD_DIR}/plugins" DESTDIR="${D}" install \ |
194 |
|| die "installing plugins failed" |
195 |
|
196 |
dodoc AUTHORS || die "dodoc failed" |
197 |
newicon avidemux_icon.png avidemux.png || die "installing icon failed" |
198 |
|
199 |
if use qt4; then |
200 |
sed -i "s/\(${PN}2_\)gtk/\1qt4/" ${PN}2.desktop || die "sed failed" |
201 |
domenu ${PN}2.desktop || die "installing desktop file failed" |
202 |
fi |
203 |
|
204 |
if use gtk; then |
205 |
domenu ${PN}2-gtk.desktop || die "installing desktop file failed" |
206 |
fi |
207 |
} |