svn commit: r487699 - head/science/libghemical
Yuri Victorovich
yuri at FreeBSD.org
Mon Dec 17 17:51:23 UTC 2018
Author: yuri
Date: Mon Dec 17 17:51:21 2018
New Revision: 487699
URL: https://svnweb.freebsd.org/changeset/ports/487699
Log:
science/libghemical: fix build with GCC-based architectures
Some reformatting.
Also add USES=gl.
PR: 234101
Submitted by: Piotr Kubaj <pkubaj at anongoth.pl>
Modified:
head/science/libghemical/Makefile
Modified: head/science/libghemical/Makefile
==============================================================================
--- head/science/libghemical/Makefile Mon Dec 17 17:47:28 2018 (r487698)
+++ head/science/libghemical/Makefile Mon Dec 17 17:51:21 2018 (r487699)
@@ -23,7 +23,8 @@ LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack \
libmpqc.so:science/mpqc
-USES= fortran gettext gmake pathfix pkgconfig libtool
+USES= fortran gettext gl gmake libtool localbase pathfix pkgconfig
+USE_CXXSTD= c++98
USE_GL= gl
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
@@ -31,15 +32,11 @@ USE_LDCONFIG= yes
CONFIGURE_ENV= LD_PRELOAD=${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so # workaround: otherwise configure fails
CONFIGURE_ARGS+= --enable-mpqc
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -lSCbasis -lSCcints -lSCclass \
- -lSCcontainer -lSCdft -lSCgroup -lSCintv3 -lSCisosurf \
- -lSCkeyval -lSCmbpt -lSCmbptr12 -lSCmisc -lSCmolecule \
- -lSCoint3 -lSCoptimize -lSCoptions -lSCpsi -lSCref \
- -lSCrender -lSCscf -lSCscmat -lSCsolvent -lSCstate \
- -lSCsymmetry -lSCwfn \
- -lgfortran -lpthread -lblas -llapack
-CXXFLAGS+= -Wno-c++11-narrowing # fix errors like error: non-constant-expression cannot be narrowed from type 'double' to 'fGL'
+LDFLAGS+= -lSCbasis -lSCcints -lSCclass -lSCcontainer -lSCdft -lSCgroup \
+ -lSCintv3 -lSCisosurf -lSCkeyval -lSCmbpt -lSCmbptr12 -lSCmisc \
+ -lSCmolecule -lSCoint3 -lSCoptimize -lSCoptions -lSCpsi \
+ -lSCref -lSCrender -lSCscf -lSCscmat -lSCsolvent -lSCstate \
+ -lSCsymmetry -lSCwfn -lgfortran -lpthread -lblas -llapack
PLIST_SUB= LIBGHEMICAL_VERSION="${PORTVERSION}"
INSTALL_TARGET= install-strip
More information about the svn-ports-head
mailing list