1997-09-16 03:05:00 -04:00
|
|
|
# New ports collection makefile for: femlab
|
|
|
|
# Date created: 19 June 1997
|
|
|
|
# Whom: Pedro Giffuni
|
|
|
|
#
|
1999-08-25 03:23:21 -04:00
|
|
|
# $FreeBSD$
|
1997-09-16 03:05:00 -04:00
|
|
|
#
|
|
|
|
|
2000-04-14 03:20:58 -04:00
|
|
|
PORTNAME= femlab
|
|
|
|
PORTVERSION= 1.1
|
1997-09-16 03:05:00 -04:00
|
|
|
CATEGORIES= math cad
|
|
|
|
MASTER_SITES= ftp://ftp.md.chalmers.se/pub/Femlab/ \
|
|
|
|
ftp://ftp.ifs.hr/pub/SciUtil/
|
2000-04-14 03:20:58 -04:00
|
|
|
DISTNAME= femlab-2d-v${PORTVERSION}
|
1997-09-16 03:05:00 -04:00
|
|
|
|
|
|
|
MAINTAINER= giffunip@asme.org
|
|
|
|
|
2000-04-20 16:41:11 -04:00
|
|
|
BUILD_DEPENDS= ${X11BASE}/lib/libsx.a:${PORTSDIR}/x11/libsx
|
1997-09-16 03:05:00 -04:00
|
|
|
|
2000-04-20 16:41:11 -04:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
1998-08-05 05:31:52 -04:00
|
|
|
USE_X_PREFIX= yes
|
1997-09-16 03:05:00 -04:00
|
|
|
|
|
|
|
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
|
1999-08-22 15:01:07 -04:00
|
|
|
${CHMOD} +x ${PREFIX}/bin/femlab
|
1997-09-16 03:05:00 -04:00
|
|
|
|
|
|
|
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>
|