void-packages/srcpkgs/julia/template
2018-03-25 17:42:42 +02:00

59 lines
1.7 KiB
Bash

# Template file for 'julia'
pkgname=julia
version=0.6.2
revision=1
nocross=yes
build_style=gnu-makefile
make_build_args="prefix=/usr sysconfdir=/etc USE_SYSTEM_LLVM=1
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 git"
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-devel arpack-ng libfftw
pcre2-devel gmp mpfr-devel libgit2-devel libcurl libssh2 mbedtls"
conf_files="/etc/julia/juliarc.jl"
only_for_archs="i686 x86_64 i686-musl x86_64-musl"
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=19d15b07a7609e163420a13f4f9ca885cf61adcd1d970a8d9273919e2c9b74eb
case "$XBPS_TARGET_MACHINE" in
i686-musl)
makedepends+=" libexecinfo-devel"
LDFLAGS="-lexecinfo -lc"
;;
x86_64-musl)
makedepends+=" libexecinfo-devel"
LDFLAGS="-lexecinfo"
;;
esac
case "$XBPS_TARGET_MACHINE" in
i686*)
export M="pentium4"
export CFLAGS="-march=pentium4"
export CXXFLAGS="-march=pentium4"
make_build_args+=" MARCH=pentium4"
;;
x86_64*)
export M="x86-64"
export CFLAGS="-march=x86-64"
export CXXFLAGS="-march=x86-64"
make_build_args+=" MARCH=x86-64"
;;
esac
post_extract() {
sed -i '/^install:/s| \$(BUILDROOT)/doc.*||' Makefile
}
post_install() {
vlicense LICENSE.md
}