Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= irsim |
8 |
PORTNAME= irsim |
9 |
PORTVERSION= 9.7.72 |
9 |
PORTVERSION= 9.7.74 |
10 |
PORTREVISION= 0 |
|
|
11 |
CATEGORIES= cad |
10 |
CATEGORIES= cad |
12 |
MASTER_SITES= http://opencircuitdesign.com/irsim/archive/ |
11 |
MASTER_SITES= http://opencircuitdesign.com/irsim/archive/ |
13 |
EXTRACT_SUFX= .tgz |
12 |
EXTRACT_SUFX= .tgz |
Lines 15-63
Link Here
|
15 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= An event-driven logic-level simulator for MOS circuis |
15 |
COMMENT= An event-driven logic-level simulator for MOS circuis |
17 |
|
16 |
|
|
|
17 |
LICENSE= GPLv2 |
18 |
|
19 |
OPTIONS_DEFINE= INTERPRETER |
20 |
OPTIONS_SINGLE= INTERPRETER |
21 |
OPTIONS_SINGLE_INTERPRETER= SCHEME TCL |
22 |
OPTIONS_DEFAULT= INTERPRETER SCHEME |
23 |
INTERPRETER_DESC= Enable built-in interpreter support |
24 |
SCHEME_DESC= Scheme interpreter |
25 |
TCL_DESC= Tcl interpreter |
26 |
|
27 |
CONFIGURE_WRKSRC= ${WRKSRC}/scripts |
28 |
|
18 |
USE_XORG= x11 |
29 |
USE_XORG= x11 |
19 |
USE_GMAKE= yes |
30 |
USE_GMAKE= yes |
20 |
GNU_CONFIGURE= yes |
31 |
GNU_CONFIGURE= yes |
21 |
CONFIGURE_WRKSRC= ${WRKSRC}/scripts/ |
32 |
MAKE_JOBS_SAFE= yes |
22 |
|
33 |
|
23 |
CFLAGS+= -I${LOCALBASE}/include |
34 |
CFLAGS+= -I${LOCALBASE}/include |
24 |
LDFLAGS+= -L${LOCALBASE}/lib |
35 |
LDFLAGS+= -L${LOCALBASE}/lib |
25 |
CONFIGURE_ENV+= PIC_CFLAGS="-fpic" \ |
|
|
26 |
PTHREAD_LIBS="${PTHREAD_LIBS}" |
27 |
|
28 |
OPTIONS_SINGLE= INTERPRETER |
29 |
OPTIONS_SINGLE_INTERPRETER= TCL SCHEME |
30 |
OPTIONS_DEFAULT= SCHEME |
31 |
SCHEME_DESC= Enable built-in Scheme interpreter |
32 |
TCL_DESC= Enable built-in Tcl interpreter |
33 |
|
36 |
|
34 |
MAN1= irsim.1 |
37 |
MAN1= irsim.1 |
35 |
MAN3= irsim-analyzer.3 |
38 |
MAN3= irsim-analyzer.3 |
36 |
MAN5= netchange.5 |
39 |
MAN5= netchange.5 |
37 |
|
40 |
|
38 |
TK_VER= 8.4 |
|
|
39 |
|
40 |
.include <bsd.port.options.mk> |
41 |
.include <bsd.port.options.mk> |
41 |
|
42 |
|
42 |
.if ${PORT_OPTIONS:MTCL} |
43 |
.if ${PORT_OPTIONS:MTCL} |
43 |
LIB_DEPENDS+= tk84.1:${PORTSDIR}/x11-toolkits/tk84 |
44 |
USE_TK_BUILD= yes |
44 |
CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl${TK_VER} \ |
45 |
USE_TK= yes |
45 |
--with-tk=${LOCALBASE}/lib/tk${TK_VER} \ |
46 |
CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} \ |
46 |
--with-tcllibs=${LOCALBASE}/lib/ \ |
47 |
--with-tk=${TK_LIBDIR} \ |
47 |
--with-tklibs=${LOCALBASE}/lib/ \ |
48 |
--with-tclincls=${TCL_INCLUDEDIR} \ |
48 |
--with-tclincls=${LOCALBASE}/include/tcl${TK_VER} \ |
49 |
--with-tkincls=${TK_INCLUDEDIR} \ |
49 |
--with-tkincls=${LOCALBASE}/include/tk${TK_VER} \ |
50 |
--with-tcllibs=${LOCALBASE}/lib \ |
|
|
51 |
--with-tklibs=${LOCALBASE}/lib \ |
50 |
--with-interpreter=tcl |
52 |
--with-interpreter=tcl |
51 |
PLIST_SUB+= TCL="" |
53 |
PLIST_SUB+= TCL="" NOTCL="@comment " |
52 |
.else |
54 |
.else |
53 |
PLIST_SUB+= TCL="@comment " |
55 |
WISH= ${FALSE} |
|
|
56 |
PLIST_SUB+= TCL="@comment " NOTCL="" |
54 |
.endif |
57 |
.endif |
55 |
|
58 |
|
56 |
.if ${PORT_OPTIONS:MSCHEME} |
59 |
.if ${PORT_OPTIONS:MSCHEME} |
57 |
CONFIGURE_ARGS+= --with-interpreter=scheme |
60 |
CONFIGURE_ARGS+= --with-interpreter=scheme |
58 |
PLIST_SUB+= SCHEME="" |
|
|
59 |
.else |
60 |
PLIST_SUB+= SCHEME="@comment " |
61 |
.endif |
61 |
.endif |
62 |
|
62 |
|
|
|
63 |
.if empty(PORT_OPTIONS:MSCHEME) && empty(PORT_OPTIONS:MTCL) |
64 |
CONFIGURE_ARGS+= --with-interpreter=no |
65 |
.endif |
66 |
|
67 |
post-patch: |
68 |
@${REINPLACE_CMD} -e \ |
69 |
's|FreeBSD-\*|*-*-freebsd*| ; \ |
70 |
s|wish |${WISH:T} | ; \ |
71 |
s|-lpthread|${PTHREAD_LIBS}| ; \ |
72 |
s|"-fpic"|"-fPIC"| ; \ |
73 |
/-l\/usr\/X11R6\/include/d' ${CONFIGURE_WRKSRC}/configure |
74 |
|
63 |
.include <bsd.port.mk> |
75 |
.include <bsd.port.mk> |