blob: 9f1169bc8be10720273927246d15dd76a7cf92e9 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/portaudio/portaudio-18.1-r6.ebuild,v 1.8 2007/08/25 14:14:43 vapier Exp $
inherit toolchain-funcs
MY_P=${PN}_v${PV/./_}
DESCRIPTION="An open-source cross platform audio API."
HOMEPAGE="http://www.portaudio.com"
SRC_URI="http://www.portaudio.com/archives/${MY_P}.zip"
LICENSE="GPL-2"
SLOT="18"
KEYWORDS="alpha ~amd64 arm hppa ia64 ~mips ppc ~ppc64 sh sparc x86 ~x86-fbsd"
IUSE=""
RDEPEND=""
DEPEND="app-arch/unzip"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
if use userland_Darwin ; then
cp "${FILESDIR}"/${P}-Makefile.macos "${S}"/Makefile
else
cp "${FILESDIR}"/${PF}-Makefile "${S}"/Makefile
fi
# Fix deprecated includes
fgrep --null -lr malloc.h "${S}" | xargs -0 sed -i 's/malloc.h/stdlib.h/'
fgrep --null -lr machine/soundcard.h "${S}" | xargs -0 sed -i 's/machine\/soundcard.h/sys\/soundcard.h/'
}
src_compile() {
emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" LD="$(tc-getLD)" CFLAGS="${CFLAGS}" || die
}
src_install() {
make DESTDIR="${D}" libdir="/usr/$(get_libdir)" install || die
fperms 644 /usr/include/portaudio/portaudio.h
dodoc docs/*
}
|