blob: b984ae0e2b42a32e60a528516809ab64c4b44f2c (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
IUSE="doc threads ftruncate debug"
inherit eutils
MY_PN="${PN/sdif/SDIF}"
MY_P=${MY_PN}-${PV}-src
S=${WORKDIR}/${MY_P}
DESCRIPTION="The Sound Description Interchange Format Library 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="amd64 ~ppc sparc x86"
DEPEND=""
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() {
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"
}
|