aboutsummaryrefslogtreecommitdiff
path: root/cad/irsim/Makefile
blob: 5890dd28e9683a23c4d884503961a2f7806c8e43 (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
64
65
66
# New ports collection makefile for:    irsim
# Date created:         18 Dec 1994
# Whom:                 swallace
#
# $FreeBSD$
#

PORTNAME=	irsim
PORTVERSION=	9.7.64
PORTREVISION=	1
CATEGORIES=	cad
MASTER_SITES=	http://opencircuitdesign.com/irsim/archive/
EXTRACT_SUFX=	.tgz

MAINTAINER=	stas@FreeBSD.org
COMMENT=	An event-driven logic-level simulator for MOS circuis

USE_XORG=	x11
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_WRKSRC=	${WRKSRC}/scripts/

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ENV+=	PIC_CFLAGS="-fpic" LDFLAGS="${LDFLAGS}" \
		PTHREAD_LIBS="${PTHREAD_LIBS}"

OPTIONS=	SCHEME	"Enable built-in Scheme interpreter" on \
		TCL	"Enable built-in  Tcl interpreter" off

MAN1=		irsim.1
MAN3=		irsim-analyzer.3
MAN5=		netchange.5

TK_VER=		8.4

.include <bsd.port.pre.mk>

.if defined(WITH_TCL) && !defined(WITHOUT_SCHEME)
IGNORE=		you should select only one interpreter
.elif !defined(WITH_TCL) && defined(WITHOUT_SCHEME)
IGNORE=		you should select at least one interpreter
.endif

.if defined(WITH_TCL)
LIB_DEPENDS+=	tk84.1:${PORTSDIR}/x11-toolkits/tk84
CONFIGURE_ARGS+=	--with-tcl=${LOCALBASE}/lib/tcl${TK_VER} \
			--with-tk=${LOCALBASE}/lib/tk${TK_VER} \
			--with-tcllibs=${LOCALBASE}/lib/ \
			--with-tklibs=${LOCALBASE}/lib/ \
			--with-tclincls=${LOCALBASE}/include/tcl${TK_VER} \
			--with-tkincls=${LOCALBASE}/include/tk${TK_VER} \
			--with-interpreter=tcl
PLIST_SUB+=	TCL=""
.else
PLIST_SUB+=	TCL="@comment "
.endif

.if !defined(WITHOUT_SCHEME)
CONFIGURE_ARGS+=	--with-interpreter=scheme
PLIST_SUB+=	SCHEME=""
.else
PLIST_SUB+=	SCHEME="@comment "
.endif

.include <bsd.port.post.mk>