8 |
8 |
EGIT_REPO_URI="https://github.com/gpac/gpac"
|
9 |
9 |
else
|
10 |
10 |
SRC_URI="https://github.com/gpac/gpac/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
11 |
|
KEYWORDS="~alpha amd64 ppc ppc64 sparc x86"
|
|
11 |
KEYWORDS="~alpha amd64 ~ppc ppc64 ~sparc x86"
|
12 |
12 |
fi
|
13 |
13 |
|
14 |
14 |
inherit toolchain-funcs ${SCM} xdg
|
... | ... | |
19 |
19 |
LICENSE="GPL-2"
|
20 |
20 |
# subslot == libgpac major
|
21 |
21 |
SLOT="0/11"
|
22 |
|
IUSE="a52 aac alsa cpu_flags_x86_sse2 debug dvb ffmpeg ipv6 jack jpeg jpeg2k mad opengl oss png
|
|
22 |
IUSE="a52 aac alsa cpu_flags_x86_sse2 debug dvb ffmpeg jack jpeg jpeg2k mad opengl oss png
|
23 |
23 |
pulseaudio sdl ssl static-libs theora truetype vorbis xml xvid X"
|
24 |
24 |
|
25 |
25 |
BDEPEND="virtual/pkgconfig"
|
... | ... | |
31 |
31 |
alsa? ( media-libs/alsa-lib )
|
32 |
32 |
ffmpeg? ( media-video/ffmpeg:0= )
|
33 |
33 |
jack? ( virtual/jack )
|
34 |
|
jpeg? ( virtual/jpeg:0 )
|
|
34 |
jpeg? ( media-libs/libjpeg-turbo:0= )
|
35 |
35 |
jpeg2k? ( media-libs/openjpeg:2 )
|
36 |
36 |
mad? ( media-libs/libmad )
|
37 |
37 |
opengl? (
|
... | ... | |
63 |
63 |
"
|
64 |
64 |
|
65 |
65 |
PATCHES=(
|
66 |
|
"${FILESDIR}/${PN}-2.0.0-configure.patch"
|
|
66 |
"${FILESDIR}/${PN}-2.2.0-configure.patch"
|
|
67 |
"${FILESDIR}/${PN}-2.2.0-ffmpeg6.patch"
|
|
68 |
"${FILESDIR}/${PN}-2.2.0-ffmpeg6-deux.patch"
|
67 |
69 |
)
|
68 |
70 |
|
69 |
71 |
DOCS=(
|
... | ... | |
76 |
78 |
README.md
|
77 |
79 |
)
|
78 |
80 |
|
79 |
|
HTML_DOCS="share/doc/*.html"
|
80 |
|
|
81 |
81 |
my_use() {
|
82 |
82 |
local flag="$1" pflag="${2:-$1}"
|
83 |
83 |
if use ${flag}; then
|
... | ... | |
89 |
89 |
|
90 |
90 |
src_prepare() {
|
91 |
91 |
default
|
92 |
|
sed -i -e "s:\(--disable-.*\)=\*):\1):" configure || die
|
93 |
92 |
|
94 |
93 |
# TODO: remove when old zlib is no longer in tree
|
95 |
94 |
has_version "<sys-libs/zlib-1.3" && eapply "${FILESDIR}/${PN}-1.0.0-zlib-compile.patch"
|
... | ... | |
104 |
103 |
--verbose
|
105 |
104 |
--enable-pic
|
106 |
105 |
--enable-svg
|
107 |
|
--disable-amr
|
108 |
|
--use-js=no
|
109 |
106 |
--use-ogg=system
|
110 |
107 |
$(use_enable alsa)
|
111 |
108 |
$(use_enable debug)
|
112 |
109 |
$(use_enable dvb dvb4linux)
|
113 |
|
$(use_enable ipv6)
|
114 |
110 |
$(use_enable jack jack yes)
|
115 |
111 |
$(use_enable opengl 3d)
|
116 |
112 |
$(use_enable oss oss-audio)
|
... | ... | |
123 |
119 |
$(use_enable X x11-xv)
|
124 |
120 |
$(my_use a52)
|
125 |
121 |
$(my_use aac faad)
|
126 |
|
$(my_use dvb dvbx)
|
|
122 |
$(use_enable dvb dvbx)
|
127 |
123 |
$(my_use ffmpeg)
|
128 |
124 |
$(my_use jpeg)
|
129 |
125 |
$(my_use jpeg2k openjpeg)
|
130 |
126 |
$(my_use mad)
|
131 |
127 |
$(my_use png)
|
132 |
128 |
$(my_use theora)
|
133 |
|
$(my_use truetype ft)
|
|
129 |
$(my_use truetype freetype)
|
134 |
130 |
$(my_use vorbis)
|
135 |
131 |
$(my_use xvid)
|
136 |
132 |
)
|