summaryrefslogtreecommitdiffstats
path: root/devel/antlrworks/Makefile
blob: 3d3bd140c10e5ac8e9e957c652867c458804fbcd (plain)
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
# Created by: Matthias Sund <m.sund@arcor.de>
# $FreeBSD$

PORTNAME=	antlrworks
PORTVERSION=	1.4.2
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	devel java
MASTER_SITES=	http://www.antlr.org/download/
EXTRACT_SUFX=	.jar

MAINTAINER=	m.sund@arcor.de
COMMENT=	The ANTLR GUI Development Environment

NO_BUILD=	yes

USE_JAVA=	yes
JAVA_VERSION=	1.6+

DESKTOP_ENTRIES="ANTLRWorks" \
	"ANTLR GUI Development Environment" \
	"${PREFIX}/share/pixmaps/antlrworks.png" \
	"antlrworks" \
	"Development;Java;" \
	true

PLIST_FILES=	bin/antlrworks \
		${JAVAJARDIR:C,${PREFIX}/?,,}/${PORTNAME}.jar \
		share/pixmaps/antlrworks.png

do-install:
	${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|' \
	-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
	-e 's|%%PORTNAME%%|${PORTNAME}|' \
	-e 's|%%JAVA_VERSION%%|${JAVA_VERSION}|' ${FILESDIR}/antlrworks.sh > ${WRKDIR}/antlrworks.sh

	@${MKDIR} ${JAVAJARDIR}
	@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
	@${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${JAVAJARDIR}/${PORTNAME}.jar
	@${ECHO_MSG} " [ DONE ]"
	@${ECHO_MSG} -n ">> Installing antlrworks script as ${PREFIX}/bin/antlrworks..."
	@${INSTALL_SCRIPT} ${WRKDIR}/antlrworks.sh ${PREFIX}/bin/antlrworks
	@${ECHO_MSG} " [ DONE ]"
	@${MKDIR} ${PREFIX}/share/pixmaps
	@${INSTALL_DATA} ${WRKDIR}/icons/app_64x64.png ${PREFIX}/share/pixmaps/antlrworks.png

.include <bsd.port.mk>
OpenPOWER on IntegriCloud