ports/java/java-cup/Makefile
Greg Lewis 5947382881 . Update to 10.k.
. Make this port act more like the other java ports.

The actual change is based on the followup submitted by Conor McDermottroe
plus some tweaks from the patch in the PR and myself.

PR:		63582
Submitted by:	Conor McDermottroe <ports@mcdermottroe.com>
                Matthew West <mwest@uct.ac.za>
Approved by:	maintainer timeout
2004-03-23 18:23:57 +00:00

47 lines
1.2 KiB
Makefile

# New ports collection makefile for: cup
# Date created: 10 May 1998
# Whom: nordwick@xcf.berkeley.edu
#
# $FreeBSD$
#
PORTNAME= java_cup
PORTVERSION= 10.k
CATEGORIES= java
MASTER_SITES= http://www.cs.princeton.edu/~appel/modern/java/CUP/
DISTNAME= ${PORTNAME}_v${PORTVERSION:S|.||}
MAINTAINER= nordwick@xcf.berkeley.edu
COMMENT= An LALR parser generator in Java
USE_JAVA= 1.1+
NEED_JAVAC= yes
NO_WRKSUBDIR= yes
PLIST_SUB= JAVAJARDIR=${JAVAJARDIR:S|^${PREFIX}/||} PORTNAME=${PORTNAME}
do-build:
${JAVAC} -classpath ${WRKSRC} ${WRKSRC}/java_cup/*.java \
${WRKSRC}/java_cup/runtime/*.java
cd ${WRKSRC} && \
${JAR} cf ${PORTNAME}.jar java_cup/*.class \
java_cup/runtime/*.class
do-install:
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.jar ${JAVAJARDIR}
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/manual.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/cup_logo.gif ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
@${ECHO_MSG} "Documentation installed in ${DOCSDIR}"
@${ECHO_MSG} " manual.html -- How to build a grammar."
@${ECHO_MSG} " README -- How to get it working."
@${ECHO_MSG} " LICENSE -- How not to get sued."
.endif
.include <bsd.port.mk>