/[gentoo-x86]/dev-libs/starpu/starpu-1.1.4.ebuild
Gentoo

Contents of /dev-libs/starpu/starpu-1.1.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Aug 4 18:06:53 2015 UTC (4 years, 6 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 bicatali 1.1 # Copyright 1999-2015 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/dev-libs/starpu/starpu-1.1.2.ebuild,v 1.2 2014/07/04 14:36:27 bicatali Exp $
4    
5     EAPI=5
6    
7     AUTOTOOLS_AUTORECONF=1
8     inherit autotools-utils toolchain-funcs cuda
9    
10     DESCRIPTION="Unified runtime system for heterogeneous multicore architectures"
11     HOMEPAGE="http://runtime.bordeaux.inria.fr/StarPU/"
12     SRC_URI="${HOMEPAGE}/files/${P}.tar.gz"
13    
14     LICENSE="LGPL-2.1"
15     SLOT="0"
16     KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17    
18     IUSE="blas cuda debug doc examples fftw gcc-plugin mpi opencl opengl qt4
19     static-libs test"
20    
21     RDEPEND="
22     sys-apps/hwloc:0=
23     sci-mathematics/glpk:0=
24     blas? ( virtual/blas )
25     cuda? ( dev-util/nvidia-cuda-toolkit
26     x11-drivers/nvidia-drivers
27     blas? ( sci-libs/magma ) )
28     fftw? ( sci-libs/fftw:3.0= )
29     mpi? ( virtual/mpi )
30     opencl? ( virtual/opencl )
31     opengl? ( media-libs/freeglut:0= )
32     qt4? ( >=dev-qt/qtgui-4.7:4
33     >=dev-qt/qtopengl-4.7:4
34     >=dev-qt/qtsql-4.7:4
35     x11-libs/qwt )"
36    
37     DEPEND="${RDEPEND}
38     virtual/pkgconfig
39     doc? ( app-doc/doxygen virtual/latex-base )
40     test? ( gcc-plugin? ( dev-scheme/guile ) )"
41    
42     src_prepare() {
43     # upstream did not want the patches so apply sed's
44     sed -i -e 's/-O3 $CFLAGS/$CFLAGS/' configure.ac || die
45     sed -i -e '/Libs.private/s/@LDFLAGS@//g' *.pc.in */*.pc.in || die
46     autotools-utils_src_prepare
47     use cuda && cuda_src_prepare
48     }
49    
50     src_configure() {
51     use blas && export BLAS_LIBS="$($(tc-getPKG_CONFIG) --libs blas)"
52    
53     local myeconfargs=(
54     --disable-build-examples
55     $(use_enable cuda)
56     $(use_enable debug)
57     $(use_enable doc build-doc)
58     $(use_enable fftw starpufft)
59     $(use_enable gcc-plugin gcc-extensions)
60     $(use_enable opencl)
61     $(use_enable opengl opengl-render)
62     $(use_enable qt4 starpu-top)
63     $(use_with mpi mpicc "$(type -P mpicc)")
64     $(use cuda && use_enable blas magma)
65     $(use mpi && use_enable test mpi-check)
66     )
67     autotools-utils_src_configure
68     }
69    
70     src_test() {
71     autotools-utils_src_test -j1 showcheck
72     }
73    
74     src_install() {
75     autotools-utils_src_install
76     if use doc; then
77     dodoc "${BUILD_DIR}"/doc/doxygen/*.pdf
78     dohtml -r "${BUILD_DIR}"/doc/doxygen/html/*
79     fi
80     if use examples; then
81     insinto /usr/share/doc/${PF}/examples
82     doins -r examples/*
83     fi
84     }

  ViewVC Help
Powered by ViewVC 1.1.20