Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2018 08:01:16 +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: r484592 - head/science/nwchem
Message-ID:  <201811100801.wAA81GU8054949@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Nov 10 08:01:15 2018
New Revision: 484592
URL: https://svnweb.freebsd.org/changeset/ports/484592

Log:
  science/nwchem: Fix build on 32-bit systems
  
  It requires perl on 32-bit systems, and requires gfortran command alias.

Modified:
  head/science/nwchem/Makefile

Modified: head/science/nwchem/Makefile
==============================================================================
--- head/science/nwchem/Makefile	Sat Nov 10 07:59:08 2018	(r484591)
+++ head/science/nwchem/Makefile	Sat Nov 10 08:01:15 2018	(r484592)
@@ -17,7 +17,7 @@ LIB_DEPENDS=	libblas.so:math/blas \
 		libga.so:devel/ga \
 		libmpich.so:net/mpich
 
-USES=		fortran gmake shebangfix
+USES=		fortran gmake ${ARCH_64BIT:S/^$/perl5/:S/64//} shebangfix
 SHEBANG_FILES=	../contrib/distro-tools/build_* ../contrib/add_*
 SHEBANG_GLOB=	*.sh
 USE_GITHUB=	yes
@@ -34,7 +34,7 @@ SUB_FILES=	nwchemrc
 
 WRKSRC_SUBDIR=	src
 
-BINARY_ALIAS=	gcc=${CC}
+BINARY_ALIAS=	gcc=${CC} gfortran=gfortran${GCC_DEFAULT}
 
 post-extract:
 	@${RM} ${WRKSRC}/atomscf/src.orig
@@ -49,7 +49,7 @@ pre-build:
 
 do-install:
 	${INSTALL_DATA} ${WRKDIR}/nwchemrc ${STAGEDIR}${PREFIX}/etc/nwchemrc
-	${INSTALL_PROGRAM} ${WRKSRC}/../bin/LINUX64/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/../bin/LINUX${ARCH_64BIT}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 	cd ${WRKSRC}/basis && ${COPYTREE_SHARE} libraries ${STAGEDIR}${DATADIR}
 	cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}
 	@${MKDIR} ${STAGEDIR}${DATADIR}/libraryps



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