aboutsummaryrefslogtreecommitdiffstats
path: root/cad/gnucap/Makefile
blob: 0caa7d2bb8ea2007559c2b03fe1ab7d657ee0f79 (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
42
43
# ex:ts=8
# Ports collection makefile for:    gnucap
# Date created:         Feb 7, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   gnucap
PORTVERSION=    0.31
CATEGORIES= cad
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org

PORTCOMMENT=    The Gnu Circuit Analysis Package

USE_REINPLACE=  yes
USE_GMAKE=  yes
MAKE_ENV=   CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"

post-patch:
.for file in src/Make2.g++ src/Make.aux modelgen/Make.aux
    @${REINPLACE_CMD} -e "s|g\+\+|\$$\{CXX\}|g" \
        -e "s|-O2|\$$\{CXXFLAGS\}|g" ${WRKSRC}/${file}
.endfor

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/modelgen/O/modelgen ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/src/O/gnucap ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}/man
    ${INSTALL_DATA} ${WRKSRC}/doc/[a-z]* ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/man/man.pdf ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/man/man/*.html ${WRKSRC}/man/man/*.png \
        ${WRKSRC}/man/man/*.css ${DOCSDIR}/man
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/*.ckt ${WRKSRC}/examples/*.doc \
        ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>