Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2017 18:01:56 +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: r431292 - in head/lang/julia: . files
Message-ID:  <201701121801.v0CI1uGu088446@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu
Date: Thu Jan 12 18:01:56 2017
New Revision: 431292
URL: https://svnweb.freebsd.org/changeset/ports/431292

Log:
  Enable i386 build
  
  PR:		215997
  Submitted by:	Iblis Lin <iblis@hs.ntnu.edu.tw> (maintainer)

Added:
  head/lang/julia/files/extra-patch-ui_Makefile   (contents, props changed)
Modified:
  head/lang/julia/Makefile

Modified: head/lang/julia/Makefile
==============================================================================
--- head/lang/julia/Makefile	Thu Jan 12 17:48:35 2017	(r431291)
+++ head/lang/julia/Makefile	Thu Jan 12 18:01:56 2017	(r431292)
@@ -25,7 +25,7 @@ BUILD_DEPENDS=	llvm-config38:devel/llvm3
 		pcre2-config:devel/pcre2 \
 		patchelf:sysutils/patchelf
 
-ONLY_FOR_ARCHS=	amd64
+ONLY_FOR_ARCHS=	amd64 i386
 
 USES=		gmake compiler:c++11-lib fortran
 USE_LDCONFIG=	yes
@@ -71,11 +71,17 @@ MAKE_ARGS+=	JULIA_CPU_TARGET=native
 .else
 .if ${ARCH} == "amd64"
 MAKE_ARGS+=	JULIA_CPU_TARGET=x86-64
+.elif ${ARCH} == "i386"
+MAKE_ARGS+=	JULIA_CPU_TARGET=pentium4
 .else
 MAKE_ARGS+=	JULIA_CPU_TARGET=generic
 .endif
 .endif
 
+.if ${ARCH} == "i386"
+EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-ui_Makefile
+.endif
+
 post-configure:
 	${CC} ${CFLAGS} -lopenblas ${LDFLAGS} -o ${WRKSRC}/check_openblas \
 		${FILESDIR}/check_openblas.c

Added: head/lang/julia/files/extra-patch-ui_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/julia/files/extra-patch-ui_Makefile	Thu Jan 12 18:01:56 2017	(r431292)
@@ -0,0 +1,11 @@
+--- ui/Makefile.orig	2016-09-20 02:54:22 UTC
++++ ui/Makefile
+@@ -14,7 +14,7 @@ SRCS := repl
+ HEADERS := $(addprefix $(JULIAHOME)/src/,julia.h julia_threads.h julia_internal.h options.h) \
+ 	$(BUILDDIR)/../src/julia_version.h $(wildcard $(JULIAHOME)/src/support/*.h) $(LIBUV_INC)/uv.h
+ 
+-FLAGS := -I$(BUILDROOT)/src -I$(JULIAHOME)/src -I$(JULIAHOME)/src/support -I$(build_includedir)
++FLAGS := -I$(BUILDROOT)/src -I$(JULIAHOME)/src -I$(JULIAHOME)/src/support -I$(build_includedir) -latomic
+ ifneq ($(USEMSVC), 1)
+ FLAGS += -Wall -Wno-strict-aliasing -fno-omit-frame-pointer -Wc++-compat
+ endif



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