diff options
Diffstat (limited to 'sci-libs/gotoblas2/gotoblas2-1.13.ebuild')
-rw-r--r-- | sci-libs/gotoblas2/gotoblas2-1.13.ebuild | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/sci-libs/gotoblas2/gotoblas2-1.13.ebuild b/sci-libs/gotoblas2/gotoblas2-1.13.ebuild index 9309935..7b8b91a 100644 --- a/sci-libs/gotoblas2/gotoblas2-1.13.ebuild +++ b/sci-libs/gotoblas2/gotoblas2-1.13.ebuild @@ -72,13 +72,20 @@ src_test() { } src_install() { - local libname=goto2 threads - use threads && threads="-pthread" + local profname=${PN} threads + use int64 && profname=${profname}-int64 + if use threads; then + threads="-pthread" + profname=${profname}-threads + elif use openmp; then + profname=${profname}-openmp + fi + dolib.so solibs/lib*.so use static-libs && dolib.a lib*.a # create pkg-config file and associated eselect file - cat <<-EOF > ${libname}.pc + cat <<-EOF > ${profname}.pc prefix=${EPREFIX}/usr libdir=\${prefix}/$(get_libdir) includedir=\${prefix}/include @@ -86,20 +93,20 @@ src_install() { Description: ${DESCRIPTION} Version: ${PV} URL: ${HOMEPAGE} - Libs: -L\${libdir} -l${libname} -lm ${threads} + Libs: -L\${libdir} -lgoto2 -lm ${threads} EOF insinto /usr/$(get_libdir)/pkgconfig - doins ${libname}.pc + doins ${profname}.pc - alternatives_for blas goto2 0 \ - "/usr/$(get_libdir)/pkgconfig/blas.pc" "${libname}.pc" + alternatives_for blas ${profname} 0 \ + "/usr/$(get_libdir)/pkgconfig/blas.pc" "${profname}.pc" if use incblas; then insinto /usr/include/${PN} doins cblas.h || die - echo >> ${libname}.pc "Cflags: -I\${includedir}/${PN}" - alternatives_for cblas goto2 0 \ - "/usr/$(get_libdir)/pkgconfig/cblas.pc" "${libname}.pc" \ + echo >> ${profname}.pc "Cflags: -I\${includedir}/${PN}" + alternatives_for cblas ${profname} 0 \ + "/usr/$(get_libdir)/pkgconfig/cblas.pc" "${profname}.pc" \ "/usr/include/cblas.h" "${PN}/cblas.h" fi dodoc 01Readme.txt 03FAQ.txt 05LargePage 06WeirdPerformance |