Index: head/lang/julia/Makefile =================================================================== --- head/lang/julia/Makefile (revision 434935) +++ head/lang/julia/Makefile (revision 434936) @@ -1,95 +1,95 @@ # Created by: Iblis Lin # $FreeBSD$ PORTNAME= julia PORTVERSION= 0.5.0 DISTVERSIONSUFFIX= -full -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang math MASTER_SITES= https://github.com/JuliaLang/julia/releases/download/v${PORTVERSION}/ MAINTAINER= iblis@hs.ntnu.edu.tw COMMENT= Julia Language: A fresh approach to technical computing LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md LIB_DEPENDS= libunwind.so:devel/libunwind \ libutf8proc.so:textproc/utf8proc \ libopenblasp.so:math/openblas \ libgit2.so:devel/libgit2 \ libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libpcre2-8.so:devel/pcre2 \ libarpack.so:math/arpack-ng BUILD_DEPENDS= llvm-config38:devel/llvm38 \ pcre2-config:devel/pcre2 \ patchelf:sysutils/patchelf ONLY_FOR_ARCHS= amd64 i386 USES= gmake compiler:c++11-lib fortran USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} ALL_TARGET= default INSTALL_TARGET= install TEST_TARGET= test CXXFLAGS+= -stdlib=libc++ -std=c++11 MAKE_ARGS+= prefix=${PREFIX} JCXXFLAGS="${CXXFLAGS}" \ FORCE_ASSERTIONS=${FORCE_ASSERTIONS} \ USE_GPL_LIBS=${USE_GPL_LIBS} OPTIONS_DEFINE= EXAMPLES DEBUG DOCS GPL_LIBS DESKTOP NATIVE OPTIONS_SUB= yes DEBUG_VARS= FORCE_ASSERTIONS=1 \ ALL_TARGET=all PORTDOCS= html DOCS_VARS= INSTALL_TARGET+=install-docs PORTEXAMPLES= * EXAMPLES_VARS= INSTALL_TARGET+=install-examples GPL_LIBS_DESC= Build with GPL libs: FFTW and SUITESPARSE GPL_LIBS_LIB_DEPENDS= libfftw3.so:math/fftw3 \ libfftw3f.so:math/fftw3-float \ libumfpack.so:math/suitesparse GPL_LIBS_VARS= USE_GPL_LIBS=1 DESKTOP_DESC= Install icon, .desktop and appdata file DESKTOP_VARS= INSTALL_TARGET+=install-desktop \ INSTALLS_ICONS=yes .include 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 .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 ${WRKSRC}/check_openblas && ( \ echo "USE_BLAS64=1" >> ${WRKSRC}/Make.user \ ) || ( \ echo "USE_BLAS64=0" >> ${WRKSRC}/Make.user \ ) .include Index: head/lang/julia/files/patch-base_Terminals.jl =================================================================== --- head/lang/julia/files/patch-base_Terminals.jl (nonexistent) +++ head/lang/julia/files/patch-base_Terminals.jl (revision 434936) @@ -0,0 +1,11 @@ +--- base/Terminals.jl.orig 2017-02-19 14:49:03 UTC ++++ base/Terminals.jl +@@ -156,7 +156,7 @@ else + function hascolor(t::TTYTerminal) + startswith(t.term_type, "xterm") && return true + try +- return success(`tput setaf 0`) ++ return success(`tput AF 0`) + catch + return false + end Property changes on: head/lang/julia/files/patch-base_Terminals.jl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/lang/julia/files/patch-base_libdl.jl =================================================================== --- head/lang/julia/files/patch-base_libdl.jl (nonexistent) +++ head/lang/julia/files/patch-base_libdl.jl (revision 434936) @@ -0,0 +1,48 @@ +--- base/libdl.jl.orig 2016-09-20 02:54:21 UTC ++++ base/libdl.jl +@@ -198,6 +198,31 @@ if is_linux() + end + end # linux-only + ++if is_bsd() && !is_apple() ++ # DL_ITERATE_PHDR(3) on freebsd ++ immutable dl_phdr_info ++ # Base address of object ++ addr::Cuint ++ ++ # Null-terminated name of object ++ name::Ptr{UInt8} ++ ++ # Pointer to array of ELF program headers for this object ++ phdr::Ptr{Void} ++ ++ # Number of program headers for this object ++ phnum::Cshort ++ end ++ ++ function dl_phdr_info_callback(di::dl_phdr_info, size::Csize_t, dy_libs::Array{AbstractString,1}) ++ name = unsafe_string(di.name) ++ if !isempty(name) ++ push!(dy_libs, name) ++ end ++ return convert(Cint, 0)::Cint ++ end ++end # bsd family ++ + function dllist() + dynamic_libraries = Array{AbstractString}(0) + +@@ -221,6 +246,13 @@ function dllist() + ccall(:jl_dllist, Cint, (Any,), dynamic_libraries) + end + ++ @static if is_bsd() && !is_apple() ++ const callback = cfunction(dl_phdr_info_callback, Cint, ++ (Ref{dl_phdr_info}, Csize_t, Ref{Array{AbstractString,1}} )) ++ ccall(:dl_iterate_phdr, Cint, (Ptr{Void}, Ref{Array{AbstractString,1}}), callback, dynamic_libraries) ++ shift!(dynamic_libraries) ++ end ++ + return dynamic_libraries + end + Property changes on: head/lang/julia/files/patch-base_libdl.jl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/lang/julia/files/patch-base_mmap.jl =================================================================== --- head/lang/julia/files/patch-base_mmap.jl (nonexistent) +++ head/lang/julia/files/patch-base_mmap.jl (revision 434936) @@ -0,0 +1,11 @@ +--- base/mmap.jl.orig 2017-02-23 09:50:38 UTC ++++ base/mmap.jl +@@ -27,7 +27,7 @@ const PROT_READ = Cint(1) + const PROT_WRITE = Cint(2) + const MAP_SHARED = Cint(1) + const MAP_PRIVATE = Cint(2) +-const MAP_ANONYMOUS = Cint(is_apple() ? 0x1000 : 0x20) ++const MAP_ANONYMOUS = Cint(0x1000) + const F_GETFL = Cint(3) + + gethandle(io::IO) = fd(io) Property changes on: head/lang/julia/files/patch-base_mmap.jl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/lang/julia/files/patch-base_sharedarray.jl =================================================================== --- head/lang/julia/files/patch-base_sharedarray.jl (nonexistent) +++ head/lang/julia/files/patch-base_sharedarray.jl (revision 434936) @@ -0,0 +1,17 @@ +--- base/sharedarray.jl.orig 2017-02-23 09:55:38 UTC ++++ base/sharedarray.jl +@@ -477,13 +477,7 @@ complex(S1::SharedArray,S2::SharedArray) + + function print_shmem_limits(slen) + try +- if is_linux() +- pfx = "kernel" +- elseif is_apple() +- pfx = "kern.sysv" +- else +- return +- end ++ pfx = "kern.ipc" + + shmmax_MB = div(parse(Int, split(readstring(`sysctl $(pfx).shmmax`))[end]), 1024*1024) + page_size = parse(Int, split(readstring(`getconf PAGE_SIZE`))[end]) Property changes on: head/lang/julia/files/patch-base_sharedarray.jl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/lang/julia/files/patch-base_socket.jl =================================================================== --- head/lang/julia/files/patch-base_socket.jl (nonexistent) +++ head/lang/julia/files/patch-base_socket.jl (revision 434936) @@ -0,0 +1,11 @@ +--- base/socket.jl.orig 2017-02-24 09:57:14 UTC ++++ base/socket.jl +@@ -762,7 +762,7 @@ function getsockname(sock::Union{TCPServ + addrv4 = raddress[1:4] + naddr = ntoh(unsafe_load(Ptr{Cuint}(pointer(addrv4)), 1)) + addr = IPv4(naddr) +- elseif rfamily[] == @static is_windows() ? 23 : (@static is_apple() ? 30 : 10) # AF_INET6 ++ elseif rfamily[] == 28 # AF_INET6 + naddr = ntoh(unsafe_load(Ptr{UInt128}(pointer(raddress)), 1)) + addr = IPv6(naddr) + else Property changes on: head/lang/julia/files/patch-base_socket.jl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property