|
Lines 2-10
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/spandsp/spandsp-0.0.6_pre21.ebuild,v 1.1 2013/02/06 23:20:19 mattst88 Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/spandsp/spandsp-0.0.6_pre21.ebuild,v 1.1 2013/02/06 23:20:19 mattst88 Exp $ |
| 4 |
|
4 |
|
| 5 |
EAPI="2" |
5 |
EAPI="5" |
| 6 |
|
6 |
|
| 7 |
inherit multilib versionator |
7 |
inherit base multilib versionator |
| 8 |
|
8 |
|
| 9 |
DESCRIPTION="SpanDSP is a library of DSP functions for telephony." |
9 |
DESCRIPTION="SpanDSP is a library of DSP functions for telephony." |
| 10 |
HOMEPAGE="http://www.soft-switch.org/" |
10 |
HOMEPAGE="http://www.soft-switch.org/" |
|
Lines 13-19
Link Here
|
| 13 |
LICENSE="LGPL-2.1" |
13 |
LICENSE="LGPL-2.1" |
| 14 |
SLOT="0" |
14 |
SLOT="0" |
| 15 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
15 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
| 16 |
IUSE="doc fixed-point static-libs" |
16 |
IUSE="doc fixed-point mmx sse sse2 sse3 sse41 sse42 sse4a ssse3 static-libs" |
| 17 |
|
17 |
|
| 18 |
RDEPEND="media-libs/tiff" |
18 |
RDEPEND="media-libs/tiff" |
| 19 |
DEPEND="${RDEPEND} |
19 |
DEPEND="${RDEPEND} |
|
Lines 22-27
Link Here
|
| 22 |
|
22 |
|
| 23 |
S=${WORKDIR}/${PN}-$(get_version_component_range 1-3) |
23 |
S=${WORKDIR}/${PN}-$(get_version_component_range 1-3) |
| 24 |
|
24 |
|
|
|
25 |
PATCHES=( "${FILESDIR}/${P}-sse4x.patch" ) |
| 26 |
|
| 25 |
# TODO: |
27 |
# TODO: |
| 26 |
# there are two tests options: tests and test-data |
28 |
# there are two tests options: tests and test-data |
| 27 |
# they need audiofile, fftw, libxml and probably more |
29 |
# they need audiofile, fftw, libxml and probably more |
|
Lines 32-43
Link Here
|
| 32 |
--disable-dependency-tracking \ |
34 |
--disable-dependency-tracking \ |
| 33 |
$(use_enable doc) \ |
35 |
$(use_enable doc) \ |
| 34 |
$(use_enable fixed-point) \ |
36 |
$(use_enable fixed-point) \ |
|
|
37 |
$(use_enable mmx) \ |
| 38 |
$(use_enable sse) \ |
| 39 |
$(use_enable sse2) \ |
| 40 |
$(use_enable sse3) \ |
| 41 |
$(use_enable sse41 sse4_1) \ |
| 42 |
$(use_enable sse42 sse4_2) \ |
| 43 |
$(use_enable sse4a) \ |
| 44 |
$(use_enable ssse3) \ |
| 35 |
$(use_enable static-libs static) |
45 |
$(use_enable static-libs static) |
| 36 |
} |
46 |
} |
| 37 |
|
47 |
|
| 38 |
src_install () { |
48 |
src_install () { |
| 39 |
emake DESTDIR="${D}" install || die "emake install failed" |
49 |
emake DESTDIR="${D}" install |
| 40 |
dodoc AUTHORS ChangeLog DueDiligence NEWS README || die "dodoc failed" |
50 |
dodoc AUTHORS ChangeLog DueDiligence NEWS README |
| 41 |
|
51 |
|
| 42 |
if ! use static-libs; then |
52 |
if ! use static-libs; then |
| 43 |
# remove useless la file when not installing static lib |
53 |
# remove useless la file when not installing static lib |
|
Lines 45-50
Link Here
|
| 45 |
fi |
55 |
fi |
| 46 |
|
56 |
|
| 47 |
if use doc; then |
57 |
if use doc; then |
| 48 |
dohtml -r doc/{api/html/*,t38_manual} || die "dohtml failed" |
58 |
dohtml -r doc/{api/html/*,t38_manual} |
| 49 |
fi |
59 |
fi |
| 50 |
} |
60 |
} |