Lines 21-26
Link Here
|
21 |
# Correct hard coded doc location |
21 |
# Correct hard coded doc location |
22 |
sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die |
22 |
sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die |
23 |
|
23 |
|
|
|
24 |
# Don't force multiarch stuff on OSX |
25 |
sed -i -e 's:-arch \(i386\|x86_64\)::g' \ |
26 |
Makefile.all.am || die |
27 |
|
24 |
# Respect CFLAGS, LDFLAGS |
28 |
# Respect CFLAGS, LDFLAGS |
25 |
epatch "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch |
29 |
epatch "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch |
26 |
|
30 |
|
Lines 68-73
Link Here
|
68 |
! has_multilib_profile && myconf="${myconf} --enable-only64bit" |
72 |
! has_multilib_profile && myconf="${myconf} --enable-only64bit" |
69 |
fi |
73 |
fi |
70 |
|
74 |
|
|
|
75 |
use x86-macos && myconf="${myconf} --enable-only32bit" |
76 |
use x64-macos && myconf="${myconf} --enable-only64bit" |
77 |
|
71 |
# Don't use mpicc unless the user asked for it (bug #258832) |
78 |
# Don't use mpicc unless the user asked for it (bug #258832) |
72 |
if ! use mpi; then |
79 |
if ! use mpi; then |
73 |
myconf="${myconf} --without-mpicc" |
80 |
myconf="${myconf} --without-mpicc" |
Lines 80-86
Link Here
|
80 |
emake DESTDIR="${D}" install |
87 |
emake DESTDIR="${D}" install |
81 |
dodoc AUTHORS FAQ.txt NEWS README* |
88 |
dodoc AUTHORS FAQ.txt NEWS README* |
82 |
|
89 |
|
83 |
pax-mark m "${D}"/usr/$(get_libdir)/valgrind/*-*-linux |
90 |
pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux |
|
|
91 |
|
92 |
if [[ ${CHOST} == *-darwin* ]] ; then |
93 |
# fix install_names on shared libraries, can't turn them into bundles, |
94 |
# as dyld won't load them any more then |
95 |
local l |
96 |
for l in "${ED}"/usr/lib/valgrind/*.so ; do |
97 |
install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}" |
98 |
done |
99 |
fi |
84 |
} |
100 |
} |
85 |
|
101 |
|
86 |
pkg_postinst() { |
102 |
pkg_postinst() { |