1997-09-16 07:05:00 +00:00
|
|
|
# New ports collection makefile for: femlab
|
|
|
|
# Date created: 19 June 1997
|
|
|
|
# Whom: Pedro Giffuni
|
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1997-09-16 07:05:00 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= femlab
|
|
|
|
PORTVERSION= 1.1
|
2003-11-08 09:19:07 +00:00
|
|
|
CATEGORIES= math science
|
2003-10-28 07:33:12 +00:00
|
|
|
# mastersite disappeared in April 2000
|
|
|
|
MASTER_SITES= # ftp://ftp.md.chalmers.se/pub/Femlab/
|
2000-09-25 12:21:43 +00:00
|
|
|
DISTFILES= femlab-2d-v${PORTVERSION}.tar.gz
|
1997-09-16 07:05:00 +00:00
|
|
|
|
2001-03-21 22:44:00 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= Interactive program for solving partial differential equations in 2D
|
1997-09-16 07:05:00 +00:00
|
|
|
|
2000-04-20 20:41:11 +00:00
|
|
|
BUILD_DEPENDS= ${X11BASE}/lib/libsx.a:${PORTSDIR}/x11/libsx
|
1997-09-16 07:05:00 +00:00
|
|
|
|
2002-09-01 16:07:59 +00:00
|
|
|
USE_REINPLACE= yes
|
1998-08-05 09:31:52 +00:00
|
|
|
USE_X_PREFIX= yes
|
1997-09-16 07:05:00 +00:00
|
|
|
|
|
|
|
FEMLAB_HOME= ${PREFIX}/lib/X11/femlab
|
|
|
|
|
2002-03-31 02:27:33 +00:00
|
|
|
pre-patch:
|
2002-09-01 16:07:59 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
|
2002-03-31 02:27:33 +00:00
|
|
|
${WRKSRC}/source/graph.c ${WRKSRC}/source/y.tab.c \
|
|
|
|
${WRKSRC}/source/newdata.c ${WRKSRC}/source/post.c \
|
|
|
|
${WRKSRC}/source/kraftwerk.c ${WRKSRC}/source/list.c \
|
|
|
|
${WRKSRC}/include/xv.h ${WRKSRC}/fsource/y.tab.c
|
|
|
|
|
1997-09-16 07:05:00 +00:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${FEMLAB_HOME}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/source/femlab ${FEMLAB_HOME}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fsource/meshgen ${FEMLAB_HOME}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/fsource/poisson ${FEMLAB_HOME}/bin
|
|
|
|
${MKDIR} ${FEMLAB_HOME}/config
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/config/modules ${FEMLAB_HOME}/config
|
|
|
|
${SED} -e "s|@@FEMLAB_HOME@@|${FEMLAB_HOME}|" <${FILESDIR}/femlab.sh >${PREFIX}/bin/femlab
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} +x ${PREFIX}/bin/femlab
|
1997-09-16 07:05:00 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2001-12-24 02:17:17 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/examples/femlab
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/*.fem ${PREFIX}/share/examples/femlab
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/manual.dvi ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/docs/manual.ps ${DOCSDIR}
|
1997-09-16 07:05:00 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|