blob: f6d9d1540275c2a45f146f750a95ee12222af5ca (
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
|
# Copyright 1999-2006 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.7 2006/11/13 15:21:56 flameeyes Exp $
IUSE=""
DESCRIPTION="Mix several 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"
KEYWORDS="x86 -amd64"
DEPEND="x11-libs/gtk+"
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
}
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*
}
|