2006-04-24 19:53:14 +00:00
|
|
|
# New ports collection makefile for: hutiter
|
|
|
|
# Date created: 5 Jan 2006
|
|
|
|
# Whom: Pedro Giffuni <giffunip@asme.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= hutiter
|
2007-10-29 10:24:32 +00:00
|
|
|
PORTVERSION= 5.4.0
|
2010-09-15 18:35:24 +00:00
|
|
|
PORTREVISION= 4
|
2006-04-24 19:53:14 +00:00
|
|
|
CATEGORIES= science
|
2011-02-28 13:46:36 +00:00
|
|
|
MASTER_SITES= http://www.nic.funet.fi/index/files/index/elmer/src/old/ \
|
|
|
|
http://www.bezopasnik.org/unix/ports/distfiles/
|
2006-04-24 19:53:14 +00:00
|
|
|
PKGNAMEPREFIX= elmer-
|
|
|
|
|
2009-11-27 22:52:30 +00:00
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
2006-04-24 19:53:14 +00:00
|
|
|
COMMENT= HUTIter library for use in the ELMER FEM package
|
|
|
|
|
2007-01-10 03:39:15 +00:00
|
|
|
LIB_DEPENDS= arpack.1:${PORTSDIR}/math/arpack
|
2007-01-16 02:15:13 +00:00
|
|
|
|
2007-07-15 16:12:19 +00:00
|
|
|
USE_FORTRAN= yes
|
|
|
|
|
2007-01-16 02:15:13 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-11-22 11:14:10 +00:00
|
|
|
.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
|
2007-01-10 03:39:15 +00:00
|
|
|
WITH_ATLAS= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_ATLAS)
|
|
|
|
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
|
2011-11-22 11:14:10 +00:00
|
|
|
BLAS= -lf77blas
|
|
|
|
LAPACK= -lalapack -lcblas
|
2007-01-10 03:39:15 +00:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
|
|
|
|
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
|
|
|
|
BLAS= -lblas
|
|
|
|
LAPACK= -llapack
|
|
|
|
.endif
|
2006-04-24 19:53:14 +00:00
|
|
|
|
2007-01-10 13:06:53 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|' -e 's|%%FC%%|${FC}|' ${WRKSRC}/configure.in
|
|
|
|
|
2006-04-24 19:53:14 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2006-04-24 19:53:14 +00:00
|
|
|
ALL_TARGET=
|
|
|
|
|
|
|
|
PLIST_FILES= include/huti_defs.h include/huti_fdefs.h lib/libhuti.a
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
FFLAGS+= -fPIC
|
2006-04-28 22:36:48 +00:00
|
|
|
|
2006-04-24 19:53:14 +00:00
|
|
|
post-configure:
|
2006-04-28 22:36:48 +00:00
|
|
|
@${REINPLACE_CMD} -e 's+-O +-O -fPIC +g;' ${WRKSRC}/src/Makefile
|
2006-04-24 19:53:14 +00:00
|
|
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|