blob: 031353aefd001ed81b7b1a9dd08d42b926b277d4 (
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Philippe Namias <pnamias@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/kde-base/kdemultimedia/kdemultimedia-2.2.ebuild,v 1.7 2001/11/17 11:28:28 danarmak Exp $
S=${WORKDIR}/${P}
DESCRIPTION="KDE ${PV} - Multimedia"
SRC_PATH="kde/stable/${PV}/src/${P}.tar.bz2"
SRC_URI="ftp://ftp.kde.org/pub/$SRC_PATH
ftp://ftp.fh-heilbronn.de/pub/mirrors/$SRC_PATH
ftp://ftp.sourceforge.net/pub/mirrors/$SRC_PATH
http://www.research.att.com/~leonb/objprelink/kde-admin-acinclude.patch"
HOMEPAGE="http://www.kde.org"
DEPEND=">=kde-base/kdelibs-${PV}
>=sys-libs/ncurses-5.2
>=media-sound/cdparanoia-3.9.8
>=media-libs/libvorbis-1.0_beta4
alsa? ( >=media-libs/alsa-lib-0.5.9 )
nas? ( >=media-libs/nas-1.4.1 )
esd? ( >=media-sound/esound-0.2.22 )
motif? ( >=x11-libs/openmotif-2.1.30 )
gtk? ( >=x11-libs/gtk+-1.2.10-r4 )
slang? ( >=sys-libs/slang-1.4.4 )
objprelink? ( dev-util/objprelink )"
# tcltk? ( =dev-lang/tcl-tk.8.0.5-r2 )
RDEPEND=$DEPEND
src_unpack() {
cd ${WORKDIR}
unpack ${P}.tar.bz2
cd ${S}
patch -p0 < ${FILESDIR}/${PF}-gentoo.diff
use objprelink && patch -p0 < ${DISTDIR}/kde-admin-acinclude.patch
}
src_compile() {
local myconf
local myaudio
local myinteface
myaudio="--enable-audio=oss"
myinterface="--enable-interface=xaw,ncurses"
if [ -n "`use alsa`" ]
then
myconf="--with-alsa"
myaudio="$myaudio,alsa"
fi
if [ -n "`use nas`" ]
then
myaudio="$myaudio,nas"
fi
if [ -n "`use esd`" ]
then
myaudio="$myaudio,esd"
fi
if [ -n "`use motif`" ]
then
myinterface="$myinterface,motif"
fi
if [ -n "`use gtk`" ]
then
myinterface="$myinterface,gtk"
fi
# tcl tk does not work
# if [ "`use tcltk`" ]
# then
# myinterface="$myinterface,tcltk"
# fi
if [ -n "`use slang`" ]
then
myinterface="$myinterface,slang"
fi
if [ "`use qtmt`" ]
then
myconf="$myconf --enable-mt"
fi
if [ "`use objprelink`" ] ; then
myconf="$myconf --enable-objprelink"
fi
QTBASE=/usr/X11R6/lib/qt
# export CFLAGS="${CFLAGS/-march=i?86/}"
# export CXXFLAGS="${CXXFLAGS/-march=i?86/}"
# unset CFLAGS
# unset CXXFLAGS
try ./configure --prefix=${KDEDIR} --host=${CHOST} \
--with-qt-dir=$QTBASE --with-xinerama \
$myconf $myaudio $myinterface
try make
}
src_install() {
try make install DESTDIR=${D}
dodoc AUTHORS ChangeLog COPYING README*
}
|