blob: 7bd873d3297abed79ed29891aadc2f2cbc6cbec3 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/DBMix/DBMix-0.9.8.ebuild,v 1.5 2004/07/08 07:56:07 eradicator Exp $
IUSE="xmms"
inherit gnuconfig
DESCRIPTION="Mix several xmms and other sound streams like a DJ"
HOMEPAGE="http://dbmix.sourceforge.net"
SRC_URI="mirror://sourceforge/dbmix/${P}.tar.gz"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
# -amd64: looks like sizeof() problems... sound plays but "skippy"
# -sparc: fails to initialize. xmms plugin segfaults xmms on exit
KEYWORDS="x86 -amd64 -sparc"
DEPEND="x11-libs/gtk+
xmms? ( media-sound/xmms )"
RDEPEND="x11-libs/gtk+"
src_unpack() {
unpack ${A}
cd ${S}
einfo "Fixing errno naming"
find . -type f -name \*.c \
-exec grep -q 'int errno' '{}' \; \
-exec sed -i~ 's/extern int errno;/#include <errno.h>/' '{}' \; \
|| die
einfo "Fixing library calling"
find . -type f -name Makefile\* \
-exec grep -q -- -ldbaudiolib '{}' \; \
-exec sed -i~ 's:-ldbaudiolib:-L../dbaudiolib/.libs &:' '{}' \; \
|| die
einfo "Fixing all about.c strings"
find . -type f -name about.c \
-exec sed -i~ 's:\\n *$:\\n\\:' '{}' \; \
|| die
einfo "Fixing naked . in include"
sed -i~ 's/^INCLUDES = ./INCLUDES = -I./' dbfsd_src/Makefile* \
|| die
gnuconfig_update
}
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
emake || die
}
src_install() {
# Without the AM_MAKEFLAGS, it doesn't seem to pass DESTDIR
make DESTDIR=${D} AM_MAKEFLAGS="DESTDIR=${D}" install || die
dodoc README Readme*
}
|