Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/gpac: ChangeLog gpac-0.4.5-r2.ebuild
Date: Thu, 29 Apr 2010 18:16:15
Message-Id: 20100429181610.D2CC02C04C@corvid.gentoo.org
1 ssuominen 10/04/29 18:16:10
2
3 Modified: ChangeLog
4 Added: gpac-0.4.5-r2.ebuild
5 Log:
6 Use system libogg wrt #258331 by Zeev Tarantov. Use LDFLAGS when linking gm_alsa.so wrt #310257 by Zeev Tarantov and Doktor Notor.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.80 media-video/gpac/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/gpac/ChangeLog?rev=1.80&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/gpac/ChangeLog?rev=1.80&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/gpac/ChangeLog?r1=1.79&r2=1.80
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/gpac/ChangeLog,v
19 retrieving revision 1.79
20 retrieving revision 1.80
21 diff -u -r1.79 -r1.80
22 --- ChangeLog 29 Apr 2010 11:22:29 -0000 1.79
23 +++ ChangeLog 29 Apr 2010 18:16:10 -0000 1.80
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-video/gpac
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/gpac/ChangeLog,v 1.79 2010/04/29 11:22:29 ssuominen Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/gpac/ChangeLog,v 1.80 2010/04/29 18:16:10 ssuominen Exp $
29 +
30 +*gpac-0.4.5-r2 (29 Apr 2010)
31 +
32 + 29 Apr 2010; Samuli Suominen <ssuominen@g.o> +gpac-0.4.5-r2.ebuild:
33 + Use system libogg wrt #258331 by Zeev Tarantov. Use LDFLAGS when linking
34 + gm_alsa.so wrt #310257 by Zeev Tarantov and Doktor Notor.
35
36 29 Apr 2010; Samuli Suominen <ssuominen@g.o> gpac-0.4.5-r1.ebuild,
37 -files/gpac-0.4.5-glx-define-prototype.patch,
38
39
40
41 1.1 media-video/gpac/gpac-0.4.5-r2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/gpac/gpac-0.4.5-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/gpac/gpac-0.4.5-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gpac-0.4.5-r2.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-video/gpac/gpac-0.4.5-r2.ebuild,v 1.1 2010/04/29 18:16:10 ssuominen Exp $
51
52 inherit eutils wxwidgets flag-o-matic multilib toolchain-funcs
53
54 DESCRIPTION="GPAC is an implementation of the MPEG-4 Systems standard developed from scratch in ANSI C."
55 HOMEPAGE="http://gpac.sourceforge.net/"
56 NBV="610"
57 WBV="600"
58 PATCHLEVEL="4"
59 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
60 http://dev.gentoo.org/~ssuominen/${P}-patches-${PATCHLEVEL}.tar.bz2"
61 # mirror://gentoo/${P}-patches-${PATCHLEVEL}.tar.bz2
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
66 IUSE="a52 aac alsa debug ffmpeg ipv6 jack jpeg jpeg2k javascript mad ogg opengl oss png pulseaudio sdl ssl theora truetype vorbis wxwidgets xml xvid"
67
68 S=${WORKDIR}/${PN}
69
70 RDEPEND="
71 a52? ( media-libs/a52dec )
72 aac? ( >=media-libs/faad2-2.0 )
73 alsa? ( media-libs/alsa-lib )
74 ffmpeg? ( media-video/ffmpeg )
75 jack? ( media-sound/jack-audio-connection-kit )
76 jpeg? ( media-libs/jpeg )
77 javascript? ( >=dev-lang/spidermonkey-1.5 )
78 mad? ( >=media-libs/libmad-0.15.1b )
79 opengl? ( virtual/opengl virtual/glut )
80 ogg? ( >=media-libs/libogg-1.1 )
81 png? ( >=media-libs/libpng-1.2.5 )
82 vorbis? ( >=media-libs/libvorbis-1.1 )
83 theora? ( media-libs/libtheora )
84 truetype? ( >=media-libs/freetype-2.1.4 )
85 wxwidgets? ( =x11-libs/wxGTK-2.8* )
86 xml? ( >=dev-libs/libxml2-2.6.0 )
87 xvid? ( >=media-libs/xvid-1.0.1 )
88 sdl? ( media-libs/libsdl )
89 jpeg2k? ( media-libs/openjpeg )
90 ssl? ( dev-libs/openssl )
91 pulseaudio? ( media-sound/pulseaudio )
92 x11-libs/libXt
93 x11-libs/libX11
94 x11-libs/libXv
95 x11-libs/libXext"
96
97 DEPEND="${RDEPEND}"
98
99 my_use() {
100 local flag="$1" pflag="${2:-$1}"
101 if use ${flag}; then
102 echo "--use-${pflag}=system"
103 else
104 echo "--use-${pflag}=no"
105 fi
106 }
107
108 src_unpack() {
109 unpack ${A}
110 cd "${S}"
111
112 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
113
114 sed -ie '/ldconfig / d' "${S}/Makefile"
115
116 cd "${S}"
117
118 chmod +x configure
119 # make sure configure looks for wx-2.6
120 if use wxwidgets; then
121 WX_GTK_VER=2.8
122 need-wxwidgets unicode
123 sed -i -e "s:wx-config:${WX_CONFIG}:g" configure
124 else
125 sed -i -e 's:^has_wx="yes:has_wx="no:' configure
126 fi
127
128 use sdl || sed -i 's:^has_sdl=yes:has_sdl=no:' configure
129 use alsa || sed -i 's:^has_alsa="yes":has_alsa=no:' configure
130
131 # make sure mozilla won't be used
132 sed -i -e 's/osmozilla//g' applications/Makefile
133
134 # use this to cut down on the warnings noise
135 append-flags -fno-strict-aliasing
136
137 # multilib libdir fix
138 sed -i -e 's:$(prefix)/lib:$(prefix)/'$(get_libdir)':' Makefile src/Makefile
139 sed -i -e 's:/lib/gpac:/'$(get_libdir)'/gpac:' configure
140 }
141
142 src_compile() {
143 if use ogg; then
144 myconf="${myconf} --use-ogg=system"
145 if use vorbis; then
146 myconf="${myconf} --use-vorbis=system"
147 fi
148 if use theora; then
149 myconf="${myconf} --use-theora=system"
150 fi
151 else
152 myconf="${myconf} --use-ogg=no"
153 fi
154
155 tc-export CC CXX
156
157 econf \
158 --enable-svg \
159 --enable-pic \
160 --disable-amr \
161 $(use_enable debug) \
162 $(use_enable opengl) \
163 $(use_enable oss oss-audio) \
164 $(use_enable ssl) \
165 $(use_enable ipv6) \
166 $(use_enable jack)=yes \
167 $(use_enable pulseaudio)=yes \
168 $(my_use ffmpeg) \
169 $(my_use aac faad) \
170 $(my_use jpeg) \
171 $(my_use mad) \
172 $(my_use javascript js) \
173 $(my_use png) \
174 $(my_use truetype ft) \
175 $(my_use xvid) \
176 $(my_use jpeg2k openjpeg) \
177 $(my_use a52) \
178 --cc="$(tc-getCC)" \
179 ${myconf} || die "configure died"
180
181 emake -j1 OPTFLAGS="${CFLAGS}" || die "emake failed."
182 }
183
184 src_install() {
185 emake STRIP="true" OPTFLAGS="${CFLAGS}" DESTDIR="${D}" install || die
186 emake STRIP="true" OPTFLAGS="${CFLAGS}" DESTDIR="${D}" install-lib || die
187 dodoc AUTHORS BUGS Changelog README TODO
188 dodoc doc/*.txt
189 dohtml doc/*.html
190 }