science/wannier90: Update 2.1.0 -> 3.0.0

The project moved to GitHub.
This commit is contained in:
Yuri Victorovich 2019-08-04 04:09:32 +00:00
parent 4ae932b073
commit 3b466c657d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=508049
3 changed files with 16 additions and 24 deletions

View file

@ -1,10 +1,9 @@
# $FreeBSD$
PORTNAME= wannier90
DISTVERSION= 2.1.0
PORTREVISION= 3
DISTVERSIONPREFIX= v
DISTVERSION= 3.0.0
CATEGORIES= science
MASTER_SITES= http://www.wannier.org/code/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Maximally-localized Wannier functions (MLWFs) and Wannier90
@ -16,6 +15,8 @@ LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack
USES= fortran gmake
USE_GITHUB= yes
GH_ACCOUNT= wannier-developers
USE_LDCONFIG= yes
MAKE_ARGS= FCOPTS="-fPIC -O3"
@ -33,6 +34,6 @@ do-install:
.for p in wannier90.x postw90.x w90chk2chk.x
${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin/${p}
.endfor
${INSTALL_LIB} ${WRKSRC}/libwannier.so ${STAGEDIR}${PREFIX}/lib
${INSTALL_LIB} ${WRKSRC}/src/obj/libwannier.so ${STAGEDIR}${PREFIX}/lib
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1535941251
SHA256 (wannier90-2.1.0.tar.gz) = ee90108d4bc4aa6a1cf16d72abebcb3087cf6c1007d22dda269eb7e7076bddca
SIZE (wannier90-2.1.0.tar.gz) = 57264711
TIMESTAMP = 1564890210
SHA256 (wannier-developers-wannier90-v3.0.0_GH0.tar.gz) = f196e441dcd7b67159a1d09d2d7de2893b011a9f03aab6b30c4703ecbf20fe5b
SIZE (wannier-developers-wannier90-v3.0.0_GH0.tar.gz) = 71943515

View file

@ -1,20 +1,11 @@
--- src/Makefile.2.orig 2017-01-11 22:15:31 UTC
--- src/Makefile.2.orig 2019-02-27 14:28:29 UTC
+++ src/Makefile.2
@@ -12,7 +12,7 @@ OBJS2 = wannier_lib.o
OBJS_POST = ws_distance.o parameters.o kmesh.o io.o comms.o utility.o get_oper.o constants.o \
postw90_common.o wan_ham.o spin.o dos.o berry.o kpath.o kslice.o boltzwann.o geninterp.o
@@ -69,7 +69,7 @@ libs: $(LIBRARY)
dynlibs: $(DYNLIBRARY)
-LIBRARY = ../../libwannier.a
+LIBRARY = ../../libwannier.so
$(LIBRARY): $(OBJS) $(OBJSLIB)
- $(AR) $(ARFLAGS) $(LIBRARY) $(OBJSLIB) $(OBJS)
+ $(CC) $(LDFLAGS) -shared -o libwannier.so -Wl,-soname,libwannier.so $(OBJSLIB) $(OBJS)
POSTDIR = ../postw90/
@@ -74,7 +74,7 @@ endif
libs: $(LIBRARY)
$(LIBRARY): $(OBJS) $(OBJS2)
- $(AR) $(ARFLAGS) $(LIBRARY) $(OBJS2) $(OBJS)
+ $(CC) $(LDFLAGS) -shared -o $(LIBRARY) -Wl,-soname,libwannier.so $(OBJS2) $(OBJS)
clean:
rm -f *.o *.mod *.MOD *.obj
$(DYNLIBRARY): $(OBJS) $(OBJSLIB)
echo $(COMPILER)