diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2017-01-13 02:01:56 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2017-01-13 02:01:56 +0800 |
commit | ed205c832873da88d548de6d2652c3556b8568e0 (patch) | |
tree | 4d7143ad51be55dd77fae29aa198a460e64725da /lang | |
parent | 7f385c56eb832e743ce7975e5c87d6306ecd6ae5 (diff) | |
download | freebsd-ports-gnome-ed205c832873da88d548de6d2652c3556b8568e0.tar.gz freebsd-ports-gnome-ed205c832873da88d548de6d2652c3556b8568e0.tar.zst freebsd-ports-gnome-ed205c832873da88d548de6d2652c3556b8568e0.zip |
Enable i386 build
PR: 215997
Submitted by: Iblis Lin <iblis@hs.ntnu.edu.tw> (maintainer)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/julia/Makefile | 8 | ||||
-rw-r--r-- | lang/julia/files/extra-patch-ui_Makefile | 11 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lang/julia/Makefile b/lang/julia/Makefile index dddee8c25cf4..14dc83d3cdd8 100644 --- a/lang/julia/Makefile +++ b/lang/julia/Makefile @@ -25,7 +25,7 @@ BUILD_DEPENDS= llvm-config38:devel/llvm38 \ 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 diff --git a/lang/julia/files/extra-patch-ui_Makefile b/lang/julia/files/extra-patch-ui_Makefile new file mode 100644 index 000000000000..2c3a834537dd --- /dev/null +++ b/lang/julia/files/extra-patch-ui_Makefile @@ -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 |