summaryrefslogtreecommitdiff
blob: 9b2e785b7340cf40e8e1ea3e721209014582ad8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit gnustep-2

S="${WORKDIR}/Etoile-${PV}/Frameworks/MediaKit"

DESCRIPTION="a common backend engine to play multimedia stream"
HOMEPAGE="http://www.etoile-project.org"
SRC_URI="http://download.gna.org/etoile/etoile-${PV}.tar.gz"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~ppc ~x86"
SLOT="0"
IUSE=""

DEPEND="gnustep-libs/etoile-foundation
	gnustep-libs/systemconfig
	media-video/ffmpeg"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd "${WORKDIR}/Etoile-${PV}"

	sed -i -e "s/-Werror/& -fgnu89-inline/" etoile.make "${S}"/GNUmakefile || die "sed failed"

	cd "${S}"
	sed -i -e "s#avcodec.h#libavcodec/avcodec.h#" \
		-e "s#avformat.h#libavformat/avformat.h#" \
		MKMediaFile.h || die "ffmpeg sed failed"
}