svn commit: r490766 - head/science/octopus

Yuri Victorovich yuri at FreeBSD.org
Sun Jan 20 01:04:41 UTC 2019


Author: yuri
Date: Sun Jan 20 01:04:39 2019
New Revision: 490766
URL: https://svnweb.freebsd.org/changeset/ports/490766

Log:
  science/octopus: Unbundle spglib; Add OPENMP option that makes it parallelized by default

Modified:
  head/science/octopus/Makefile
  head/science/octopus/pkg-plist

Modified: head/science/octopus/Makefile
==============================================================================
--- head/science/octopus/Makefile	Sun Jan 20 00:07:28 2019	(r490765)
+++ head/science/octopus/Makefile	Sun Jan 20 01:04:39 2019	(r490766)
@@ -2,6 +2,7 @@
 
 PORTNAME=	octopus
 DISTVERSION=	8.3
+PORTREVISION=	1
 CATEGORIES=	science
 MASTER_SITES=	http://www.tddft.org/programs/${PORTNAME}/download/${DISTVERSION}/
 
@@ -21,6 +22,7 @@ LIB_DEPENDS=	libarpack.so:math/arpack-ng \
 		liblapack.so:math/lapack \
 		libnlopt.so:math/nlopt \
 		libpng16.so:graphics/png \
+		libsymspg.so:science/spglib \
 		libtiff.so:graphics/tiff \
 		libwebp.so:graphics/webp \
 		libxc.so:science/libxc
@@ -31,6 +33,14 @@ CONFIGURE_SHELL=	${PREFIX}/bin/bash
 USE_CXXSTD=	c++11
 
 FCFLAGS+=	-I${LOCALBASE}/include -ffree-line-length-none
+
+OPTIONS_DEFINE=			OPENMP
+OPTIONS_DEFAULT=		OPENMP
+OPENMP_CONFIGURE_ENABLE=	openmp
+
+post-extract: # unbundle spglib, see https://gitlab.com/octopus-code/octopus/issues/124
+	@${RM} -r ${WRKSRC}/external_libs/spglib-*
+	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} 's|$$(top_builddir)/external_libs/spglib-1\.9\.9/src/libsymspg\.a|${LOCALBASE}/lib/libsymspg.so|'
 
 post-stage: # https://gitlab.com/octopus-code/octopus/issues/108
 	@${RM} ${STAGEDIR}${PREFIX}/include/yaml.h

Modified: head/science/octopus/pkg-plist
==============================================================================
--- head/science/octopus/pkg-plist	Sun Jan 20 00:07:28 2019	(r490765)
+++ head/science/octopus/pkg-plist	Sun Jan 20 01:04:39 2019	(r490766)
@@ -25,26 +25,6 @@ bin/oct-xyz-anim
 bin/octopus
 bin/octopus_mpi
 include/liboct_parser.h
-include/spglib/arithmetic.h
-include/spglib/cell.h
-include/spglib/debug.h
-include/spglib/delaunay.h
-include/spglib/hall_symbol.h
-include/spglib/kgrid.h
-include/spglib/kpoint.h
-include/spglib/mathfunc.h
-include/spglib/niggli.h
-include/spglib/pointgroup.h
-include/spglib/primitive.h
-include/spglib/refinement.h
-include/spglib/site_symmetry.h
-include/spglib/sitesym_database.h
-include/spglib/spacegroup.h
-include/spglib/spg_database.h
-include/spglib/spglib.h
-include/spglib/spin.h
-include/spglib/symmetry.h
-include/spglib/version.h
 include/string_f.h
 man/man1/oct-atomic_occupations.1.gz
 man/man1/oct-casida_spectrum.1.gz


More information about the svn-ports-head mailing list