# New ports collection makefile for: antlr # Date created: 5 July 2002 # Whom: Geoffrey Mainland # # $FreeBSD$ # PORTNAME= antlr PORTVERSION= 2.7.6 PORTREVISION= 2 CATEGORIES= devel java MASTER_SITES= http://www.antlr.org/download/ MAINTAINER= ports@FreeBSD.org COMMENT= ANother Tool for Language Recognition RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper CONFLICTS= pccts-[0-9]* USE_GMAKE= yes USE_JAVA= yes JAVA_VERSION= 1.4+ OPTIONS= PYTHON "Include Python runtime support" off HAS_CONFIGURE= yes CONFIGURE_ENV= JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}" CLASSPATH="${PORT_CLASSPATH}" CONFIGURE_ARGS= --disable-csharp PORT_CLASSPATH= ${WRKSRC}/antlrall.jar:. EXAMPLES= cpp java .if !defined(NOPORTDOCS) PORTDOCS= ANTLRException.gif closure.gif cpp-runtime.html \ csharp-runtime.html err.html glossary.html hidden.stream.gif \ index.html inheritance.html j-guru-blue.jpg jguru-logo.gif \ lexer.html lexer.to.parser.tokens.gif logo.gif metalang.html \ optional.gif options.html posclosure.gif runtime.html sor.html \ stream.perspectives.gif stream.selector.gif \ stream.splitter.gif streams.html subrule.gif trees.html \ vocab.html .endif .include .if defined(WITH_PYTHON) USE_PYTHON= 2.2+ # we need to manually include this, because USE_PYTHON is defined # after including bsd.port.pre.mk .include "${PORTSDIR}/Mk/bsd.python.mk" PORTDOCS+= python-runtime.html ANTLR_PYTHON= ${WRKSRC}/lib/python PLIST_SUB+= WITH_PYTHON="" .else PLIST_SUB+= WITH_PYTHON="@comment " .endif post-extract: (cd ${WRKSRC} && ${CP} antlr.jar antlrall.jar) post-configure: ${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|' \ -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ -e 's|%%JAVA_VERSION%%|${JAVA_VERSION}|' ${FILESDIR}/antlr.sh > ${WRKDIR}/antlr.sh .if defined(WITH_PYTHON) (cd ${ANTLR_PYTHON} && ${PYTHON_CMD} setup.py config) .endif .if defined(WITH_BUILT_JAVA_LIB) pre-build: (cd ${WRKSRC} && ${JAVA} -classpath "${PORT_CLASSPATH}" antlr.build.Tool build) (cd ${WRKSRC} && ${JAVA} -classpath "${PORT_CLASSPATH}" antlr.build.Tool jar) .endif .if defined(WITH_PYTHON) post-build: (cd ${ANTLR_PYTHON} && ${PYTHON_CMD} setup.py build && \ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${ANTLR_PYTHON}) .endif do-install: @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..." @${MKDIR} ${JAVAJARDIR} @${INSTALL_DATA} ${WRKSRC}/antlr.jar ${JAVAJARDIR}/${PORTNAME}.jar @${ECHO_MSG} " [ DONE ]" @${ECHO_MSG} -n ">> Installing antlr script as ${PREFIX}/bin/${PORTNAME}..." @${INSTALL_SCRIPT} ${WRKDIR}/antlr.sh ${PREFIX}/bin/antlr @${ECHO_MSG} " [ DONE ]" @${ECHO_MSG} ">> Installing native files..." @(cd ${WRKSRC}/lib/cpp && ${GMAKE} install) @${ECHO_MSG} " [ DONE ]" .if defined(WITH_PYTHON) @${ECHO_MSG} -n ">> Installing Python runtime files..." @(cd ${ANTLR_PYTHON} && ${PYTHON_CMD} setup.py install) @${ECHO_MSG} " [ DONE ]" .endif .if !defined(NOPORTDOCS) @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." @${MKDIR} ${DOCSDIR} @cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ @${ECHO_MSG} " [ DONE ]" .endif .include dabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Remove more tags from pkg-descr files fo the form:dougb2011-10-241-3/+0
* - Get Rid MD5 supportmiwi2011-03-201-1/+0
* Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-1/+0
* Remove USE_REINPLACE from all categories starting with Nedwin2006-05-121-1/+0
* Update to 0.17:vd2006-02-212-5/+4
* Add SHA256 to my ports.vd2006-01-231-0/+1
* Change my email address to the @FreeBSD onevd2006-01-201-1/+1
* [1]:jylefort2005-06-082-16/+24
* Drop maintership.krion2005-04-221-1/+1
* At Kris's request, back out the MACHINE_ARCH spelling correction untilobrien2005-04-121-1/+1
* Assist getting more ports working on AMD64 by obeying theobrien2005-04-111-1/+1
* - Utilize PLIST_FILESkrion2004-03-212-9/+7
* - Add more MASTER_SITESkrion2004-03-041-1/+2
* - Update to version 0.16krion2004-02-292-3/+3
* Say hello to the new "net-mgmt" category. There are probably morewollman2004-02-231-1/+1
* - SIZEifykrion2004-01-302-0/+2
* - Update to version 0.15krion2003-11-124-18/+20
* - Update to 0.14krion2003-09-242-2/+2
* Change my mail to @FreeBSD.orgkrion2003-07-221-1/+1
* Update to 0.13lioux2003-06-122-5/+8