diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2017-01-12 11:29:38 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2017-01-12 11:29:38 +0800 |
commit | a40ba3d4d01030f8bf0a8ca0616cded0acc0a11d (patch) | |
tree | b066a20908d40e68d0e84543bd1c9bcb11361447 /lang | |
parent | 0d42c9c7010ebf70b7497303cb598f890bcd9756 (diff) | |
download | freebsd-ports-gnome-a40ba3d4d01030f8bf0a8ca0616cded0acc0a11d.tar.gz freebsd-ports-gnome-a40ba3d4d01030f8bf0a8ca0616cded0acc0a11d.tar.zst freebsd-ports-gnome-a40ba3d4d01030f8bf0a8ca0616cded0acc0a11d.zip |
- Correct JIT config [1]
- Add missing LIB_DEPENDS
PR: 215942
Submitted by: Iblis Lin <iblis@hs.ntnu.edu.tw> (maintainer)
Kostas Oikonomou <ko@research.att.com> [1]
Reported by: Iblis Lin <iblis@hs.ntnu.edu.tw> (maintainer)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/julia/Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/lang/julia/Makefile b/lang/julia/Makefile index 57ed6e79cddb..dddee8c25cf4 100644 --- a/lang/julia/Makefile +++ b/lang/julia/Makefile @@ -4,6 +4,7 @@ PORTNAME= julia PORTVERSION= 0.5.0 DISTVERSIONSUFFIX= -full +PORTREVISION= 1 CATEGORIES= lang math MASTER_SITES= https://github.com/JuliaLang/julia/releases/download/v${PORTVERSION}/ @@ -18,7 +19,8 @@ LIB_DEPENDS= libunwind.so:devel/libunwind \ libopenblas.so:math/openblas \ libgit2.so:devel/libgit2 \ libgmp.so:math/gmp \ - libmpfr.so:math/mpfr + libmpfr.so:math/mpfr \ + libpcre2-8.so:devel/pcre2 BUILD_DEPENDS= llvm-config38:devel/llvm38 \ pcre2-config:devel/pcre2 \ patchelf:sysutils/patchelf @@ -39,7 +41,7 @@ MAKE_ARGS+= prefix=${PREFIX} JCXXFLAGS="${CXXFLAGS}" \ FORCE_ASSERTIONS=${FORCE_ASSERTIONS} \ USE_GPL_LIBS=${USE_GPL_LIBS} -OPTIONS_DEFINE= EXAMPLES DEBUG DOCS GPL_LIBS DESKTOP +OPTIONS_DEFINE= EXAMPLES DEBUG DOCS GPL_LIBS DESKTOP NATIVE OPTIONS_SUB= yes DEBUG_VARS= FORCE_ASSERTIONS=1 \ @@ -61,6 +63,19 @@ DESKTOP_DESC= Install icon, .desktop and appdata file DESKTOP_VARS= INSTALL_TARGET+=install-desktop \ INSTALLS_ICONS=yes +.include <bsd.port.options.mk> + +NATIVE_DESC= Build with native CPU jit tuning +.if ${PORT_OPTIONS:MNATIVE} +MAKE_ARGS+= JULIA_CPU_TARGET=native +.else +.if ${ARCH} == "amd64" +MAKE_ARGS+= JULIA_CPU_TARGET=x86-64 +.else +MAKE_ARGS+= JULIA_CPU_TARGET=generic +.endif +.endif + post-configure: ${CC} ${CFLAGS} -lopenblas ${LDFLAGS} -o ${WRKSRC}/check_openblas \ ${FILESDIR}/check_openblas.c |