2003-12-07 03:13:41 +00:00
|
|
|
# New ports collection makefile for: FreeFem++
|
|
|
|
# Date created: 17 October 2003
|
|
|
|
# Whom: thierry@pompo.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= freefem++
|
2004-05-06 21:45:22 +00:00
|
|
|
PORTVERSION= 1.40
|
2003-12-07 03:13:41 +00:00
|
|
|
CATEGORIES= math science
|
2004-01-11 17:23:36 +00:00
|
|
|
MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/Gamma/freefem/ \
|
|
|
|
http://mule.ann.jussieu.fr/~hecht/ftp/freefem/
|
2003-12-07 03:13:41 +00:00
|
|
|
DISTNAME= FreeFem++v${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= An implementation of a language dedicated to the finite element method
|
|
|
|
|
|
|
|
LIB_DEPENDS= atlas.1:${PORTSDIR}/math/atlas
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/ARPACK++:${PORTSDIR}/math/arpack++
|
|
|
|
|
2003-12-16 22:52:53 +00:00
|
|
|
RESTRICTED= No resale or commercial use
|
|
|
|
|
2003-12-07 03:13:41 +00:00
|
|
|
USE_XLIB= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
MAKE_ENV= CXX=${CXX} HOSTTYPE=${HOSTTYPE}
|
|
|
|
|
|
|
|
DOCS= BUGS COPYRIGHT HISTORY README DOC/manual.pdf
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-01-23 23:08:22 +00:00
|
|
|
.if ${OSVERSION} < 501103
|
|
|
|
USE_GCC= 3.2
|
|
|
|
.endif
|
|
|
|
|
2003-12-07 03:13:41 +00:00
|
|
|
HOSTTYPE!= ${UNAME} -s
|
|
|
|
|
2004-05-06 21:45:22 +00:00
|
|
|
pre-configure:
|
2003-12-07 03:13:41 +00:00
|
|
|
@${MV} ${WRKSRC}/src/Makefile-linux ${WRKSRC}/src/Makefile-${HOSTTYPE}
|
|
|
|
@${MV} ${WRKSRC}/src/Makefile-linux.orig ${WRKSRC}/src/Makefile-linux
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/FreeFem++ ${PREFIX}/bin/FreeFem++-nw
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for doc in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
2004-01-11 17:23:36 +00:00
|
|
|
.for direx in "" -bug -eigen -load -mpi -tutorial
|
2003-12-07 03:13:41 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}/${direx:S/-//}
|
|
|
|
@for sample in `${LS} ${WRKSRC}/examples++${direx}` ; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples++${direx}/$$sample \
|
|
|
|
${EXAMPLESDIR}/${direx:S/-//} ; \
|
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
|
|
test: install
|
|
|
|
# Gnuplot needed! Click on the picture to end a set.
|
|
|
|
.for direx in - -eigen -tutorial
|
|
|
|
(cd ${EXAMPLESDIR}/${direx:S/-//} ; \
|
|
|
|
${PREFIX}/bin/FreeFem++ all.edp)
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|