summaryrefslogtreecommitdiff
path: root/cad/tclspice/Makefile
blob: 095c22b3ab6f78c16343f23675ff83147a02b6ce (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
67
68
69
70
# New ports collection makefile for:	tclspice
# Date created:		2006-06-24
# Whom:			Stanislav Sedov <stas@fonon.realnet>
#
# $FreeBSD$
#

PORTNAME=	tclspice
PORTVERSION=	0.2.18
PORTREVISION=	6
CATEGORIES=	cad
MASTER_SITES=	SF/${PORTNAME}/OldFiles

MAINTAINER=	ssedov@mbsd.msk.ru
COMMENT=	Improved version on SPICE3 suite with TCL scripting features

BUILD_DEPENDS=	bltwish:${PORTSDIR}/x11-toolkits/blt \
		${LOCALBASE}/lib/libtclreadline.so:${PORTSDIR}/devel/tclreadline
RUN_DEPENDS=	bltwish:${PORTSDIR}/x11-toolkits/blt \
		${LOCALBASE}/lib/libtclreadline.so:${PORTSDIR}/devel/tclreadline

BROKEN=		does not compile

WRKSRC=		${WRKDIR}/${PORTNAME}
USE_AUTOTOOLS=	aclocal:19 automake:19 autoconf:267 libtool:22
AUTOMAKE_ARGS=	-c -a
USE_GMAKE=	yes
ALL_TARGET=	tcl
INSTALL_TARGET=	install-tcl
USE_LDCONFIG=	yes

SUB_FILES=	pkg-message

OPTIONS=	EXPERIMENTAL "Enable experimental features" on \
		EXAMPLES "Install sample scripts" on

CONFIGURE_ARGS=	--with-tcl=${LOCALBASE}/lib/tcl8.4
CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include ${CFLAGS} -fPIC" \
		LDFLAGS="-L${LOCALBASE}/lib -ltcl84 -lBLT24"
ACLOCAL_ARGS=	--acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal

WISH=		${LOCALBASE}/bin/wish8.4

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_EXPERIMENTAL)
CONFIGURE_ARGS+=	--enable-experimental
.endif

.if !defined(WITHOUT_EXAMPLES)
PLIST_SUB+=	EXAMPLES=""
.else
PLIST_SUB+=	EXAMPLES="@comment "
.endif

post-patch:
.for FILE in spicewish tcl/plot.tcl tcl/vector_test.tcl
	@${REINPLACE_CMD} -e 's|%%WISH%%|${WISH}|g' ${WRKSRC}/src/${FILE}
.endfor

post-install:
.if !defined(WITHOUT_EXAMPLES)
	@${MKDIR} ${EXAMPLESDIR}
.for FILE in README example.cir plot.tcl vector_test.tcl
	@${INSTALL_DATA} ${WRKSRC}/src/tcl/${FILE} ${EXAMPLESDIR}
.endfor
	@${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.post.mk>