Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
IUSE="static" |
5 |
IUSE="static" |
6 |
|
6 |
|
7 |
inherit eutils |
7 |
inherit eutils multilib |
8 |
|
8 |
|
9 |
DESCRIPTION="A C library for reading and writing files containing sampled sound" |
9 |
DESCRIPTION="A C library for reading and writing files containing sampled sound" |
10 |
HOMEPAGE="http://www.mega-nerd.com/libsndfile/" |
10 |
HOMEPAGE="http://www.mega-nerd.com/libsndfile/" |
Lines 20-29
Link Here
|
20 |
unpack ${A} |
20 |
unpack ${A} |
21 |
cd ${S} |
21 |
cd ${S} |
22 |
epunt_cxx |
22 |
epunt_cxx |
|
|
23 |
if use amd64 && has_multilib_profile; then |
24 |
cp -ar ${S} ${S}-x86 |
25 |
mv ${S} ${S}-amd64 |
26 |
fi |
23 |
} |
27 |
} |
24 |
|
28 |
|
25 |
src_compile() { |
29 |
src_compile() { |
26 |
econf $(use_enable static) || die "./configure failed" |
30 |
if use amd64 && has_multilib_profile; then |
|
|
31 |
local OPWD=${PWD} |
32 |
local OABI=${ABI} |
33 |
local OLDFLAGS="${LDFLAGS}" |
34 |
cd ${S}-x86 |
35 |
ABI="x86" |
36 |
LDFLAGS="${OLDFLAGS} -L/usr/lib32" |
37 |
src_compile-multi --libdir=/usr/lib32 |
38 |
cd ${S}-amd64 |
39 |
ABI="amd64" |
40 |
LDFLAGS="${OLDFLAGS}" |
41 |
src_compile-multi --libdir=/usr/lib64 |
42 |
ABI=${OABI} |
43 |
cd ${OPWD} |
44 |
unset OLDFLAGS |
45 |
unset OPWD |
46 |
unset OABI |
47 |
else |
48 |
src_compile-multi |
49 |
fi |
50 |
} |
51 |
|
52 |
src_compile-multi() { |
53 |
econf ${1} $(use_enable static) || die "./configure failed" |
27 |
|
54 |
|
28 |
# fix this weird doc installation directory libsndfile decides |
55 |
# fix this weird doc installation directory libsndfile decides |
29 |
# to something more standard |
56 |
# to something more standard |
Lines 33-38
Link Here
|
33 |
} |
60 |
} |
34 |
|
61 |
|
35 |
src_install() { |
62 |
src_install() { |
|
|
63 |
if use amd64 && has_multilib_profile; then |
64 |
local OPWD=${PWD} |
65 |
local OABI=${ABI} |
66 |
cd ${S}-x86 |
67 |
ABI="x86" |
68 |
src_install-multi |
69 |
cd ${S}-amd64 |
70 |
ABI="amd64" |
71 |
src_install-multi |
72 |
ABI=${OABI} |
73 |
cd ${OPWD} |
74 |
unset OPWD |
75 |
unset OABI |
76 |
else |
77 |
src_install-multi |
78 |
fi |
79 |
} |
80 |
|
81 |
src_install-multi() { |
36 |
make DESTDIR="${D}" install || die "make install failed" |
82 |
make DESTDIR="${D}" install || die "make install failed" |
37 |
dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed" |
83 |
dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed" |
38 |
} |
84 |
} |