1999-04-11 02:51:41 +00:00
|
|
|
# New ports collection makefile for: cup
|
|
|
|
# Version required: 0.10g
|
|
|
|
# Date created: 10 May 1998
|
|
|
|
# Whom: nordwick@xcf.berkeley.edu
|
|
|
|
#
|
1999-06-28 18:34:12 +00:00
|
|
|
# $Id: Makefile,v 1.3 1999/06/28 02:21:45 billf Exp $
|
1999-04-11 02:51:41 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= java_cup_v10g
|
|
|
|
PKGNAME= java_cup-10.g
|
1999-06-28 02:24:57 +00:00
|
|
|
CATEGORIES= java
|
1999-04-11 02:51:41 +00:00
|
|
|
MASTER_SITES= http://www.cs.princeton.edu/~appel/modern/java/CUP/
|
|
|
|
|
|
|
|
MAINTAINER= nordwick@xcf.berkeley.edu
|
|
|
|
|
|
|
|
JAVASUBDIR= jdk1.1.7
|
|
|
|
JAVADIR= ${PREFIX}/${JAVASUBDIR}
|
|
|
|
JAVALIBDIR= ${JAVADIR}/lib
|
|
|
|
|
1999-06-28 18:34:12 +00:00
|
|
|
BUILD_DEPENDS= ${JAVADIR}/bin/javac:${PORTSDIR}/java/jdk
|
|
|
|
RUN_DEPENDS= ${JAVADIR}/bin/java:${PORTSDIR}/java/jdk
|
1999-04-11 02:51:41 +00:00
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
|
|
|
PLIST_SUB= JAVASUBDIR=${JAVASUBDIR}
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
for JSRC in ${WRKSRC}/java_cup/*.java ${WRKSRC}/java_cup/runtime/*.java; \
|
|
|
|
do CLASSPATH=${WRKSRC} ${PREFIX}/jdk1.1.7/bin/javac $$JSRC; done
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${JAVALIBDIR}/java_cup
|
|
|
|
${MKDIR} ${JAVALIBDIR}/java_cup/runtime
|
|
|
|
${CP} ${WRKSRC}/java_cup/*.class ${JAVALIBDIR}/java_cup
|
|
|
|
${CP} ${WRKSRC}/java_cup/runtime/*.class ${JAVALIBDIR}/java_cup/runtime
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${JAVADIR}/cup
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/manual.html ${JAVADIR}/cup
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/README ${JAVADIR}/cup
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/LICENSE ${JAVADIR}/cup
|
|
|
|
@${ECHO_MSG} "Documentation installed in ${JAVADIR}/cup"
|
|
|
|
@${ECHO_MSG} " manual.html -- How to build a grammer."
|
|
|
|
@${ECHO_MSG} " README -- How to get it working."
|
|
|
|
@${ECHO_MSG} " LICENSE -- How not to get sued."
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|