blob: 8e2cb058b4f3eaec912091f0a612d9d8c5f8ef42 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/apollo/apollo-1.4.1.ebuild,v 1.3 2002/10/08 18:52:15 hannes Exp $
IUSE="kde qt"
S=${WORKDIR}/${P}-1
DESCRIPTION="A Qt-based front-end to mpg123"
SRC_URI="mirror://sourceforge/apolloplayer/apollo-src-1.4.1-1.tar.bz2"
HOMEPAGE="http://www.apolloplayer.org"
SLOT="2"
LICENSE="GPL-2"
KEYWORDS="x86"
DEPEND="media-sound/mpg123
media-libs/id3lib
media-sound/mad
qt? ( x11-libs/qt )
kde? ( kde-base/kdelibs )"
# dev-libs/STLport
src_unpack() {
cd ${WORKDIR}
unpack ${A}
cd ${S}
bzip2 -dc ${FILESDIR}/${P}.patch.bz2 | patch || die "Patch failed"
mv install.sh install.sh.orig
sed -e 's:$PREFIX/local:$PREFIX:g' -e 's:BINDIR=$dir::' \
install.sh.orig > install.sh
}
src_compile() {
local myconf
myconf="--without-kde --without-stl"
# use kde && kdeconf="--with-kde=$KDEDIR" || kdeconf="--without-kde"
#kde support currently does not work
# myconf="$myconf $kdeconf"
use qt && myconf="$myconf --with-qt-dir=$QTDIR --with-qmake" || myconf="$myconf --with-tmake"
# use stl && myconf="$myconf --with-stl" || myconf="$myconf --without-stl"
#stl support is broken
# use buffer && myconf="$myconf --enable-buffer" || myconf="$myconf --disable-buffer"
# use mad && myconf="$myconf --with-mad=/usr/lib"
myconf="$myconf --with-mad=/usr/lib"
./configure.sh $myconf
gmake || die "Make failed"
}
src_install () {
dodir /usr/bin
sh install.sh --prefix=${D}/usr $kdeconf
}
|