summaryrefslogtreecommitdiff
path: root/cad/gnucap/Makefile
blob: 00ab3004b42dc47c5eca430d4ec9ac2ce05ab7fa (plain)
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
# $NetBSD: Makefile,v 1.2 2002/03/29 02:24:42 dmcmahill Exp $
#

DISTNAME=	gnucap-0.31
CATEGORIES=	cad
MASTER_SITES=	${MASTER_SITE_GNU:=gnucap/}

MAINTAINER=	dmcmahill@netbsd.org
HOMEPAGE=	http://www.geda.seul.org/tools/acs/index.html
COMMENT=	general purpose circuit simulator

USE_GMAKE=	YES

do-build:
	cd ${WRKSRC}/modelgen && ${MAKE_PROGRAM} ${LOWER_OPSYS}
	cd ${WRKSRC}/src && ${MAKE_PROGRAM} ${LOWER_OPSYS}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/*/gnucap ${PREFIX}/bin/
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnucap
	${INSTALL_DATA} ${WRKSRC}/doc/acs-tutorial ${PREFIX}/share/doc/gnucap
	${INSTALL_DATA} ${WRKSRC}/man/man.pdf ${PREFIX}/share/doc/gnucap
	${INSTALL_DATA} ${WRKSRC}/doc/whatisit ${PREFIX}/share/doc/gnucap
	${INSTALL_DATA} ${WRKSRC}/man/man/* ${PREFIX}/share/doc/gnucap
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnucap
	${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/gnucap

test: build
	cd ${WRKSRC}/test && ./test ../src/*/gnucap "" 0001 == 2>&1 | \
		tee ${WRKDIR}/test.log

.include "../../mk/bsd.pkg.mk"