blob: 7ea48b9e7de9be9efb2b74fcb509b091b8ee8733 (
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
47
48
49
50
51
52
53
54
55
56
57
|
# New ports collection makefile for: antlrworks
# Date created: December, 5th 2006
# Whom: Matthias Sund <m.sund@arcor.de>
#
# $FreeBSD$
PORTNAME= antlrworks
PORTVERSION= 1.1.7
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= devel java
MASTER_SITES= http://www.antlr.org/download/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= m.sund@arcor.de
COMMENT= The ANTLR GUI Development Environment
USE_ZIP= yes
EXTRACT_AFTER_ARGS= "-d${DISTNAME}"
ONLY_FOR_ARCHS= i386 amd64
USE_JAVA= yes
JAVA_VERSION= 1.5+
JAVA_OS= native
JAVA_RUN= yes
USE_ANT= yes
ALL_TARGET= build
PLIST_FILES= bin/antlrworks %%DATADIR%%/antlrworks.jar share/pixmaps/antlrworks.png
PLIST_DIRS= %%DATADIR%%
DESKTOP_ENTRIES="ANTLRWorks" \
"ANTLR GUI Development Environment" \
"antlrworks.png" \
"antlrworks" \
"Application;Development;" \
true
post-patch:
@${REINPLACE_CMD} -E \
-e 's|antlr-3.1|antlr-3.0.1|g' \
${WRKSRC}/build.properties
post-build:
@${ECHO_CMD} '#!/bin/sh' > ${WRKSRC}/antlrworks
@${ECHO_CMD} "exec java -Xmx400m -jar ${DATADIR}/antlrworks.jar" >> ${WRKSRC}/antlrworks
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/antlrworks ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/dist/antlrworks-${PORTVERSION}.jar ${DATADIR}/antlrworks.jar
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/src/aw/org/antlr/works/icons/app_32x32.png ${PREFIX}/share/pixmaps/antlrworks.png
.include <bsd.port.mk>
|