1 |
hwoarang 10/10/05 17:40:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: avidemux-2.5.3-r3.ebuild |
5 |
Removed: avidemux-2.5.3-r2.ebuild avidemux-2.5.3-r1.ebuild |
6 |
Log: |
7 |
Apply patch to fix possible buffer overflows. Thanks to Kevin Pyle for the patch. Bug #338619 |
8 |
|
9 |
(Portage version: 2.2_rc86/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.174 media-video/avidemux/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/avidemux/ChangeLog?rev=1.174&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/avidemux/ChangeLog?rev=1.174&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/avidemux/ChangeLog?r1=1.173&r2=1.174 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v |
21 |
retrieving revision 1.173 |
22 |
retrieving revision 1.174 |
23 |
diff -u -r1.173 -r1.174 |
24 |
--- ChangeLog 18 Sep 2010 11:06:52 -0000 1.173 |
25 |
+++ ChangeLog 5 Oct 2010 17:40:25 -0000 1.174 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for media-video/avidemux |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.173 2010/09/18 11:06:52 lxnay Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.174 2010/10/05 17:40:25 hwoarang Exp $ |
31 |
+ |
32 |
+*avidemux-2.5.3-r3 (05 Oct 2010) |
33 |
+ |
34 |
+ 05 Oct 2010; Markos Chandras <hwoarang@g.o> |
35 |
+ -avidemux-2.5.3-r1.ebuild, -avidemux-2.5.3-r2.ebuild, |
36 |
+ +avidemux-2.5.3-r3.ebuild, +files/avidemux-2.5.3-fix-fgets-fortify.patch: |
37 |
+ Apply patch to fix possible buffer overflows. Thanks to Kevin Pyle for the |
38 |
+ patch. Bug #338619 |
39 |
|
40 |
18 Sep 2010; Fabio Erculiani <lxnay@g.o> |
41 |
avidemux-2.5.1_p5428.ebuild, avidemux-2.5.2.ebuild, |
42 |
|
43 |
|
44 |
|
45 |
1.1 media-video/avidemux/avidemux-2.5.3-r3.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/avidemux/avidemux-2.5.3-r3.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/avidemux/avidemux-2.5.3-r3.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: avidemux-2.5.3-r3.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2010 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/avidemux-2.5.3-r3.ebuild,v 1.1 2010/10/05 17:40:25 hwoarang Exp $ |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
inherit cmake-utils flag-o-matic |
59 |
|
60 |
MY_P=${PN}_${PV} |
61 |
|
62 |
DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" |
63 |
HOMEPAGE="http://fixounet.free.fr/avidemux" |
64 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="2" |
68 |
KEYWORDS="~amd64 ~ppc ~x86" |
69 |
IUSE="+aac +aften +alsa amr +dts esd jack libsamplerate +mp3 nls oss |
70 |
pulseaudio +sdl +truetype +vorbis +x264 +xv +xvid gtk +qt4" |
71 |
|
72 |
RDEPEND="dev-libs/libxml2 |
73 |
aac? ( media-libs/faac |
74 |
media-libs/faad2 ) |
75 |
aften? ( media-libs/aften ) |
76 |
alsa? ( media-libs/alsa-lib ) |
77 |
amr? ( media-libs/opencore-amr ) |
78 |
dts? ( media-libs/libdca ) |
79 |
mp3? ( media-sound/lame ) |
80 |
esd? ( media-sound/esound ) |
81 |
jack? ( media-sound/jack-audio-connection-kit ) |
82 |
libsamplerate? ( media-libs/libsamplerate ) |
83 |
oss? ( media-libs/alsa-oss ) |
84 |
pulseaudio? ( media-sound/pulseaudio ) |
85 |
sdl? ( media-libs/libsdl ) |
86 |
truetype? ( media-libs/freetype:2 |
87 |
media-libs/fontconfig ) |
88 |
vorbis? ( media-libs/libvorbis ) |
89 |
x264? ( media-libs/x264 ) |
90 |
xv? ( x11-libs/libXv ) |
91 |
xvid? ( media-libs/xvid ) |
92 |
gtk? ( x11-libs/gtk+:2 ) |
93 |
qt4? ( x11-libs/qt-gui:4 )" |
94 |
DEPEND="${RDEPEND} |
95 |
nls? ( sys-devel/gettext ) |
96 |
dev-util/pkgconfig |
97 |
dev-util/cmake" |
98 |
|
99 |
S=${WORKDIR}/${MY_P} |
100 |
BUILD_S=${WORKDIR}/${P}_build |
101 |
|
102 |
AVIDEMUX_LANGS="bg ca cs de el es fr it ja pt_BR ru sr sr@latin tr zh_TW" |
103 |
for L in ${AVIDEMUX_LANGS}; do |
104 |
IUSE="${IUSE} linguas_${L}" |
105 |
done |
106 |
|
107 |
PATCHES=( |
108 |
"${FILESDIR}/${PV}_field_asm_fix.diff" |
109 |
"${FILESDIR}/${P}-build-plugins-fix.patch" |
110 |
#bug 327555. Pulseaudio automagic dependency |
111 |
"${FILESDIR}/${PN}-pulseaudiosimple.patch" |
112 |
#bug #338619. The patch was merged upstream |
113 |
"${FILESDIR}/${P}-fix-fgets-fortify.patch" |
114 |
) |
115 |
|
116 |
src_prepare() { |
117 |
base_src_prepare |
118 |
|
119 |
local po_files= |
120 |
local qt_ts_files= |
121 |
local avidemux_ts_files= |
122 |
for lingua in ${LINGUAS}; do |
123 |
if has ${lingua} ${AVIDEMUX_LANGS}; then |
124 |
if [[ -e ${S}/po/${lingua}.po ]]; then |
125 |
po_files="${po_files} \${po_subdir}/${lingua}.po" |
126 |
fi |
127 |
if [[ -e ${S}/po/qt_${lingua}.ts ]]; then |
128 |
qt_ts_files="${qt_ts_files} \${ts_subdir}/qt_${lingua}.ts" |
129 |
fi |
130 |
if [[ -e ${S}/po/${PN}_${lingua}.ts ]]; then |
131 |
avidemux_ts_files="${avidemux_ts_files} \${ts_subdir}/${PN}_${lingua}.ts" |
132 |
fi |
133 |
fi |
134 |
done |
135 |
|
136 |
sed -i -e "s!FILE(GLOB po_files .*)!SET(po_files ${po_files})!" \ |
137 |
"${S}/cmake/Po.cmake" || die "sed failed" |
138 |
sed -i -e "s!FILE(GLOB.*qt.*)!SET(ts_files ${qt_ts_files})!" \ |
139 |
-e "s!FILE(GLOB.*avidemux.*)!SET(ts_files ${avidemux_ts_files})!" \ |
140 |
"${S}/cmake/Ts.cmake" || die "sed failed" |
141 |
#fix exec command wrt bug #316599 and #291453 |
142 |
sed -i "/Exec/s:\[\$e\]::" ${PN}2-gtk.desktop |
143 |
} |
144 |
|
145 |
src_configure() { |
146 |
### Add lax vector typing for PowerPC |
147 |
if use ppc || use ppc64; then |
148 |
append-cflags "-flax-vector-conversions" |
149 |
fi |
150 |
|
151 |
mycmakeargs="${mycmakeargs} |
152 |
-DAVIDEMUX_SOURCE_DIR='${S}' |
153 |
-DAVIDEMUX_INSTALL_PREFIX='${BUILD_S}' |
154 |
-DAVIDEMUX_CORECONFIG_DIR='${BUILD_S}/config'" |
155 |
|
156 |
# CMakeLists.txt |
157 |
use gtk || mycmakeargs="${mycmakeargs} -DGTK=0" |
158 |
use qt4 || mycmakeargs="${mycmakeargs} -DQT4=0" |
159 |
|
160 |
# cmake/admCheckMiscLibs.cmake |
161 |
use nls || mycmakeargs="${mycmakeargs} -DGETTEXT=0" |
162 |
use sdl || mycmakeargs="${mycmakeargs} -DSDL=0" |
163 |
use xv || mycmakeargs="${mycmakeargs} -DXVIDEO=0" |
164 |
|
165 |
# cmake/admCheckAudioDeviceLibs.cmake |
166 |
use alsa || mycmakeargs="${mycmakeargs} -DALSA=0" |
167 |
use esd || mycmakeargs="${mycmakeargs} -DESD=0" |
168 |
use jack || mycmakeargs="${mycmakeargs} -DJACK=0" |
169 |
use oss || mycmakeargs="${mycmakeargs} -DOSS=0" |
170 |
use pulseaudio || mycmakeargs="${mycmakeargs} -DPULSEAUDIOSIMPLE=0" |
171 |
|
172 |
# cmake/admCheckAudioEncoderLibs.cmake |
173 |
use aften || mycmakeargs="${mycmakeargs} -DAFTEN=0" |
174 |
use mp3 || mycmakeargs="${mycmakeargs} -DLAME=0" |
175 |
use aac || mycmakeargs="${mycmakeargs} -DFAAC=0" |
176 |
use vorbis || mycmakeargs="${mycmakeargs} -DVORBIS=0" |
177 |
|
178 |
# plugins/ADM_audioDecoders |
179 |
use aac || mycmakeargs="${mycmakeargs} -DFAAD=0" |
180 |
use dts || mycmakeargs="${mycmakeargs} -DLIBDCA=0" |
181 |
|
182 |
# opencore |
183 |
use amr || mycmakeargs="${mycmakeargs} -DOPENCORE_AMRNB=0 -DOPENCORE_AMRWB=0" |
184 |
|
185 |
# plugins/ADM_videoFilters |
186 |
use truetype || mycmakeargs="${mycmakeargs} -DFREETYPE2=0 -DFONTCONFIG=0" |
187 |
|
188 |
# plugins/ADM_videoEncoder |
189 |
use xvid || mycmakeargs="${mycmakeargs} -DXVID=0" |
190 |
use x264 || mycmakeargs="${mycmakeargs} -DX264=0" |
191 |
|
192 |
cmake-utils_src_configure |
193 |
} |
194 |
|
195 |
src_compile() { |
196 |
append-flags -D__STDC_FORMAT_MACROS |
197 |
# first build the application |
198 |
cmake-utils_src_compile |
199 |
# and then go on with plugins |
200 |
emake -C "${CMAKE_BUILD_DIR}/plugins" || die "building plugins failed" |
201 |
} |
202 |
|
203 |
src_install() { |
204 |
# install the application |
205 |
cmake-utils_src_install |
206 |
# install plugins |
207 |
emake -C "${CMAKE_BUILD_DIR}/plugins" DESTDIR="${D}" install \ |
208 |
|| die "installing plugins failed" |
209 |
|
210 |
dodoc AUTHORS || die "dodoc failed" |
211 |
newicon ${PN}_icon.png ${PN}.png || die "installing icon failed" |
212 |
|
213 |
if use qt4; then |
214 |
sed -i "s/\(${PN}2_\)gtk/\1qt4/" ${PN}2.desktop || die "sed failed" |
215 |
domenu ${PN}2.desktop || die "installing desktop file failed" |
216 |
fi |
217 |
|
218 |
if use gtk; then |
219 |
domenu ${PN}2-gtk.desktop || die "installing desktop file failed" |
220 |
fi |
221 |
} |