blob: 10593ae0043c6e757b55eab8f2ec913fe04c3d55 (
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
48
|
# New ports collection makefile for: gj-jdk12
# Date created: 2003-05-26
# Whom: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
#
# $FreeBSD$
#
PORTNAME= gj
PORTVERSION= 0.6m
CATEGORIES= java
MASTER_SITES= http://www.cis.unisa.edu.au/~pizza/gj/Distribution/
PKGNAMESUFFIX= -${JDKSUBDIR}
DISTNAME= gjdist${GJDIST}
MAINTAINER= vs@FreeBSD.org
COMMENT= Extension of the Java programming language that supports generic types
WRKSRC= ${WRKDIR}/gj
NO_BUILD= YES
USE_JAVA= yes
.if defined(GJ_WITH_JDK11)
GJDIST= 1.1
BINSUFX= 11
JAVA_VERSION= 1.1
.else
GJDIST= 1.2
JAVA_VERSION= 1.2+
.endif
JDKSUBDIR= jdk${GJDIST}
PLIST_SUB+= JDKSUBDIR=${JDKSUBDIR}
PLIST_FILES?= bin/gjc bin/gjcr bin/gj
do-install:
${MKDIR} ${PREFIX}/lib/gj/${JDKSUBDIR}
${TAR} cf - -C ${WRKSRC}/classes . | ${TAR} xf - -C ${PREFIX}/lib/gj/${JDKSUBDIR}
${SED} -e s/@JDKSUBDIR@/${JDKSUBDIR}/ \
-e 's+@PREFIX@+'${PREFIX}'+' \
-e 's+@JAVA_HOME@+'${JAVA_HOME}'+' \
<${FILESDIR}/gjc.in >${WRKDIR}/gjc
${INSTALL_SCRIPT} ${WRKDIR}/gjc ${PREFIX}/bin/gjc${BINSUFX}
.for f in gjcr gj
${LN} -sf ${PREFIX}/bin/gjc${BINSUFX} ${PREFIX}/bin/${f}${BINSUFX}
.endfor
.include <bsd.port.mk>
|