blob: 5339b6c31a12d0c51a02982e5b583df2dee8cc4d (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/sdif/sdif-3.8.6.ebuild,v 1.2 2004/09/04 23:14:49 dholm Exp $
inherit eutils
MY_PN="${PN/sdif/SDIF}"
MY_P=${MY_PN}-${PV}-src
DESCRIPTION="The Sound Description Interchange Format Library is a library that deals with audio and wave processing."
HOMEPAGE="http://www.ircam.fr/anasyn/sdif"
SRC_URI="http://www.ircam.fr/anasyn/sdif/download/${MY_P}.tar.gz
doc? ( http://www.ircam.fr/anasyn/sdif/download/${MY_PN}-doc.tar.gz )"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="doc threads ftruncate debug"
DEPEND=""
S=${WORKDIR}/${MY_P}
src_unpack() {
# a hack that I need to bother upstream about
# they don't want to use the "Package-Name-Docs/file1.html" format
# instead it's just file1.html :|
unpack ${MY_P}.tar.gz
mkdir ${WORKDIR}/SDIF-doc
use doc && tar xfz ${DISTDIR}/${MY_PN}-doc.tar.gz -C ${WORKDIR}/SDIF-doc
cd ${S}
#custom cflags...
epatch ${FILESDIR}/${P}-cflags.patch
}
src_compile() {
cd ${S}
econf $(use_enable debug) \
$(use_enable ftruncate) \
$(use_enable threads pthreads) \
|| die "configure failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die
use doc && dohtml -r ${WORKDIR}/SDIF-doc
}
|