component/openblas: put `build-common-options` in one line
[slapos.git] / component / openblas / buildout.cfg
1 [buildout]
2 parts =
3   openblas
4
5 extends =
6   ../gcc/buildout.cfg
7
8 [openblas]
9 recipe = slapos.recipe.cmmi
10 url = http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz
11 md5sum = b1190f3d3471685f17cfd1ec1d252ac9
12
13 build-common-options = BINARY="$(uname -m | grep -q x86_64 && echo 64 || echo 32)" NO_STATIC=1 USE_OPENMP=1 USE_THREAD=1
14
15 # You can specify more options with openblas:build-ext-options parameter.
16 # Example :
17 # * to build generic binary that supports multiple architecture in one binary
18 #   DYNAMIC_ARCH=1
19 # * to specify target explicitly
20 #   (see https://github.com/xianyi/OpenBLAS/blob/v0.2.15/TargetList.txt )
21 #   TARGET=HASWELL
22 build-ext-options =
23
24 # First try with auto-detected target and if it fails try TARGET=GENERIC.
25 configure-command =
26   make ${:build-common-options} ${:build-ext-options} || make ${:build-common-options} TARGET=GENERIC
27 make-options =
28   dummy
29 make-targets =
30   PREFIX="${buildout:parts-directory}/${:_buildout_section_name_}" install
31 environment =
32   PATH=${gcc-fortran:location}/bin:%(PATH)s
33   LD_LIBRARY_PATH=${gcc-fortran:location}/lib:${gcc-fortran:location}/lib64
34   LDFLAGS=-Wl,-rpath=${gcc-fortran:location}/lib -Wl,-rpath=${gcc-fortran:location}/lib64