blob: 5a5c6898e15857ad7b75d5f2686320256acaedf3 (
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
|
# Ports collection makefile for: JavaCC
# Date Created: 6 May 2002
# Whom: Andy Gerweck <gerweck@yahoo.com>
#
# $FreeBSD$
#
PORTNAME= javacc
PORTVERSION= 4.0
PORTREVISION= 2
CATEGORIES= textproc java devel
MASTER_SITES= https://javacc.dev.java.net/files/documents/17/26783/
DISTNAME= ${PORTNAME}-${PORTVERSION}src
MAINTAINER= ports@FreeBSD.org
COMMENT= Java parser generator and lexical analyzer
DEPRECATED= No more public distfiles
EXPIRATION_DATE= 2011-09-01
USE_JAVA= yes
USE_ANT= yes
DISABLE_SIZE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
post-patch:
@for f in "${WRKSRC}/bin/j*"; do \
${REINPLACE_CMD} -e 's:`dirname \$$0`/lib:${JAVAJARDIR}:' $$f; \
done
do-install:
@${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/bin/lib/javacc.jar ${JAVAJARDIR}
(cd ${WRKSRC}/bin/ && ${INSTALL_SCRIPT} javacc jjdoc jjtree ${PREFIX}/bin/)
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/www/doc/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR})
.endif
.include <bsd.port.post.mk>
|