summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-09-13 19:16:12 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-09-13 19:16:12 +0000
commit52d8ad5f01003127eefac1a6aca1e41524a31459 (patch)
tree41529d63bc18c137f5fda277087305fb991f9c0b
parentcheck_ssl_cert: update to 1.73.0 (diff)
science/dftbplus: Correct license; Correct patches
Port changes: * Change LICENSE to GPLv3: LGPL3+ combined with GPLv1+ yields GPLv3 * Remove some unnecessary patches, also correct patch, binaries don't change
Notes
Notes: svn path=/head/; revision=479690
-rw-r--r--science/dftbplus/Makefile3
-rw-r--r--science/dftbplus/files/patch-external_xmlf90_make.dpbuild11
-rw-r--r--science/dftbplus/files/patch-make.arch2
-rw-r--r--science/dftbplus/files/patch-make.config7
-rw-r--r--science/dftbplus/files/patch-makefile7
5 files changed, 4 insertions, 26 deletions
diff --git a/science/dftbplus/Makefile b/science/dftbplus/Makefile
index 58d631e49cff..0fbf93fa6b8d 100644
--- a/science/dftbplus/Makefile
+++ b/science/dftbplus/Makefile
@@ -8,8 +8,7 @@ CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
COMMENT= DFTB+: Package for performing fast atomistic simulations
-LICENSE= LGPL3+ GPLv1 # main code is under LGPL3+, the bundled dftd3-lib is under GPLv1
-LICENSE_COMB= multi
+LICENSE= GPLv3 # main code is under LGPL3+, the bundled dftd3-lib is under GPLv1+, this makes the result GPLv3 (based on https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility)
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack \
diff --git a/science/dftbplus/files/patch-external_xmlf90_make.dpbuild b/science/dftbplus/files/patch-external_xmlf90_make.dpbuild
deleted file mode 100644
index 2289825264ef..000000000000
--- a/science/dftbplus/files/patch-external_xmlf90_make.dpbuild
+++ /dev/null
@@ -1,11 +0,0 @@
---- external/xmlf90/make.dpbuild.orig 2018-09-12 21:14:34 UTC
-+++ external/xmlf90/make.dpbuild
-@@ -31,7 +31,7 @@ clean:
- rm -f *.o _mod_* *.mod
-
- %.o: %.f90
-- $(FXX) $(FXXOPT) -o $@ -c $<
-+ $(FXX) -c $(FXXOPT) -o $@ -c $<
-
- _mod_%:
- @[ -f $< ] && touch $@
diff --git a/science/dftbplus/files/patch-make.arch b/science/dftbplus/files/patch-make.arch
index 05185d952695..af1bcf7475a6 100644
--- a/science/dftbplus/files/patch-make.arch
+++ b/science/dftbplus/files/patch-make.arch
@@ -18,7 +18,7 @@
# ScaLAPACK
-SCALAPACKDIR = /usr/lib
-+SCALAPACKDIR = $(PREFIX)
++SCALAPACKDIR = $(PREFIX)/lib
LIB_SCALAPACK = -L$(SCALAPACKDIR) -lscalapack
# LAPACK/BLAS
diff --git a/science/dftbplus/files/patch-make.config b/science/dftbplus/files/patch-make.config
index 4df4180f73a3..4d1017f35573 100644
--- a/science/dftbplus/files/patch-make.config
+++ b/science/dftbplus/files/patch-make.config
@@ -1,6 +1,6 @@
--- make.config.orig 2018-08-17 17:13:08 UTC
+++ make.config
-@@ -55,12 +55,12 @@ COMPILE_DFTD3 := 1
+@@ -55,8 +55,8 @@ COMPILE_DFTD3 := 1
# Set the compile time include and the link time library options for
# dftd3-lib. Ignored if WITH_DFTD3 has been disabled or COMPILE_DFTD3 enabled.
@@ -11,8 +11,3 @@
# Link time library options for linking ARPACK. Ignored if WITH_ARPACK was
# disabled.
--ARPACK_LIBS := -larpack
-+ARPACK_LIBS := $(PREFIX)/lib/libarpack.so
-
- # Whether ARPACK depends on the external LAPACK and BLAS libraries
- ARPACK_NEEDS_LAPACK := 0
diff --git a/science/dftbplus/files/patch-makefile b/science/dftbplus/files/patch-makefile
index 54ac1675d032..db27c714534c 100644
--- a/science/dftbplus/files/patch-makefile
+++ b/science/dftbplus/files/patch-makefile
@@ -11,12 +11,7 @@
.PHONY: install install_misc install_all
install: install_dftb+ install_modes install_waveplot install_dptools
-@@ -123,11 +125,11 @@ install_misc_skderivs install_misc_slako
- ROOT=$(ROOT) BUILDROOT=$(BUILDDIR) install
-
-
--PYTHON := python
-+PYTHON ?= python
+@@ -127,7 +129,7 @@ PYTHON := python
.PHONY: install_dptools
install_dptools:
cd $(ROOT)/tools/dptools \