summaryrefslogtreecommitdiffstats
path: root/java/eclipse-ecj/Makefile
blob: 886cf167dff15989a38dcc29e65b3960187ba35a (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
# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD$

PORTNAME=	ecj
PORTVERSION=	4.4.2
CATEGORIES=	java devel
MASTER_SITES=	http://download.eclipse.org/eclipse/downloads/drops4/R-${PORTVERSION}-${DROPDATE}/
PKGNAMEPREFIX=	eclipse-
DISTNAME=	ecjsrc-${PORTVERSION}
EXTRACT_SUFX=	.jar

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Eclipse Java Compiler

LICENSE=	EPL

EXTRACT_CMD=	${TAR}
EXTRACT_BEFORE_ARGS=	xf
EXTRACT_AFTER_ARGS=	-C ${WRKSRC}

USE_ANT=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.6+
SUB_FILES=	ecj.sh
SUB_LIST=	PORTVERSION=${PORTVERSION}
NO_WRKSUBDIR=	yes

DROPDATE=	201502041700
PLIST_FILES=	bin/${PORTNAME}.sh \
		%%JAVAJARDIR%%/${PORTNAME}-${PORTVERSION}.jar

do-install:
	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}.jar
	${INSTALL_SCRIPT} ${WRKDIR}/ecj.sh ${STAGEDIR}/${PREFIX}/bin

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