1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/science/abinit/Makefile
Maho Nakata d70c806b84 Remove CONFIGURE_ENV
Submitted by:	gerald@
2009-01-11 23:16:11 +00:00

46 lines
1.0 KiB
Makefile

# New ports collection makefile for: abinit
# Date Created: 18 March 2004
# Whom: NAKATA Maho <maho@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= abinit
PORTVERSION= 5.2.4
PORTREVISION= 3
CATEGORIES= science
MASTER_SITES= ${MASTER_SITE_LOCAL:S|%SUBDIR%|maho/abinit|} \
ftp://ftp.abinit.org/pub/abinitio/ABINIT_v${PORTVERSION}/
MAINTAINER= maho@FreeBSD.org
COMMENT= Abinit calculates electronic structure of systems
USE_FORTRAN= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf:262
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
WITH_ATLAS= yes
.endif
.if defined(WITH_ATLAS)
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
BLAS= -lf77blas -latlas
LAPACK= -lalapack
.else
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
BLAS= -lblas
LAPACK= -llapack
.endif
pre-configure:
@(cd ${WRKSRC} && config/scripts/makemake)
test:
cd ${WRKSRC}/tests ; ${GMAKE} tests
.include <bsd.port.post.mk>