Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2018 17:51:22 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r487699 - head/science/libghemical
Message-ID:  <201812171751.wBHHpMqJ001836@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812171751.wBHHpMqJ001836>