/[gentoo-x86]/media-video/gpac/gpac-0.5.0-r1.ebuild
Gentoo

Contents of /media-video/gpac/gpac-0.5.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Aug 10 20:59:27 2014 UTC (5 years, 11 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/gpac/gpac-0.5.0-r1.ebuild,v 1.8 2014/01/26 12:17:03 ago Exp $
4
5 EAPI=4
6
7 inherit eutils flag-o-matic multilib toolchain-funcs
8
9 DESCRIPTION="GPAC is an implementation of the MPEG-4 Systems standard developed from scratch in ANSI C"
10 HOMEPAGE="http://gpac.wp.mines-telecom.fr/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~x86-fbsd"
16 IUSE="a52 aac alsa debug dvb ffmpeg ipv6 jack jpeg jpeg2k mad opengl oss png pulseaudio sdl ssl static-libs theora truetype vorbis xml xvid"
17
18 S="${WORKDIR}"/${PN}
19
20 RDEPEND="
21 a52? ( media-libs/a52dec )
22 aac? ( >=media-libs/faad2-2.0 )
23 alsa? ( media-libs/alsa-lib )
24 dvb? ( media-tv/linuxtv-dvb-apps )
25 ffmpeg? ( virtual/ffmpeg )
26 jack? ( media-sound/jack-audio-connection-kit )
27 jpeg? ( virtual/jpeg )
28 mad? ( >=media-libs/libmad-0.15.1b )
29 opengl? ( virtual/opengl media-libs/freeglut virtual/glu )
30 >=media-libs/libogg-1.1
31 png? ( >=media-libs/libpng-1.4 )
32 vorbis? ( >=media-libs/libvorbis-1.1 )
33 theora? ( media-libs/libtheora )
34 truetype? ( >=media-libs/freetype-2.1.4 )
35 xml? ( >=dev-libs/libxml2-2.6.0 )
36 xvid? ( >=media-libs/xvid-1.0.1 )
37 sdl? ( media-libs/libsdl )
38 jpeg2k? ( media-libs/openjpeg:0 )
39 ssl? ( dev-libs/openssl )
40 pulseaudio? ( media-sound/pulseaudio )
41 x11-libs/libXt
42 x11-libs/libX11
43 x11-libs/libXv
44 x11-libs/libXext"
45 # disabled upstream, see applications/Makefile
46 # wxwidgets? ( =x11-libs/wxGTK-2.8* )
47
48 DEPEND="${RDEPEND}"
49
50 my_use() {
51 local flag="$1" pflag="${2:-$1}"
52 if use ${flag}; then
53 echo "--use-${pflag}=system"
54 else
55 echo "--use-${pflag}=no"
56 fi
57 }
58
59 src_prepare() {
60 epatch "${FILESDIR}"/110_all_implicitdecls.patch \
61 "${FILESDIR}"/210_all_system_libogg.patch \
62 "${FILESDIR}"/${P}-build-fixes.patch \
63 "${FILESDIR}"/${P}-libav9.patch \
64 "${FILESDIR}"/${P}-ffmpeg2.patch \
65 "${FILESDIR}"/${P}-mp42ts.patch \
66 "${FILESDIR}"/${P}-respect_ldflags.patch
67
68 # remove last of internal ogg
69 sed -i \
70 -e 's:<gpac/internal/ogg.h>:<ogg/ogg.h>:' \
71 src/media_tools/{av_parsers,gpac_ogg,media_import,media_export}.c || die
72 rm -f include/gpac/internal/ogg.h || die
73
74 chmod +x configure
75
76 # make sure configure looks for wx without needing eselect set
77 # if use wxwidgets; then
78 # WX_GTK_VER=2.8
79 # need-wxwidgets unicode
80 # sed -i -e "s:wx-config:${WX_CONFIG}:g" configure || die
81 #else
82 # sed -i -e "s:wx-config:wx-config-doesnotexist:g" configure || die
83 #fi
84 }
85
86 src_configure() {
87 tc-export CC CXX AR RANLIB
88
89 econf \
90 --enable-svg \
91 --enable-pic \
92 --disable-amr \
93 --use-js=no \
94 --use-ogg=system \
95 $(use_enable alsa) \
96 $(use_enable debug) \
97 $(use_enable ipv6) \
98 $(use_enable jack jack yes) \
99 $(use_enable opengl) \
100 $(use_enable oss oss-audio) \
101 $(use_enable pulseaudio pulseaudio yes) \
102 $(use_enable sdl) \
103 $(use_enable ssl) \
104 $(use_enable static-libs static-lib) \
105 --disable-wx \
106 $(my_use a52) \
107 $(my_use aac faad) \
108 $(my_use dvb dvbx) \
109 $(my_use ffmpeg) \
110 $(my_use jpeg) \
111 $(my_use jpeg2k openjpeg) \
112 $(my_use mad) \
113 $(my_use png) \
114 $(my_use theora) \
115 $(my_use truetype ft) \
116 $(my_use vorbis) \
117 $(my_use xvid) \
118 --extra-cflags="${CFLAGS}" \
119 --cc="$(tc-getCC)" \
120 --libdir="/$(get_libdir)"
121 }
122
123 src_install() {
124 emake STRIP="true" DESTDIR="${D}" install
125 emake STRIP="true" DESTDIR="${D}" install-lib
126 dodoc AUTHORS BUGS Changelog README TODO INSTALLME
127 dodoc doc/*.txt
128 dohtml doc/*.html
129 }

  ViewVC Help
Powered by ViewVC 1.1.20