blob: 3ce9a5ae5cd79e6da9a7184397663cef28372d6a (
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
|
# Created by: Jeffery Hansen <hansen@cmu.edu>
# $FreeBSD$
PORTNAME= tkgate
PORTVERSION= 1.8.7
PORTREVISION= 4
CATEGORIES= cad
MASTER_SITES= http://ark2.media.eng.hokudai.ac.jp/microprocessor/ \
http://www.info.kindai.ac.jp/LC/TkGate/ \
http://www.tkgate.org/downloads/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Tcl/Tk based digital circuit editor and simulator
LICENSE= GPLv2 # (or later)
USE_XORG= x11
USE_TCL_BUILD= yes
USE_TK_BUILD= yes
USE_TCL= yes
USE_TK= yes
USE_IMAKE= yes
MAKE_JOBS_SAFE= yes
PLIST_SUB= VERSION="${PORTVERSION}"
MAN1= gmac.1 tkgate.1
TKGATE_IPATH= -I${TK_INCLUDEDIR} -I${TCL_INCLUDEDIR}
TKGATE_LIBS= -ltk${TK_VER:S/.//} -ltcl${TCL_VER:S/.//} -lX11 -lm
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/X11R6|${LOCALBASE}|g ; \
s|dl socket nsl||g ; \
/^#define TKGATE_IPATH/s|-I.*|${TKGATE_IPATH}|g ; \
/^#define TKGATE_LIBS/s|-l.*|${TKGATE_LIBS}|g ; \
/^#define TKGATE_GCCFLAGS/s|-O||g ; \
/^#define TKGATE_CC/s|gcc|${CC}|g' ${WRKSRC}/config.h
.for file in tree.tcl elistbox.tcl
@${REINPLACE_CMD} -e \
's|^#!.*|#!${WISH}|g' ${WRKSRC}/scripts/${file}
.endfor
.include <bsd.port.mk>
|