Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/gpac: ChangeLog gpac-0.4.4-r1.ebuild
Date: Tue, 05 Aug 2008 14:26:48
Message-Id: E1KQNUq-0005SN-Ha@stork.gentoo.org
1 aballier 08/08/05 14:26:44
2
3 Modified: ChangeLog
4 Added: gpac-0.4.4-r1.ebuild
5 Log:
6 add a revbump to use wxgtk 2.8
7 (Portage version: 2.2_rc6/cvs/Linux 2.6.25.7 x86_64)
8
9 Revision Changes Path
10 1.59 media-video/gpac/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/gpac/ChangeLog?rev=1.59&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/gpac/ChangeLog?rev=1.59&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/gpac/ChangeLog?r1=1.58&r2=1.59
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/gpac/ChangeLog,v
19 retrieving revision 1.58
20 retrieving revision 1.59
21 diff -u -r1.58 -r1.59
22 --- ChangeLog 29 Jun 2008 14:13:08 -0000 1.58
23 +++ ChangeLog 5 Aug 2008 14:26:43 -0000 1.59
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-video/gpac
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/gpac/ChangeLog,v 1.58 2008/06/29 14:13:08 loki_val Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/gpac/ChangeLog,v 1.59 2008/08/05 14:26:43 aballier Exp $
29 +
30 +*gpac-0.4.4-r1 (05 Aug 2008)
31 +
32 + 05 Aug 2008; Alexis Ballier <aballier@g.o> +gpac-0.4.4-r1.ebuild:
33 + add a revbump to use wxgtk 2.8
34
35 29 Jun 2008; Peter Alfredsen <loki_val@g.o> -gpac-0.4.2.ebuild,
36 gpac-0.4.2-r1.ebuild:
37
38
39
40 1.1 media-video/gpac/gpac-0.4.4-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/gpac/gpac-0.4.4-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/gpac/gpac-0.4.4-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: gpac-0.4.4-r1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/media-video/gpac/gpac-0.4.4-r1.ebuild,v 1.1 2008/08/05 14:26:43 aballier Exp $
50
51 inherit eutils wxwidgets flag-o-matic multilib toolchain-funcs
52
53 DESCRIPTION="GPAC is an implementation of the MPEG-4 Systems standard developed from scratch in ANSI C."
54 HOMEPAGE="http://gpac.sourceforge.net/"
55 NBV="610"
56 WBV="600"
57 PATCHLEVEL="5"
58 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
59 mirror://gentoo/${P}-patches-${PATCHLEVEL}.tar.bz2
60 amr? ( http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-${NBV}.zip
61 http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-${WBV}.zip )"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
66 IUSE="aac alsa amr debug ffmpeg ipv6 jpeg jpeg2k javascript mad ogg opengl oss png sdl ssl theora truetype vorbis wxwindows xml xvid"
67
68 S="${WORKDIR}/${PN}"
69
70 RDEPEND="aac? ( >=media-libs/faad2-2.0 )
71 alsa? ( media-libs/alsa-lib )
72 ffmpeg? ( media-video/ffmpeg )
73 jpeg? ( media-libs/jpeg )
74 javascript? ( >=dev-lang/spidermonkey-1.5 )
75 mad? ( >=media-libs/libmad-0.15.1b )
76 opengl? ( virtual/opengl virtual/glut )
77 ogg? ( >=media-libs/libogg-1.1 )
78 png? ( >=media-libs/libpng-1.2.5 )
79 vorbis? ( >=media-libs/libvorbis-1.1 )
80 theora? ( media-libs/libtheora )
81 truetype? ( >=media-libs/freetype-2.1.4 )
82 wxwindows? ( =x11-libs/wxGTK-2.8* )
83 xml? ( >=dev-libs/libxml2-2.6.0 )
84 xvid? ( >=media-libs/xvid-1.0.1 )
85 sdl? ( media-libs/libsdl )
86 jpeg2k? ( media-libs/openjpeg )
87 x11-libs/libXt
88 x11-libs/libX11
89 x11-libs/libXext"
90
91 DEPEND="${RDEPEND}"
92
93 my_use() {
94 local flag="$1" pflag="${2:-$1}"
95 if use ${flag}; then
96 echo "--use-${pflag}=system"
97 else
98 echo "--use-${pflag}=no"
99 fi
100 }
101
102 src_unpack() {
103 unpack ${A}
104 cd "${S}"
105
106 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
107
108 sed -ie '/ldconfig / d' "${S}/Makefile"
109
110 if use amr; then
111 cd modules/amr_float_dec
112 unzip -jaq "${WORKDIR}"/26104-${NBV}_ANSI_C_source_code.zip -d amr_nb_ft
113 unzip -jaq "${WORKDIR}"/26204-${WBV}_ANSI-C_source_code.zip -d amr_wb_ft
114 fi
115
116 cd "${S}"
117
118 chmod +x configure
119 # make sure configure looks for wx-2.6
120 if use wxwindows; 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 econf \
156 --enable-svg \
157 --enable-pic \
158 $(use_enable amr) \
159 $(use_enable debug) \
160 $(use_enable opengl) \
161 $(use_enable oss oss-audio) \
162 $(use_enable ssl) \
163 $(use_enable ipv6) \
164 $(my_use ffmpeg) \
165 $(my_use aac faad) \
166 $(my_use jpeg) \
167 $(my_use mad) \
168 $(my_use javascript js) \
169 $(my_use png) \
170 $(my_use truetype ft) \
171 $(my_use xvid) \
172 $(my_use jpeg2k openjpeg) \
173 ${myconf} || die "configure died"
174
175 emake -j1 CXX=$(tc-getCXX) CC=$(tc-getCC) OPTFLAGS="${CFLAGS}" || die "emake failed."
176 }
177
178 src_install() {
179 emake CXX=$(tc-getCXX) CC=$(tc-getCC) STRIP="true" INSTFLAGS="" OPTFLAGS="${CFLAGS}" DESTDIR="${D}" install || die
180 emake CXX=$(tc-getCXX) CC=$(tc-getCC) STRIP="true" INSTFLAGS="" OPTFLAGS="${CFLAGS}" DESTDIR="${D}" install-lib || die
181 dodoc AUTHORS BUGS Changelog README TODO
182 dodoc doc/*.txt
183 dohtml doc/*.html
184 }