summaryrefslogtreecommitdiff
path: root/cad/gnucap/Makefile
blob: d0b84b3e536350138d6ad78d1c7874aa3f4cf8bd (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# ex:ts=8
# Ports collection makefile for:	gnucap
# Date created:			Feb 7, 2002
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	gnucap
PORTVERSION=	0.34
CATEGORIES=	cad
MASTER_SITES=	http://www.gnucap.org/ \
		http://www.geda.seul.org/dist/ \
		http://www.kettering.edu/~adavis/gnucap/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The Gnu Circuit Analysis Package

USE_REINPLACE=	yes
USE_GMAKE=	yes
HAS_CONFIGURE=	yes
MAKE_ARGS=	CCC="${CXX}" CCFLAGS="${CXXFLAGS}"

CFLAGS+=	-DUNIX -DNDEBUG -DNEEDS_IS_INF -DNEEDS_IS_NAN -I..

MAN1=		gnucap-ibis.1 gnucap.1 

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502126
BROKEN=		"Does not compile with gcc 3.4.2"
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|echo|true|g' ${WRKSRC}/src/configure

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ibis/O/gnucap-ibis ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/modelgen/O/gnucap-modelgen ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src/O/gnucap ${PREFIX}/bin
.for file in *.1
	${INSTALL_MAN} ${WRKSRC}/doc/${file} ${MANPREFIX}/man/man1
.endfor
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in acs-tutorial history relnotes.* whatisit
	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
	@${MKDIR} ${DOCSDIR}/man
.for file in *.pdf
	${INSTALL_DATA} ${WRKSRC}/man/${file} ${DOCSDIR}/man
.endfor
	@${MKDIR} ${DOCSDIR}/man/html
.for file in *.html
	${INSTALL_DATA} ${WRKSRC}/man/html/${file} ${DOCSDIR}/man/html
.endfor
	@${MKDIR} ${EXAMPLESDIR}
.for file in README runall *.ckt *.doc
	${INSTALL_DATA} ${WRKSRC}/examples/${file} ${EXAMPLESDIR}
.endfor
.endif

.include <bsd.port.post.mk>