summaryrefslogtreecommitdiff
path: root/math/femlab/Makefile
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1997-09-16 07:05:00 +0000
committerThomas Gellekum <tg@FreeBSD.org>1997-09-16 07:05:00 +0000
commit2b4ca0d2c493fa49191bd6a96d4ce3880702ac47 (patch)
tree1acb4fc95232361269c533f809f15af6917b1806 /math/femlab/Makefile
parentUpgrade, 3.0pl56 -> 3.0pl58. (diff)
Import of femlab port. femlab solves PDEs in 2D using the
finite element method. PR: 4531 Submitted by: Pedro Giffuni <giffunip@asme.org>
Notes
Notes: svn path=/head/; revision=7925
Diffstat (limited to 'math/femlab/Makefile')
-rw-r--r--math/femlab/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/math/femlab/Makefile b/math/femlab/Makefile
new file mode 100644
index 000000000000..b7910210436a
--- /dev/null
+++ b/math/femlab/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: femlab
+# Version required: v1.1
+# Date created: 19 June 1997
+# Whom: Pedro Giffuni
+#
+# $Id: Makefile,v 1.3 1997/01/19 02:47:27 obrien Exp $
+#
+
+DISTNAME= femlab-2d-v1.1
+PKGNAME= femlab-1.1
+CATEGORIES= math cad
+MASTER_SITES= ftp://ftp.md.chalmers.se/pub/Femlab/ \
+ ftp://ftp.ifs.hr/pub/SciUtil/
+
+MAINTAINER= giffunip@asme.org
+
+BUILD_DEPENDS= ${PREFIX}/lib/libsx.a:${PORTSDIR}/X11/libsx
+
+WRKSRC= ${WRKDIR}/${PKGNAME}
+USE_X11= yes
+
+FEMLAB_HOME= ${PREFIX}/lib/X11/femlab
+
+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
+ chmod +x ${PREFIX}/bin/femlab
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/examples/femlab
+ ${INSTALL_MAN} ${WRKSRC}/examples/*.fem ${PREFIX}/share/examples/femlab
+ ${MKDIR} ${PREFIX}/share/doc/femlab
+ ${INSTALL_MAN} ${WRKSRC}/docs/manual.dvi ${PREFIX}/share/doc/femlab
+ ${INSTALL_MAN} ${WRKSRC}/docs/manual.ps ${PREFIX}/share/doc/femlab
+.endif
+
+.include <bsd.port.mk>