From e17c85302c7629da2391aa8fde405b14eb0f6003 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Tue, 21 Jan 2003 02:53:49 +0000 Subject: New port: devel/antlr ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing C++ or Java actions. PR: ports/40238 Submitted by: Geoffrey Mainland --- devel/antlr/Makefile | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 devel/antlr/Makefile (limited to 'devel/antlr/Makefile') diff --git a/devel/antlr/Makefile b/devel/antlr/Makefile new file mode 100644 index 000000000000..4a99559c77ff --- /dev/null +++ b/devel/antlr/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: antlr +# Date created: 5 July 2002 +# Whom: Geoffrey Mainland +# +# $FreeBSD$ +# + +PORTNAME= antlr +PORTVERSION= 2.7.1 +CATEGORIES= devel java +MASTER_SITES= http://www.ANTLR.org/nirvana/ +DISTNAME= antlr-${PORTVERSION} +DIST_SUBDIR= antlr +EXTRACT_ONLY= antlr-${PORTVERSION}.tar.gz + +MAINTAINER= mainland@apeiron.net + +BUILD_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper +RUN_DEPENDS= ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper + +USE_GMAKE= yes + +.if defined(WITH_PARSEVIEW) +DISTFILES+= ParseView.zip +BUILD_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip + +PLIST_SUB+= PARSEVIEW="" +.else +PLIST_SUB+= PARSEVIEW="@comment " +.endif + +ALL_TARGET= antlr + +.include + +.if !exists(${DISTDIR}/${DIST_SUBDIR}/antlr-${PORTVERSION}${EXTRACT_SUFX}) +IGNORE= You must manually fetch the source distribution (antlr-${PORTVERSION}${EXTRACT_SUFX}) from http://www.jguru.com/jguru/download/view.jsp?EID=201927 (registration required), place it in ${DISTDIR}/${DIST_SUBDIR} and then run make again +.endif + +.if defined(WITH_PARSEVIEW) +post-extract: + (cd ${WRKSRC} && unzip -o ${DISTDIR}/${DIST_SUBDIR}/ParseView.zip) +.endif + +post-configure: + (cd ${WRKSRC}/lib/cpp && ./configure --prefix=${PREFIX}) + +do-build: + (cd ${WRKSRC}/lib/cpp && ${GMAKE}) + +do-install: + @${SED} "s|%%ANTLR_JAR_PATH%%|${PREFIX}/share/antlr|" ${FILESDIR}/antlr.sh >${WRKDIR}/antlr.sh + @${MKDIR} ${PREFIX}/share/antlr + @${INSTALL_SCRIPT} ${WRKDIR}/antlr.sh ${PREFIX}/bin/antlr + (cd ${WRKSRC}/lib/cpp && ${GMAKE} install) + (cd ${WRKSRC} && (${TAR} cf - antlr doc examples/cpp examples/java | ${TAR} xf - -C ${PREFIX}/share/antlr)) + +.include -- cgit v1.2.3