2001-02-07 14:51:16 +00:00
|
|
|
# ex:ts=8
|
1997-07-01 07:48:26 +00:00
|
|
|
# New ports collection makefile for: pccts
|
|
|
|
# Date created: 22 June 1997
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1997-07-01 07:48:26 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 21:30:15 +00:00
|
|
|
PORTNAME= pccts
|
2002-05-28 00:50:54 +00:00
|
|
|
PORTVERSION= 1.33.33
|
1997-07-01 07:48:26 +00:00
|
|
|
CATEGORIES= devel
|
1999-07-05 02:42:32 +00:00
|
|
|
MASTER_SITES= http://www.polhode.com/
|
2001-11-06 12:02:27 +00:00
|
|
|
DISTNAME= pccts${PORTVERSION:R:S/.//}mr${PORTVERSION:E}
|
1997-07-01 07:48:26 +00:00
|
|
|
|
2001-08-22 17:28:52 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= The Purdue Compiler Construction Tool Set
|
1997-07-01 07:48:26 +00:00
|
|
|
|
1999-07-05 02:42:32 +00:00
|
|
|
USE_ZIP= yes
|
|
|
|
WRKSRC= ${WRKDIR}/pccts
|
1997-07-01 07:48:26 +00:00
|
|
|
ALL_TARGET=
|
1999-07-05 02:42:32 +00:00
|
|
|
MAKEFILE= makefile
|
2001-08-30 18:19:02 +00:00
|
|
|
MAKE_ENV= COPT="${CFLAGS}"
|
2003-10-15 12:29:10 +00:00
|
|
|
USE_REINPLACE= yes
|
1999-07-05 02:42:32 +00:00
|
|
|
|
1999-08-12 18:22:56 +00:00
|
|
|
MAN1= antlr.1 dlg.1
|
1997-07-01 07:48:26 +00:00
|
|
|
|
2003-10-15 12:29:10 +00:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|<varargs.h>|<stdarg.h>|g'
|
|
|
|
|
1997-07-01 07:48:26 +00:00
|
|
|
do-install:
|
1999-07-05 02:42:32 +00:00
|
|
|
@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/antlr ${PREFIX}/bin
|
|
|
|
@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/dlg ${PREFIX}/bin
|
|
|
|
@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/genmk ${PREFIX}/bin
|
|
|
|
@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/sor ${PREFIX}/bin
|
1999-08-12 18:22:56 +00:00
|
|
|
@ ${INSTALL_MAN} ${WRKSRC}/antlr/antlr.1 ${PREFIX}/man/man1
|
|
|
|
@ ${INSTALL_MAN} ${WRKSRC}/dlg/dlg.1 ${PREFIX}/man/man1
|
1997-07-01 07:48:26 +00:00
|
|
|
@ ${MKDIR} ${PREFIX}/include/pccts
|
|
|
|
.for file in ast charptr
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/h/${file}.c ${PREFIX}/include/pccts/${file}.c
|
|
|
|
.endfor
|
2001-08-22 17:28:52 +00:00
|
|
|
.for file in AParser ASTBase ATokenBuffer BufFileInput DLexerBase PCCTSAST slist
|
1997-07-01 07:48:26 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/h/${file}.cpp ${PREFIX}/include/pccts/${file}.cpp
|
|
|
|
.endfor
|
2001-08-22 17:28:52 +00:00
|
|
|
.for file in AParser ASTBase ATokPtr ATokPtrImpl AToken ATokenBuffer ATokenStream BufFileInput DLG_stream_input DLexer DLexerBase PBlackBox PCCTSAST SList antlr ast charbuf charptr config dlgauto dlgdef err int pccts_assert pccts_iostream pccts_istream pccts_setjmp pccts_stdarg pccts_stdio pccts_stdlib pccts_string pcctscfg
|
1997-07-01 07:48:26 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/h/${file}.h ${PREFIX}/include/pccts/${file}.h
|
|
|
|
.endfor
|
|
|
|
@ ${MKDIR} ${PREFIX}/share/examples/pccts
|
1999-04-20 02:05:25 +00:00
|
|
|
.for dir in 1 2 3 4 5 6 7 8 9 10 11 12 13
|
1997-07-01 07:48:26 +00:00
|
|
|
@ ${MKDIR} ${PREFIX}/share/examples/pccts/${dir}
|
|
|
|
.endfor
|
|
|
|
.for file in makefile 1/makefile 1/test.g 2/MyLexer.cpp 2/MyLexer.h 2/makefile 2/test.g 3/MyLexer.cpp 3/MyLexer.h 3/makefile 3/mytokens.h 3/test.g 4/makefile 4/mytokens.h 4/test.g 5/input.h 5/makefile 5/test.g 6/file1 6/file2 6/main.cpp 6/makefile 6/makefile2 6/test.g 6/test2.g 7/makefile 7/test.g 8/main.cpp 8/makefile 8/test.g 9/makefile 9/test.g 10/makefile 10/test.g 11/input.h 11/makefile 11/test.g 12/makefile 12/test.g 13/makefile 13/test.g
|
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/testcpp/${file} ${PREFIX}/share/examples/pccts/${file}
|
|
|
|
.endfor
|
1999-07-05 02:42:32 +00:00
|
|
|
|
|
|
|
post-install:
|
1998-11-21 20:04:34 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@ ${MKDIR} ${PREFIX}/share/doc/pccts
|
2001-08-30 18:19:02 +00:00
|
|
|
.for file in CHANGES_FROM_131.txt CHANGES_FROM_133.txt CHANGES_FROM_133_BEFORE_MR13.txt KNOWN_PROBLEMS.txt README RIGHTS history.ps history.txt
|
1998-11-21 20:04:34 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/pccts/${file}
|
|
|
|
.endfor
|
|
|
|
.endif
|
1997-07-01 07:48:26 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|