diff --git a/devel/py-lief/Makefile b/devel/py-lief/Makefile index f848e0e0a02b..841090c967d5 100644 --- a/devel/py-lief/Makefile +++ b/devel/py-lief/Makefile @@ -1,25 +1,22 @@ PORTNAME= lief DISTVERSION= 0.12.3 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@nicandneal.net COMMENT= Library to instrument executable formats WWW= https://github.com/lief-project/lief LICENSE= APACHE20 -# Note: cmake is needed to build, but distutils is used directly. -# If USES= cmake is set, the build will not work. - USES= cmake:indirect python zip USE_PYTHON= concurrent distutils PY_VER= ${PYTHON_VER:S/.//} PLIST_SUB= PY_VER=${PY_VER} post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/lief.cpython-${PY_VER}.so .include diff --git a/java/openjfx14/Makefile b/java/openjfx14/Makefile index cb61a0f8389f..00c0a9f0a8e9 100644 --- a/java/openjfx14/Makefile +++ b/java/openjfx14/Makefile @@ -1,176 +1,176 @@ PORTNAME= openjfx DISTVERSION= 14.0.2.1+1 PORTREVISION= 15 CATEGORIES= java x11-toolkits devel MASTER_SITES= https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-core/7.7.1/:core \ https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-grouping/7.7.1/:grouping \ https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-queries/7.7.1/:queries \ https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-queryparser/7.7.1/:queryparser \ https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-sandbox/7.7.1/:sandbox \ https://repo1.maven.org/maven2/org/antlr/antlr4/4.7.2/:antlr PKGNAMESUFFIX= 14 DISTFILES= lucene-core-7.7.1.jar:core \ lucene-grouping-7.7.1.jar:grouping \ lucene-queries-7.7.1.jar:queries \ lucene-queryparser-7.7.1.jar:queryparser \ lucene-sandbox-7.7.1.jar:sandbox \ antlr4-4.7.2-complete.jar:antlr MAINTAINER= ports@FreeBSD.org COMMENT= JavaFX SDK overlay for OpenJDK 11 WWW= https://openjdk.java.net/projects/openjfx/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le BUILD_DEPENDS= zip:archivers/zip \ apache-ant>0:devel/apache-ant \ gradle62>=6.2:devel/gradle62 \ ${JAVALIBDIR}/junit.jar:java/junit LIB_DEPENDS= libasound.so:audio/alsa-lib \ libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 -USES= cmake:indirect gettext-runtime gl gnome jpeg localbase:ldflags ninja pkgconfig \ +USES= gettext-runtime gl gnome jpeg localbase:ldflags ninja pkgconfig \ sqlite xorg USE_GITHUB= yes GH_ACCOUNT= openjdk GH_PROJECT= jfx USE_GL= gl USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 gtk30 pango USE_JAVA= yes JAVA_VERSION= 11 USE_LDCONFIG= yes USE_XORG= x11 xtst xxf86vm CFLAGS+= -Wno-unused-command-line-argument \ -Wno-int-conversion PLIST_SUB= INSTALLDIR=${_INSTALLDIR} OPTIONS_DEFINE= MEDIA SWT TEST WEBKIT OPTIONS_DEFAULT= MEDIA WEBKIT OPTIONS_SUB= yes MEDIA_DESC= Media module SWT_DESC= SWT support MEDIA_LIB_DEPENDS= libavcodec.so.58:multimedia/ffmpeg4 \ libsndio.so:audio/sndio MEDIA_USES= gmake MEDIA_VARS= COMPILE_MEDIA=true SWT_BUILD_DEPENDS= swt>0:x11-toolkits/swt SWT_RUN_DEPENDS= swt>0:x11-toolkits/swt SWT_VARS= COMPILE_SWT=true TEST_USES= display:test TEST_VARS= AWT_TEST=true FULL_TEST=true # Gradle calls CMake during the build WEBKIT_IMPLIES= MEDIA WEBKIT_LIB_DEPENDS= libicui18n.so:devel/icu -WEBKIT_USES= bison gmake gperf perl5 python:build ruby:build +WEBKIT_USES= bison cmake:indirect gmake gperf perl5 python:build ruby:build WEBKIT_USE= GNOME=libxslt,libxml2 \ PERL5=build \ XORG=xcomposite,xdamage,xfixes,xrender,xt WEBKIT_VARS= COMPILE_WEBKIT=true # Move Gradle's home below ${WRKDIR} instead of using ${HOME}/.gradle _GRADLE_ENV= CC=${WRKDIR}/bin/ccwrapper \ CXX=${WRKDIR}/bin/cxxwrapper \ GRADLE_USER_HOME=${WRKDIR}/gradle-home \ JAVA_VERSION=${JAVA_VERSION} _GRADLE_RUN= ${SETENV} ${_GRADLE_ENV} gradle62 --no-daemon _INSTALLDIR= ${PREFIX}/${PKGBASE} .include .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) CFLAGS+= -Wno-error=incompatible-function-pointer-types .endif # Suppress errors with lld >= 17 due to undefined symbols. LDFLAGS+= -Wl,--undefined-version post-extract: ${MKDIR} ${WRKDIR}/jars .for f in core grouping queries queryparser sandbox ${CP} ${DISTDIR}/lucene-${f}-7.7.1.jar ${WRKDIR}/jars .endfor ${CP} ${DISTDIR}/antlr4-4.7.2-complete.jar ${WRKDIR}/jars # The BSD Makefiles for GStreamer-lite and Jfxmedia are based on the # Linux versions. Prepare the tree, so that we only see the changes # from Linux's Makefile in our own patches. pre-patch: @${CP} -r ${WRKSRC}/modules/javafx.media/src/main/native/jfxmedia/projects/linux \ ${WRKSRC}/modules/javafx.media/src/main/native/jfxmedia/projects/bsd @${CP} -r ${WRKSRC}/modules/javafx.media/src/main/native/gstreamer/projects/linux \ ${WRKSRC}/modules/javafx.media/src/main/native/gstreamer/projects/bsd post-patch: @${MKDIR} ${WRKDIR}/bin @${PRINTF} '#!/bin/sh\nexport CCACHE_DIR=${CCACHE_DIR}\nexec ${CCACHE_BIN} ${CC} ${CFLAGS} ${LDFLAGS} "$$@"\n' > ${WRKDIR}/bin/ccwrapper @${PRINTF} '#!/bin/sh\nexport CCACHE_DIR=${CCACHE_DIR}\nexec ${CCACHE_BIN} ${CXX} ${CXXFLAGS} ${LDFLAGS} "$$@"\n' > ${WRKDIR}/bin/cxxwrapper @${CHMOD} +x ${WRKDIR}/bin/ccwrapper ${WRKDIR}/bin/cxxwrapper @${REINPLACE_CMD} -e 's|gcc|${WRKDIR}/bin/ccwrapper|g' \ -e 's|g\+\+|${WRKDIR}/bin/cxxwrapper|g' \ ${WRKSRC}/buildSrc/bsd.gradle # Add a *BSD native audio sink to GStreamer-lite instead of using the # bundled ALSA sink. Currently we add an sndio sink, but this is an extension # point for eventually adding an OSS backend (or others) as an option as well. # If you add a new one make sure it registers itself as "bsdaudiosink" as defined # in modules/media/src/main/native/jfxmedia/platform/gstreamer/GstPipelineFactory.cpp @${MKDIR} ${WRKSRC}/modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-base/ext/bsdaudio @${CP} ${FILESDIR}/gstsndio.* ${FILESDIR}/sndiosink.* \ ${WRKSRC}/modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-base/ext/bsdaudio @cd ${WRKSRC}/modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-base/ext/bsdaudio && \ ${LN} -s gstsndio.c gstbsdaudio.c && \ ${LN} -s sndiosink.c bsdaudiosink.c # Pull Java dependencies from LOCALBASE @${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/build.gradle ${WRKSRC}/buildSrc/build.gradle # Remove bundled libraries. We use the system's versions instead. @cd ${WRKSRC}/modules/javafx.web/src/main/native/Source/ThirdParty && \ ${RM} -r icu libxml libxslt sqlite @${RM} -r ${WRKSRC}/modules/javafx.web/src/main/native/Source/WTF/icu @cd ${WRKSRC}/modules/javafx.media/src/main/native/gstreamer/3rd_party && \ ${RM} -r glib libffi # Environment variables gets lost so hardcode where we can find FFmpeg 4.x @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${PATCH_WRKSRC}/modules/javafx.media/src/main/native/gstreamer/projects/linux/avplugin/Makefile do-configure: @${MKDIR} ${WRKDIR}/gradle-home @${ECHO_CMD} "NUM_COMPILE_THREADS = ${MAKE_JOBS_NUMBER}" > ${WRKSRC}/gradle.properties @${ECHO_CMD} "JFX_DEPS_URL = ${WRKDIR}/jars" > ${WRKSRC}/gradle.properties .for prop in COMPILE_MEDIA COMPILE_WEBKIT AWT_TEST FULL_TEST @${ECHO_CMD} "${prop} = ${${prop}:Ufalse}" >> ${WRKSRC}/gradle.properties .endfor @${ECHO_CMD} "BSD.compileSWT = ${COMPILE_SWT:Ufalse};" >> ${WRKSRC}/buildSrc/bsd.gradle # the java doc are not installed on FreeBSD so exclude the javadoc task # as it'll fail otherwise do-build: @cd ${WRKSRC} && ${_GRADLE_RUN} zips --exclude-task javadoc # it's not recommended to install openjfx inside openjdk directory do-install: @${MKDIR} ${STAGEDIR}${_INSTALLDIR} \ ${STAGEDIR}${_INSTALLDIR}/lib \ ${STAGEDIR}${_INSTALLDIR}/jmods ${INSTALL_DATA} ${WRKSRC}/build/javafx-exports.zip ${STAGEDIR}${_INSTALLDIR} (cd ${WRKSRC}/build/artifacts/javafx-sdk-14.0.2.1/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${_INSTALLDIR}/lib) @${MV} ${STAGEDIR}${_INSTALLDIR}/lib/src.zip ${STAGEDIR}${_INSTALLDIR}/lib/javafx-src.zip (cd ${WRKSRC}/build/artifacts/javafx-jmods-14.0.2.1 && ${COPYTREE_SHARE} . ${STAGEDIR}${_INSTALLDIR}/jmods) @${FIND} ${STAGEDIR}${_INSTALLDIR}/lib -name '*.so' -exec ${STRIP_CMD} \{\} \; do-test-TEST-on: @cd ${WRKSRC} && ${_GRADLE_RUN} check test .include diff --git a/science/nwchem/Makefile b/science/nwchem/Makefile index 30056991fd8f..5356c3fb27be 100644 --- a/science/nwchem/Makefile +++ b/science/nwchem/Makefile @@ -1,114 +1,115 @@ PORTNAME= nwchem DISTVERSIONPREFIX= v DISTVERSION= 7.2.2 PORTREVISION= 1 DISTVERSIONSUFFIX= -release CATEGORIES= science MASTER_SITES= https://www.chemie.uni-bonn.de/pctc/mulliken-center/software/dft-d3/:dftd3 \ https://web.archive.org/web/20210527062154if_/https://www.chemie.uni-bonn.de/pctc/mulliken-center/software/dft-d3/:dft3 \ https://gitlab.com/libxc/libxc/-/archive/${LIBXC_VERSION}/:libxc DISTFILES= dftd3.tgz:dft3 \ libxc-${LIBXC_VERSION}.tar.gz:libxc DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} EXTRACT_ONLY= ${DISTNAME}.tar.gz MAINTAINER= yuri@FreeBSD.org COMMENT= High-performance computational chemistry software WWW= https://nwchemgit.github.io/ LICENSE= ECL20 LICENSE_NAME= Educational Community License (ECL) 2.0 LICENSE_FILE= ${WRKSRC}/../LICENSE.TXT LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept BROKEN_aarch64= fails to build: gfortran10: error: unrecognized command-line option '-m64' BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libblas.so:math/blas \ libga.so:devel/ga \ libhwloc.so:devel/hwloc2 RUN_DEPENDS= nwchem-data>0:science/nwchem-data TEST_DEPENDS= bash:shells/bash USES= cmake:indirect fortran gettext-runtime gmake perl5 pkgconfig USE_PERL5= build USE_GITHUB= yes GH_ACCOUNT= nwchemgit GH_TAGNAME= a83175e # hotfix/release-7-2-0 branch fixing extremely long compilation time with gmake-4.4.1 MAKEFILE= GNUmakefile ARCH_64BIT= ${ARCH:C/.*64.*/64/:S/${ARCH}//} MAKE_ARGS= NWCHEM_TOP=${WRKSRC}/.. NWCHEM_MODULES=all NWCHEM_LONG_PATHS=Y NWCHEM_TARGET=LINUX${ARCH_64BIT} USE_INTERNALBLAS=Y EXTERNAL_GA_PATH=${LOCALBASE} \ USE_64TO32=y SUB_FILES= nwchemrc WRKSRC_SUBDIR= src BINARY_ALIAS= gcc=${CC} gfortran=gfortran${GCC_DEFAULT} BINARY_ALIAS+= make=${GMAKE} # only for LIBXC PLIST_FILES= bin/nwchem etc/nwchemrc LIBXC_VERSION= 6.1.0 # from src/libext/libxc/build_libxc.sh OPTIONS_DEFINE= LIBXC PYTHON # more potential optional dependencies are listed in src/libext/GNUmakefile OPTIONS_DEFAULT= LIBXC PYTHON BLAS_SIZE_4 MPICH # the MPI default should be the same as for the MPI option in math/scalapack and devel/ga OPTIONS_RADIO= BLAS_SIZE MPI OPTIONS_RADIO_BLAS_SIZE= BLAS_SIZE_4 BLAS_SIZE_8 # should be the same choice as in devel/ga and math/blas or math/openblasblas OPTIONS_RADIO_MPI= NOMPI MPICH OPENMPI BLAS_SIZE_DESC= BLAS_SIZE value to use during build (should be same as in devel/ga) BLAS_SIZE_4_DESC= BLAS_SIZE=4 BLAS_SIZE_4_MAKE_ARGS= BLAS_SIZE=4 BLAS_SIZE_8_BROKEN= SEGVs on many examples, possibly due to the need to compile blas or openblas with the 8-byte-integers option BLAS_SIZE_8_DESC= BLAS_SIZE=8 BLAS_SIZE_8_MAKE_ARGS= BLAS_SIZE=8 NOMPI_DESC= MPI isn't used NOMPI_BROKEN= Fails to build without MPI MPICH_MAKE_ENV= USE_MPI=Y MPICH_LIB_DEPENDS= libmpich.so:net/mpich OPENMPI_MAKE_ENV= USE_MPI=Y PATH=${LOCALBASE}/mpi/openmpi/bin:$${PATH} # mpif90 in path determines which MPI library to use, see https://www.nwchem-sw.org/index-php/Compiling_NWChem.html#MPI_variables OPENMPI_BUILD_DEPENDS= openmpi>0:net/openmpi OPENMPI_RUN_DEPENDS= openmpi>0:net/openmpi OPENMPI_VARS= CONFLICTS_BUILD=mpich LIBXC_DESC= Use libxc +LIBXC_USES= cmake:indirect LIBXC_MAKE_ENV= USE_LIBXC=Y PYTHON_DESC= Enable Python syntax in input files PYTHON_USES= python PYTHON_MAKE_ENV= PYTHONVERSION=${PYTHON_VER} NWCHEM_MODULES="all python" post-extract: @${RM} ${WRKSRC}/atomscf/src.orig # symlink the downloaded dftd3.tgz @${LN} -s ${DISTDIR}/${DIST_SUBDIR}/dftd3.tgz ${WRKSRC}/nwpw/nwpwlib/nwpwxc/ post-extract-LIBXC-on: # symlink the downloaded libxc @${LN} -s ${DISTDIR}/${DIST_SUBDIR}/libxc-${LIBXC_VERSION}.tar.gz ${WRKSRC}/libext/libxc/ post-patch: @${REINPLACE_CMD} 's|nwchrc="/etc/nwchemrc"|nwchrc="${PREFIX}/etc/nwchemrc"|' ${WRKSRC}/util/util_nwchemrc.F pre-build: @cd ${WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} nwchem_config pre-build-BLAS_SIZE_4-on: @cd ${WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} 64_to_32 do-install: ${INSTALL_DATA} ${WRKDIR}/nwchemrc ${STAGEDIR}${PREFIX}/etc/nwchemrc ${INSTALL_PROGRAM} ${WRKSRC}/../bin/LINUX${ARCH_64BIT}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} do-test: @cd ${WRKSRC}/../QA && NWCHEM_TOP=${WRKSRC}/.. NWCHEM_TARGET=LINUX64 ./doqmtests.mpi .include