@@ -9,24 +9,58 @@ version = v"7.3.8"
9
9
sources = [
10
10
" https://sourceforge.net/projects/sdpa/files/sdpa/sdpa_7.3.8.tar.gz" =>
11
11
" c7541333da2f0bb2d18e90dbf758ac7cc099f3f7da3f256b284b0725f96d4117" ,
12
-
12
+ " ./bundled "
13
13
]
14
14
15
15
# Bash recipe for building across all platforms
16
16
script = raw """
17
17
cd $WORKSPACE/srcdir
18
18
cd sdpa-7.3.8/
19
- ./configure --prefix=$prefix --host=$target --with-blas="-L${prefix}/lib -lopenblas" --with-lapack="-L${prefix}/lib -lopenblas"
19
+ update_configure_scripts
20
+
21
+ for path in ${LD_LIBRARY_PATH//:/ }; do
22
+ for file in $(ls $path/*.la); do
23
+ echo "$file"
24
+ baddir=$(sed -n "s|libdir=||p" $file)
25
+ sed -i~ -e "s|$baddir|'$path'|g" $file
26
+ done
27
+ done
28
+ if [ $target = "x86_64-apple-darwin14" ]; then
29
+ # seems static linking requires apple's ar
30
+ export AR=/opt/x86_64-apple-darwin14/bin/x86_64-apple-darwin14-ar
31
+ fi
32
+
33
+ patch -p1 < $WORKSPACE/srcdir/patches/shared.diff
34
+ mv configure.in configure.ac
35
+ patch -p1 < $WORKSPACE/srcdir/patches/lt_init.diff
36
+ autoreconf -i
37
+
38
+
39
+ ./configure --prefix=$prefix --host=${target} lt_cv_deplibs_check_method=pass_all \
40
+ --with-blas="-L${prefix}/lib -lcoinblas -lgfortran -lcoinmumps -lcoinmetis" \
41
+ --with-lapack="-L${prefix}/lib -lcoinlapack -lcoinmumps -lcoinmetis" \
42
+ --with-mumps-libs="-L${prefix}/lib -lcoinmumps -lcoinmetis" --with-mumps-include="-I$prefix/include/coin/ThirdParty"
43
+
20
44
make
21
45
make install
22
-
23
46
"""
24
47
25
48
# These are the platforms we will build for by default, unless further
26
49
# platforms are passed in on the command line
27
50
platforms = [
28
- Linux (:i686 , :glibc )
51
+ Linux (:i686 , libc= :glibc ),
52
+ Linux (:x86_64 , libc= :glibc ),
53
+ Linux (:aarch64 , libc= :glibc ),
54
+ Linux (:armv7l , libc= :glibc , call_abi= :eabihf ),
55
+ MacOS (:x86_64 ),
56
+ Windows (:i686 ),
57
+ Windows (:x86_64 )
29
58
]
59
+ platforms = expand_gcc_versions (platforms)
60
+ # To fix gcc4 bug in Windows
61
+ # platforms = setdiff(platforms, [Windows(:x86_64, compiler_abi=CompilerABI(:gcc4)), Windows(:i686, compiler_abi=CompilerABI(:gcc4))])
62
+ push! (platforms, Windows (:i686 ,compiler_abi= CompilerABI (:gcc6 )))
63
+ push! (platforms, Windows (:x86_64 ,compiler_abi= CompilerABI (:gcc6 )))
30
64
31
65
# The products that we will ensure are always built
32
66
products (prefix) = [
@@ -35,9 +69,12 @@ products(prefix) = [
35
69
36
70
# Dependencies that must be installed before this package can be built
37
71
dependencies = [
38
- " https://github.com/JuliaLinearAlgebra/OpenBLASBuilder/releases/download/v0.3.0-1/build_OpenBLAS.v0.3.0.jl"
72
+ " https://github.com/juan-pablo-vielma/COINBLASBuilder/releases/download/v1.4.6-1-static/build_COINBLASBuilder.v1.4.6.jl" ,
73
+ " https://github.com/juan-pablo-vielma/COINLapackBuilder/releases/download/v1.5.6-1-static/build_COINLapackBuilder.v1.5.6.jl" ,
74
+ " https://github.com/juan-pablo-vielma/COINMetisBuilder/releases/download/v1.3.5-1-static/build_COINMetisBuilder.v1.3.5.jl" ,
75
+ " https://github.com/juan-pablo-vielma/COINMumpsBuilder/releases/download/v1.6.0-1-static/build_COINMumpsBuilder.v1.6.0.jl"
76
+
39
77
]
40
78
41
79
# Build the tarballs, and possibly a `build.jl` as well.
42
80
build_tarballs (ARGS , name, version, sources, script, platforms, products, dependencies)
43
-
0 commit comments