Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2017 03:29:38 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r431218 - head/lang/julia
Message-ID:  <201701120329.v0C3TceZ026851@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu
Date: Thu Jan 12 03:29:38 2017
New Revision: 431218
URL: https://svnweb.freebsd.org/changeset/ports/431218

Log:
  - 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)

Modified:
  head/lang/julia/Makefile

Modified: head/lang/julia/Makefile
==============================================================================
--- head/lang/julia/Makefile	Thu Jan 12 01:57:53 2017	(r431217)
+++ head/lang/julia/Makefile	Thu Jan 12 03:29:38 2017	(r431218)
@@ -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/libunwin
 		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="
 		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
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701120329.v0C3TceZ026851>