aboutsummaryrefslogtreecommitdiffstats
path: root/science/fasthenry/Makefile
blob: 7ba7693aeabc873f80aed60f5338a2d3833b2890 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    FastHenry
# Date created:     5 Jan 2006
# Whom:         Pedro Giffuni <giffunip@asme.org>
#
# $FreeBSD$
#

PORTNAME=   fasthenry
DISTVERSION=    ${P_VERSION}wr
CATEGORIES= science cad
MASTER_SITES=   ftp://ftp.srware.com/pub/   \
        http://www.wrcad.com/ftp/pub/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A multipole-accelerated inductance analysis program

P_VERSION=  3.0

HAS_CONFIGURE=  yes
CONFIGURE_SCRIPT=   config

post-patch:
    @${REINPLACE_CMD} -e 's,CFLAGS =, CFLAGS +=,' \
        ${WRKSRC}/src/fasthenry/Makefile.default \
        ${WRKSRC}/src/zbuf/Makefile.default

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/bin/fasthenry ${PREFIX}/bin/
    @${INSTALL_PROGRAM} ${WRKSRC}/bin/zbuf ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${CAT} ${WRKSRC}/README ${WRKSRC}/README.mit > ${DOCSDIR}/readme
    ${CAT} ${WRKSRC}/doc/manual_*.ps > ${DOCSDIR}/manual.ps
    ${CAT} ${WRKSRC}/doc/nonuniform_manual_*.ps > ${DOCSDIR}/nonuniform_manual.ps
    ${INSTALL_DATA} ${WRKSRC}/doc/ms_thesis.ps ${DOCSDIR}
    ${GZIP_CMD} ${DOCSDIR}/*
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>