2017-09-16 23:01:08 +02:00
|
|
|
# Template file for 'julia'
|
|
|
|
pkgname=julia
|
|
|
|
version=0.6.0
|
2017-09-18 18:37:34 +02:00
|
|
|
revision=3
|
2017-09-16 23:01:08 +02:00
|
|
|
nocross=yes
|
|
|
|
build_style=gnu-makefile
|
2017-09-18 18:37:34 +02:00
|
|
|
make_build_args="prefix=/usr sysconfdir=/etc USE_SYSTEM_LLVM=1
|
2017-09-16 23:01:08 +02:00
|
|
|
USE_LLVM_SHLIB=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_BLAS=1
|
|
|
|
USE_SYSTEM_LAPACK=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_GMP=1
|
|
|
|
USE_SYSTEM_MPFR=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_LIBUV=0
|
|
|
|
USE_SYSTEM_LIBGIT2=1"
|
|
|
|
make_install_args=$make_build_args
|
|
|
|
hostmakedepends="curl llvm3.9 gcc-fortran perl cmake python m4"
|
|
|
|
makedepends="openblas-devel lapack-devel arpack-ng-devel
|
|
|
|
fftw-devel pcre2-devel gmp-devel mpfr-devel libgit2-devel
|
|
|
|
libcurl-devel libssh2-devel mbedtls-devel"
|
|
|
|
depends="libllvm3.9 openblas lapack arpack-ng libfftw
|
|
|
|
libpcre2 gmp mpfr libgit2 libcurl libssh2 mbedtls"
|
|
|
|
conf_files="/etc/julia/juliarc.jl"
|
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
short_desc="High-level, high-performance dynamic programming language"
|
|
|
|
maintainer="Francisco Gómez <espectalll@kydara.com>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://julialang.org"
|
|
|
|
distfiles="https://github.com/JuliaLang/julia/releases/download/v${version}/julia-${version}.tar.gz"
|
|
|
|
checksum="1c62bfce8075acf2b5b02355520a61210690324eceb021030681459d18a3a665"
|
|
|
|
|
|
|
|
if [[ $XBPS_MACHINE == 'i686' ]]; then
|
|
|
|
export M="pentium4"
|
|
|
|
export CFLAGS="-march=pentium4"
|
|
|
|
export CXXFLAGS="-march=pentium4"
|
2017-09-18 18:37:34 +02:00
|
|
|
make_build_args+=" MARCH=pentium4"
|
|
|
|
elif [[ $XBPS_MACHINE == 'x86_64' ]]; then
|
|
|
|
export M="core2"
|
|
|
|
export CFLAGS="-march=core2"
|
|
|
|
export CXXFLAGS="-march=core2"
|
|
|
|
make_build_args+=" MARCH=core2"
|
2017-09-16 23:01:08 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE.md
|
|
|
|
}
|