1997-09-16 07:05:00 +00:00
|
|
|
# New ports collection makefile for: femlab
|
|
|
|
# Version required: v1.1
|
|
|
|
# Date created: 19 June 1997
|
|
|
|
# Whom: Pedro Giffuni
|
|
|
|
#
|
1998-08-05 09:31:52 +00:00
|
|
|
# $Id: Makefile,v 1.2 1997/09/17 06:29:25 asami Exp $
|
1997-09-16 07:05:00 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
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
|
|
|
|
|
1997-09-17 06:29:25 +00:00
|
|
|
BUILD_DEPENDS= ${PREFIX}/lib/libsx.a:${PORTSDIR}/x11/libsx
|
1997-09-16 07:05:00 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
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
|
|
|
|
|
|
|
|
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>
|