summaryrefslogtreecommitdiff
blob: 7126eaecc32dd90aa65a37a142cb2d8ec49a6c4e (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/gst-plugins/gst-plugins-0.4.0-r2.ebuild,v 1.6 2003/02/13 12:44:41 vapier Exp $

IUSE="arts gnome dvd mikmod jpeg esd avi sdl oggvorbis png alsa"

inherit libtool
inherit gnome2

S=${WORKDIR}/${P}
DESCRIPTION="Additional plugins for gstreamer - streaming media framework"
SRC_URI="mirror://sourceforge/gstreamer/${P}.tar.gz"
HOMEPAGE="http://gstreamer.sourceforge.net"

SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="x86 sparc"


# required packages
# there are many many optional libraries. features are compiled if the libraries
# are present. most optional libraries are from gnome.
DEPEND=">=media-libs/gstreamer-0.4.0
	>=gnome-base/gconf-1.2.0
	media-sound/mad
	dvd? (	>=media-libs/libdv-0.9.5 )
	oggvorbis? ( 	media-libs/libvorbis 
					media-libs/libogg )
	media-sound/lame
	media-sound/cdparanoia
	media-sound/jack-audio-connection-kit
	media-libs/hermes
	media-libs/openquicktime
	jpeg? (	media-video/mjpegtools 
		>=media-libs/jpeg-mmx-1.1.2-r1 )
	esd? ( media-sound/esound )
	gnome? ( >=gnome-base/gnome-vfs-2.0.1 )
	mikmod? ( media-libs/libmikmod )
	avi? ( media-video/avifile )
	sdl? ( media-libs/libsdl )
	png? ( >=media-libs/libpng-1.2.3 )
	alsa? ( >=media-libs/alsa-lib-0.9.0_rc2 )
	arts? ( >=kde-base/arts-1.0.2 )
	dvd? ( media-libs/libdvdnav )
	media-libs/ladspa-sdk "
# xmms is off-per-default
#	media-sound/xmms
# aalib? ( media-libs/aalib )


src_compile() {
	elibtoolize
	# this is an ugly patch to remove -I/usr/include from some CFLAGS
	patch -p0 <${FILESDIR}/${P}-configure.patch
	local myconf
	# aalib broken, dv on to test
	# dvdnav is broken
	myconf="--enable-dv --disable-flac --disable-aalib --disable-aalibtest --disable-dvdnav"
	use avi \
		&& myconf="${myconf} --enable-avifile" \
		|| myconf="${myconf} --disable-avifile"
	# not testing for much here, since if its in USE we want it, but its autodetected by configure
	
	./configure \
		${myconf} \
		--without-vorbis-includes \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--oldincludedir=/usr/include \
		--sysconfdir=/etc \
		--mandir=/usr/share/man || die "./configure failed"
	emake || die
}

src_install () {
	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"		
	make DESTDIR=${D} install || die
	unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
	
	dodoc AUTHORS COPYING INSTALL README RELEASE TODO 
}

pkg_postinst () {
	gnome2_gconf_install
	gst-register
}