Lines 119-134
Link Here
|
119 |
# atlas does its own parallel builds |
119 |
# atlas does its own parallel builds |
120 |
emake -j1 || die "emake failed" |
120 |
emake -j1 || die "emake failed" |
121 |
|
121 |
|
122 |
RPATH="${DESTTREE}"/$(get_libdir)/blas |
122 |
RPATH="${EPREFIX}/${DESTTREE}"/$(get_libdir)/blas |
123 |
make \ |
123 |
make \ |
124 |
LIBDIR=$(get_libdir) \ |
124 |
LIBDIR="${EPREFIX}/${DESTTREE}"/$(get_libdir) \ |
125 |
RPATH="${RPATH}"/atlas \ |
125 |
RPATH="${RPATH}"/atlas \ |
126 |
shared || die "failed to build shared libraries" |
126 |
shared || die "failed to build shared libraries" |
127 |
|
127 |
|
128 |
# build shared libraries of threaded libraries if applicable |
128 |
# build shared libraries of threaded libraries if applicable |
129 |
if [[ -d gentoo/libptcblas.a ]]; then |
129 |
if [[ -d gentoo/libptcblas.a ]]; then |
130 |
make \ |
130 |
make \ |
131 |
LIBDIR=$(get_libdir) \ |
131 |
LIBDIR="${EPREFIX}/${DESTTREE}"/$(get_libdir) \ |
132 |
RPATH="${RPATH}"/threaded-atlas \ |
132 |
RPATH="${RPATH}"/threaded-atlas \ |
133 |
ptshared || die "failed to build threaded shared libraries" |
133 |
ptshared || die "failed to build threaded shared libraries" |
134 |
fi |
134 |
fi |
Lines 151-157
Link Here
|
151 |
} |
151 |
} |
152 |
|
152 |
|
153 |
src_install () { |
153 |
src_install () { |
154 |
dodir "${RPATH}"/atlas |
154 |
dodir "${DESTTREE}"/$(get_libdir) |
|
|
155 |
dodir "${DESTTREE}"/$(get_libdir)/blas/atlas |
155 |
cd "${BLD_DIR}"/gentoo/libs |
156 |
cd "${BLD_DIR}"/gentoo/libs |
156 |
cp -P libatlas* "${ED}/${DESTTREE}"/$(get_libdir) \ |
157 |
cp -P libatlas* "${ED}/${DESTTREE}"/$(get_libdir) \ |
157 |
|| die "Failed to install libatlas" |
158 |
|| die "Failed to install libatlas" |
Lines 170-176
Link Here
|
170 |
-e "s:@THREADLIBS@:${threadlibs}:g" \ |
171 |
-e "s:@THREADLIBS@:${threadlibs}:g" \ |
171 |
*blas.pc || die "sed *blas.pc failed" |
172 |
*blas.pc || die "sed *blas.pc failed" |
172 |
|
173 |
|
173 |
cp -P *blas* "${ED}/${RPATH}"/atlas \ |
174 |
cp -P *blas* "${ED}/${DESTTREE}"/$(get_libdir)/blas/atlas \ |
174 |
|| die "Failed to install blas/cblas" |
175 |
|| die "Failed to install blas/cblas" |
175 |
|
176 |
|
176 |
ESELECT_PROF=atlas |
177 |
ESELECT_PROF=atlas |
Lines 178-184
Link Here
|
178 |
eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.atlas ${ESELECT_PROF} |
179 |
eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.atlas ${ESELECT_PROF} |
179 |
|
180 |
|
180 |
if [[ -d "${BLD_DIR}"/gentoo/threaded-libs ]]; then |
181 |
if [[ -d "${BLD_DIR}"/gentoo/threaded-libs ]]; then |
181 |
dodir "${RPATH}"/threaded-atlas |
182 |
dodir "${DESTTREE}"/$(get_libdir)/blas/threaded-atlas |
182 |
cd "${BLD_DIR}"/gentoo/threaded-libs |
183 |
cd "${BLD_DIR}"/gentoo/threaded-libs |
183 |
|
184 |
|
184 |
# pkgconfig files |
185 |
# pkgconfig files |
Lines 192-198
Link Here
|
192 |
-e "s:@THREADLIBS@:${threadlibs}:g" \ |
193 |
-e "s:@THREADLIBS@:${threadlibs}:g" \ |
193 |
*blas.pc || die "sed *blas.pc failed" |
194 |
*blas.pc || die "sed *blas.pc failed" |
194 |
|
195 |
|
195 |
cp -P * "${ED}/${RPATH}"/threaded-atlas \ |
196 |
cp -P * "${ED}/${DESTTREE}"/$(get_libdir)/blas/threaded-atlas \ |
196 |
|| die "Failed to install threaded atlas" |
197 |
|| die "Failed to install threaded atlas" |
197 |
ESELECT_PROF=atlas-threads |
198 |
ESELECT_PROF=atlas-threads |
198 |
|
199 |
|