blob: e5ae9b159f4c62224cc9ee23f68aa2e9af2d687f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# 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:
${SETENV} CLASSPATH=${WRKSRC} ${JAVAC} ${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>
|