/[gentoo-x86]/media-video/gpac/gpac-0.5.1_pre5456.ebuild
Gentoo

Contents of /media-video/gpac/gpac-0.5.1_pre5456.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Aug 2 09:28:07 2015 UTC (5 years ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
sparc stable wrt bug #547464

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="sparc", signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2015 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.1_pre5456.ebuild,v 1.5 2015/07/15 18:47:54 klausman Exp $
4
5 EAPI=4
6
7 if [[ ${PV} == *9999 ]] ; then
8 SCM="subversion"
9 ESVN_REPO_URI="svn://svn.code.sf.net/p/gpac/code/trunk/gpac"
10 KEYWORDS="alpha sparc"
11 else
12 if [[ ${PV%_p*} != ${PV} ]] ; then
13 SRC_URI="http://dev.gentoo.org/~lu_zero/${PN}/${P}.tar.xz"
14 else
15 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
16 fi
17 KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~x86-fbsd"
18 fi
19
20 inherit eutils flag-o-matic multilib toolchain-funcs ${SCM}
21
22 DESCRIPTION="GPAC is an implementation of the MPEG-4 Systems standard developed from scratch in ANSI C"
23 HOMEPAGE="http://gpac.wp.mines-telecom.fr/"
24
25 LICENSE="GPL-2"
26 SLOT="0"
27 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"
28
29 S="${WORKDIR}"/${PN}
30
31 RDEPEND="
32 a52? ( media-libs/a52dec )
33 aac? ( >=media-libs/faad2-2.0 )
34 alsa? ( media-libs/alsa-lib )
35 dvb? ( media-tv/linuxtv-dvb-apps )
36 ffmpeg? ( virtual/ffmpeg )
37 jack? ( media-sound/jack-audio-connection-kit )
38 jpeg? ( virtual/jpeg )
39 mad? ( >=media-libs/libmad-0.15.1b )
40 opengl? ( virtual/opengl media-libs/freeglut virtual/glu )
41 >=media-libs/libogg-1.1
42 png? ( >=media-libs/libpng-1.4 )
43 vorbis? ( >=media-libs/libvorbis-1.1 )
44 theora? ( media-libs/libtheora )
45 truetype? ( >=media-libs/freetype-2.1.4 )
46 xml? ( >=dev-libs/libxml2-2.6.0 )
47 xvid? ( >=media-libs/xvid-1.0.1 )
48 sdl? ( media-libs/libsdl )
49 jpeg2k? ( media-libs/openjpeg:0 )
50 ssl? ( dev-libs/openssl )
51 pulseaudio? ( media-sound/pulseaudio )
52 x11-libs/libXt
53 x11-libs/libX11
54 x11-libs/libXv
55 x11-libs/libXext"
56 # disabled upstream, see applications/Makefile
57 # wxwidgets? ( =x11-libs/wxGTK-2.8* )
58
59 DEPEND="${RDEPEND}"
60
61 my_use() {
62 local flag="$1" pflag="${2:-$1}"
63 if use ${flag}; then
64 echo "--use-${pflag}=system"
65 else
66 echo "--use-${pflag}=no"
67 fi
68 }
69
70 src_prepare() {
71 epatch "${FILESDIR}"/110_all_implicitdecls.patch \
72 "${FILESDIR}"/${PN}-0.5.1-build-fixes.patch \
73 "${FILESDIR}"/ffmpeg25.patch
74 sed -i -e "s:\(--disable-.*\)=\*):\1):" configure || die
75 }
76
77 src_configure() {
78 tc-export CC CXX AR RANLIB
79
80 econf \
81 --enable-svg \
82 --enable-pic \
83 --disable-amr \
84 --use-js=no \
85 --use-ogg=system \
86 $(use_enable alsa) \
87 $(use_enable debug) \
88 $(use_enable ipv6) \
89 $(use_enable jack jack yes) \
90 $(use_enable opengl) \
91 $(use_enable oss oss-audio) \
92 $(use_enable pulseaudio pulseaudio yes) \
93 $(use_enable sdl) \
94 $(use_enable ssl) \
95 $(use_enable static-libs static-lib) \
96 --disable-wx \
97 $(my_use a52) \
98 $(my_use aac faad) \
99 $(my_use dvb dvbx) \
100 $(my_use ffmpeg) \
101 $(my_use jpeg) \
102 $(my_use jpeg2k openjpeg) \
103 $(my_use mad) \
104 $(my_use png) \
105 $(my_use theora) \
106 $(my_use truetype ft) \
107 $(my_use vorbis) \
108 $(my_use xvid) \
109 --extra-cflags="${CFLAGS}" \
110 --cc="$(tc-getCC)" \
111 --libdir="/$(get_libdir)"
112 }
113
114 src_install() {
115 emake STRIP="true" DESTDIR="${D}" install
116 emake STRIP="true" DESTDIR="${D}" install-lib
117 dodoc AUTHORS BUGS Changelog README TODO INSTALLME
118 dodoc doc/*.txt
119 dohtml doc/*.html
120 }

  ViewVC Help
Powered by ViewVC 1.1.20