freebsd-ports/devel/spin/Makefile
Michael Landin 9529c1de8d Update spin 4.0.3 -> 4.0.6
PR:		52819
Submitted by:	maintainer
Approved by:	roberto (mentor)
2003-06-04 14:43:05 +00:00

54 lines
1.7 KiB
Makefile

# Ports collection makefile for: spin
# Date created: Oct 23, 1997
# Whom: jhanna@home.com
#
# $FreeBSD$
#
PORTNAME= spin
PORTVERSION= 4.0.6
CATEGORIES= devel
MASTER_SITES= http://spinroot.com/spin/Src/ \
ftp://netlib.bell-labs.com/netlib/spin/ \
ftp://www.netlib.org/spin/
DISTFILES= spin${PORTVERSION:S/.//g}.tar.gz html.tar.gz
MAINTAINER= jhanna@shaw.ca
COMMENT= An on-the-fly verification system for asynchronous concurrent systems
DIST_SUBDIR= spin
WRKSRC= ${WRKDIR}/Src${PORTVERSION}
MAKEFILE= make_unix
ALL_TARGET= spin
USE_REINPLACE= yes
post-extract:
@cd ${WRKDIR}/Test && ${SH} ${WRKDIR}/Test/examples
post-patch:
@WISH=`(cd ${LOCALBASE}/bin ; ls wish8* ) | tail -1` ; \
if [ -z "$$WISH" ] ; then WISH=wish8.0 ; fi ; \
${REINPLACE_CMD} \
-e "s|%%LOCALBASE%%|${LOCALBASE}|g;" \
-e "s|%%WISH%%|$$WISH|g" ${WRKDIR}/Xspin4.0/xspin402.tcl
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/spin ${PREFIX}/bin
${RM} -f ${PREFIX}/bin/xspin
${INSTALL_SCRIPT} ${WRKDIR}/Xspin4.0/xspin402.tcl ${PREFIX}/bin/xspin
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/spin/Doc
${MKDIR} ${PREFIX}/share/doc/spin/Examples
${MKDIR} ${PREFIX}/share/doc/spin/HTML
${MKDIR} ${PREFIX}/share/doc/spin/Test
${INSTALL_DATA} ${WRKDIR}/Doc/* ${PREFIX}/share/doc/spin/Doc
${INSTALL_DATA} ${WRKDIR}/Test/ex.* ${PREFIX}/share/doc/spin/Examples
${INSTALL_DATA} ${WRKDIR}/HTML/* ${PREFIX}/share/doc/spin/HTML
.for i in README.tests abp erathostenes hello leader leader.ltl leader2 \
loops mobile1 mobile1.ltl mobile2 mobile2.ltl pathfinder peterson petersonN pftp priorities snoopy sort wordcount
${INSTALL_DATA} ${WRKDIR}/Test/$i ${PREFIX}/share/doc/spin/Test
.endfor
.endif
.include <bsd.port.mk>