1998-12-12 22:17:48 +00:00
|
|
|
# Ports collection makefile for: spin
|
|
|
|
# Date created: Oct 23, 1997
|
|
|
|
# Whom: jhanna@home.com
|
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1998-12-12 22:17:48 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:20:58 +00:00
|
|
|
PORTNAME= spin
|
2003-08-08 22:03:49 +00:00
|
|
|
PORTVERSION= 4.0.7
|
2003-08-28 07:43:33 +00:00
|
|
|
PORTREVISION= 1
|
2002-06-11 19:31:07 +00:00
|
|
|
CATEGORIES= devel
|
2003-08-08 22:03:49 +00:00
|
|
|
MASTER_SITES= http://spinroot.com/spin/Src/
|
2003-08-28 07:43:33 +00:00
|
|
|
DISTFILES= spin${PORTVERSION:S/.//g}.tar.gz
|
1998-12-12 22:17:48 +00:00
|
|
|
|
2002-10-16 21:50:47 +00:00
|
|
|
MAINTAINER= jhanna@shaw.ca
|
2003-02-21 11:23:04 +00:00
|
|
|
COMMENT= An on-the-fly verification system for asynchronous concurrent systems
|
1998-12-12 22:17:48 +00:00
|
|
|
|
2003-08-08 22:03:49 +00:00
|
|
|
.if !defined(WITHOUT_XSPIN)
|
|
|
|
RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84
|
|
|
|
PLIST_SUB+= XSPIN=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= XSPIN="@comment "
|
|
|
|
.endif
|
2003-08-07 08:34:31 +00:00
|
|
|
|
1998-12-12 22:17:48 +00:00
|
|
|
DIST_SUBDIR= spin
|
2003-04-11 16:33:33 +00:00
|
|
|
WRKSRC= ${WRKDIR}/Src${PORTVERSION}
|
|
|
|
MAKEFILE= make_unix
|
1998-12-12 22:17:48 +00:00
|
|
|
ALL_TARGET= spin
|
2002-10-16 21:50:47 +00:00
|
|
|
USE_REINPLACE= yes
|
1998-12-12 22:17:48 +00:00
|
|
|
|
2003-08-08 22:03:49 +00:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Use WITHOUT_XSPIN=yes to suppress xspin (and TCL/Tk dependency)."
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
1998-12-12 22:17:48 +00:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKDIR}/Test && ${SH} ${WRKDIR}/Test/examples
|
|
|
|
|
2000-06-23 13:44:03 +00:00
|
|
|
post-patch:
|
2001-02-12 12:58:00 +00:00
|
|
|
@WISH=`(cd ${LOCALBASE}/bin ; ls wish8* ) | tail -1` ; \
|
|
|
|
if [ -z "$$WISH" ] ; then WISH=wish8.0 ; fi ; \
|
2002-10-16 21:50:47 +00:00
|
|
|
${REINPLACE_CMD} \
|
2001-02-12 12:58:00 +00:00
|
|
|
-e "s|%%LOCALBASE%%|${LOCALBASE}|g;" \
|
2003-08-08 22:03:49 +00:00
|
|
|
-e "s|%%WISH%%|$$WISH|g" ${WRKDIR}/Xspin4.0/xspin407.tcl
|
1998-12-12 22:17:48 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/spin ${PREFIX}/bin
|
2003-08-08 22:03:49 +00:00
|
|
|
.if !defined(WITHOUT_XSPIN)
|
1998-12-12 22:17:48 +00:00
|
|
|
${RM} -f ${PREFIX}/bin/xspin
|
2003-08-08 22:03:49 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/Xspin4.0/xspin407.tcl ${PREFIX}/bin/xspin
|
|
|
|
.endif
|
1998-12-12 22:17:48 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-08-08 22:03:49 +00:00
|
|
|
${MKDIR} ${DOCSDIR}/Doc
|
|
|
|
${MKDIR} ${DOCSDIR}/Examples
|
|
|
|
${MKDIR} ${DOCSDIR}/Test
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/Doc/* ${DOCSDIR}/Doc
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/Test/ex.* ${DOCSDIR}/Examples
|
|
|
|
.for i in README.tests abp eratosthenes hello leader leader.ltl leader2 \
|
2000-09-16 20:18:20 +00:00
|
|
|
loops mobile1 mobile1.ltl mobile2 mobile2.ltl pathfinder peterson petersonN pftp priorities snoopy sort wordcount
|
2003-08-08 22:03:49 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/Test/$i ${DOCSDIR}/Test
|
1998-12-12 22:17:48 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|