From 545d3e66f2dfacea8737818ead8ffa608f5ca45a Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 17 Dec 2018 17:51:21 +0000 Subject: [PATCH] science/libghemical: fix build with GCC-based architectures Some reformatting. Also add USES=gl. PR: 234101 Submitted by: Piotr Kubaj --- science/libghemical/Makefile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/science/libghemical/Makefile b/science/libghemical/Makefile index 861732386ced..1ca71b066e45 100644 --- a/science/libghemical/Makefile +++ b/science/libghemical/Makefile @@ -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