summaryrefslogtreecommitdiffstats
path: root/cad/cider/Makefile
blob: d4ee86e029081bc7f4dbe143bea0f66d6250a425 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# New ports collection makefile for:	cider
# Version required:	1b1
# Date created:		1999-12-12
# Whom:			AMAKAWA Shuhei <amakawa@jp.FreeBSD.org>
#
# $FreeBSD$
#

DISTNAME=	cider1b1
PKGNAME=	cider-1b1
CATEGORIES=	cad
MASTER_SITES=	ftp://ic.eecs.berkeley.edu/pub/Cider/new/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	amakawa@jp.FreeBSD.org

WRKSRC=		${WRKDIR}/sim
USE_XLIB=	yes
MAN1=		sconvert.1 nutmeg.1 spice.1 cider.1
MAN3=		mfb.3
MAN5=		mfbcap.5
MLINKS=		spice.1 spice3.1

pre-patch:
	@${CP} -f ${WRKSRC}/spice/common/lib/helpdir/spice.txt ${WRKSRC}/cider/common/lib/helpdir/spice.txt

post-patch:
	@${LN} -fs ${WRKSRC}/spice/common/util/makelib.sh ${WRKSRC}/cider/common/util
	@${LN} -fs ${WRKSRC}/spice/common/src/lib/sparse/spdefs.h ${WRKSRC}/cider/common/src/include
	@${CP} -f ${FILESDIR}/Makefile.spice ${WRKSRC}/spice/common/Makefile
	@${CP} -f ${FILESDIR}/Makefile.cider ${WRKSRC}/cider/common/Makefile
	@${CP} -f ${FILESDIR}/FreeBSD ${WRKSRC}/spice/common/conf
	@${CP} -f ${FILESDIR}/FreeBSD ${WRKSRC}/cider/common/conf

do-build:
	@(cd ${WRKSRC}/spice/common && ${SETENV} ${MAKE_ENV} ${MAKE})
	@(cd ${WRKSRC}/cider/common && ${SETENV} ${MAKE_ENV} ${MAKE})

do-install:
	@(cd ${WRKSRC}/spice/common && ${SETENV} ${MAKE_ENV} ${MAKE} install)
	@(cd ${WRKSRC}/cider/common && ${SETENV} ${MAKE_ENV} ${MAKE} install)

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/examples/spice3
	@${INSTALL_DATA} ${WRKSRC}/spice/common/examples/*.cir ${PREFIX}/share/examples/spice3
	@${MKDIR} ${PREFIX}/share/examples/cider
	@${TAR} -cf - -C ${WRKSRC}/cider/common/examples . | ${TAR} -xf - -C ${PREFIX}/share/examples/cider
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/cider
	@${LN} -fs ${PREFIX}/share/spice3/scripts/spinit ${PREFIX}/share/cider/scripts
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud