summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2017-01-12 03:29:38 +0000
committerlwhsu <lwhsu@FreeBSD.org>2017-01-12 03:29:38 +0000
commita40ba3d4d01030f8bf0a8ca0616cded0acc0a11d (patch)
treeb066a20908d40e68d0e84543bd1c9bcb11361447
parent0d42c9c7010ebf70b7497303cb598f890bcd9756 (diff)
downloadFreeBSD-ports-a40ba3d4d01030f8bf0a8ca0616cded0acc0a11d.zip
FreeBSD-ports-a40ba3d4d01030f8bf0a8ca0616cded0acc0a11d.tar.gz
- 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)
-rw-r--r--lang/julia/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/lang/julia/Makefile b/lang/julia/Makefile
index 57ed6e7..dddee8c 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
OpenPOWER on IntegriCloud