freebsd-ports/cad/irsim/Makefile

65 lines
1.4 KiB
Makefile
Raw Normal View History

2012-12-11 13:40:42 +01:00
# Created by: swallace
1999-08-25 06:58:03 +02:00
# $FreeBSD$
1994-12-19 07:01:05 +01:00
PORTNAME= irsim
PORTVERSION= 9.7.81
CATEGORIES= cad
MASTER_SITES= http://opencircuitdesign.com/irsim/archive/
EXTRACT_SUFX= .tgz
MAINTAINER= danilogondolfo@gmail.com
COMMENT= Event-driven logic-level simulator for MOS circuis
LICENSE= GPLv2
2012-12-11 13:40:42 +01:00
OPTIONS_RADIO= INTERPRETER
OPTIONS_RADIO_INTERPRETER= SCHEME TCL
OPTIONS_DEFAULT= SCHEME
SCHEME_DESC= Scheme interpreter
TCL_DESC= Tcl interpreter
OPTIONS_SUB= yes
SCHEME_CONFIGURE_ON= --with-interpreter=scheme
TCL_CONFIGURE_ON= --with-interpreter=tcl --with-tcl=${TCL_LIBDIR} \
--with-tk=${TK_LIBDIR} --with-tclincls=${TCL_INCLUDEDIR} \
--with-tkincls=${TK_INCLUDEDIR} --with-tcllibs=${LOCALBASE}/lib \
--with-tklibs=${LOCALBASE}/lib
CONFIGURE_WRKSRC= ${WRKSRC}/scripts
USES= gmake
USE_XORG= x11
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= irsim.1
MAN3= irsim-analyzer.3
MAN5= netchange.5
1994-12-19 07:01:05 +01:00
NO_STAGE= yes
2012-06-01 15:18:21 +02:00
.include <bsd.port.options.mk>
2003-10-16 04:26:47 +02:00
2012-06-01 15:18:21 +02:00
.if ${PORT_OPTIONS:MTCL}
USE_TK_BUILD= yes
USE_TK= yes
PLIST_SUB+= NOTCL="@comment "
.else
WISH= ${FALSE}
PLIST_SUB+= NOTCL=""
.endif
2003-12-09 19:19:06 +01:00
.if empty(PORT_OPTIONS:MSCHEME) && empty(PORT_OPTIONS:MTCL)
CONFIGURE_ARGS+= --with-interpreter=no
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|FreeBSD-\*|*-*-freebsd*| ; \
s|wish |${WISH:T} | ; \
s|"-fpic"|"-fPIC"| ; \
/-l\/usr\/X11R6\/include/d' ${CONFIGURE_WRKSRC}/configure
2012-06-01 15:18:21 +02:00
.include <bsd.port.mk>