diff options
Diffstat (limited to 'lang/julia/Makefile')
-rw-r--r-- | lang/julia/Makefile | 50 |
1 files changed, 23 insertions, 27 deletions
diff --git a/lang/julia/Makefile b/lang/julia/Makefile index aa7faa882449..0419db24ea29 100644 --- a/lang/julia/Makefile +++ b/lang/julia/Makefile @@ -1,7 +1,7 @@ PORTNAME= julia DISTVERSION= 1.8.3 DISTVERSIONSUFFIX= -full -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang math MASTER_SITES= https://github.com/JuliaLang/${PORTNAME}/releases/download/v${DISTVERSION}/ @@ -37,22 +37,11 @@ USES= gmake compiler:c++14-lang cpe fortran python perl5 \ CPE_VENDOR= julialang -BINARY_ALIAS= python3=${PYTHON_CMD} gfortran=gfortran${_GCC_VER} USE_CXXSTD= c++14 USE_LDCONFIG= yes -CFLAGS+= -fpic SHEBANG_GLOB= *.sh -WRKSRC= ${WRKDIR}/julia-${DISTVERSION} - -ALL_TARGET= default -INSTALL_TARGET= install -TEST_TARGET= test - -PORTDOCS= html -PLIST_SUB= VERSION="${PORTVERSION:R}" - MAKE_ARGS+= NO_GIT=1 \ USE_BINARYBUILDER=0 \ prefix=${PREFIX} \ @@ -77,26 +66,33 @@ MAKE_ARGS+= NO_GIT=1 \ USE_SYSTEM_CSL=1 \ USE_SYSTEM_ZLIB=1 \ USE_SYSTEM_LIBUNWIND=1 +ALL_TARGET= default +INSTALL_TARGET= install +TEST_TARGET= test -OPTIONS_DEFINE= DEBUG DOCS NATIVE GPL_LIBS -OPTIONS_DEFAULT= DOCS GPL_LIBS +CFLAGS+= -fpic + +BINARY_ALIAS= python3=${PYTHON_CMD} gfortran=gfortran${_GCC_VER} + +WRKSRC= ${WRKDIR}/julia-${DISTVERSION} + +PLIST_SUB= VERSION="${PORTVERSION:R}" +PORTDOCS= html + +OPTIONS_DEFINE= DEBUG DOCS NATIVE +OPTIONS_DEFAULT= DOCS OPTIONS_SUB= yes + +NATIVE_DESC= Build with native CPU JIT tuning +NATIVE_MAKE_ARGS= JULIA_CPU_TARGET=native + DEBUG_MAKE_ARGS= FORCE_ASSERTIONS=1 \ ALL_TARGET=all \ BUNDLE_DEBUG_LIBS=1 DOCS_VARS= INSTALL_TARGET+=install-docs -GPL_LIBS_DESC= Build with GPL library suitesparse -GPL_LIBS_LIB_DEPENDS= libspqr.so:math/suitesparse-spqr \ - libumfpack.so:math/suitesparse-umfpack -GPL_LIBS_MAKE_ARGS= USE_SYSTEM_LIBSUITESPARSE=1 \ - USE_GPL_LIBS=1 - -NATIVE_DESC= Build with native CPU JIT tuning -NATIVE_MAKE_ARGS= JULIA_CPU_TARGET=native - post-patch: echo "override TAGGED_RELEASE_BANNER=\"FreeBSD port lang/${PORTNAME} build\"" >> ${WRKSRC}/Make.user # unset ARCH for auto-detection @@ -122,15 +118,12 @@ pre-install: post-install: # clean up for Pkg3.jl .for file in .codecov.yml .travis.yml appveyor.yml bors.toml .gitignore source-extracted *.orig - ${FIND} ${STAGEDIR}${PREFIX}/share/julia/ -name ${file} -delete + ${FIND} ${STAGEDIR}${PREFIX}/share/julia/ -name "${file}" -delete .endfor .for dir in Statistics SuiteSparse ArgTools Pkg Downloads LibCURL NetworkOptions Tar ${RM} -fr ${STAGEDIR}${PREFIX}/share/julia/stdlib/v${PORTVERSION:R}/${dir}/.github/ .endfor -post-install-DOCS-off: - ${RM} -r ${STAGEDIR}${PREFIX}/${INSTALLDIR}/share/doc - post-install-DEBUG-off: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/julia* ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libjulia.so* @@ -138,4 +131,7 @@ post-install-DEBUG-off: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/julia/${bin} .endfor +post-install-DOCS-off: + ${RM} -r ${STAGEDIR}${PREFIX}/${INSTALLDIR}/share/doc + .include <bsd.port.mk> |