aboutsummaryrefslogtreecommitdiffstats
path: root/java/gj/Makefile
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-09-29 20:07:08 +0800
committeredwin <edwin@FreeBSD.org>2003-09-29 20:07:08 +0800
commit383b4e48627ad80bacb2676da9e1e40ec5799586 (patch)
tree2f2bcae0d80b66f4d963a89f0b41ff87e89605c6 /java/gj/Makefile
parentc0200917a31fcd24d7e48d366b7256d778d157f5 (diff)
downloadfreebsd-ports-gnome-383b4e48627ad80bacb2676da9e1e40ec5799586.tar.gz
freebsd-ports-gnome-383b4e48627ad80bacb2676da9e1e40ec5799586.tar.zst
freebsd-ports-gnome-383b4e48627ad80bacb2676da9e1e40ec5799586.zip
[new port] java/gj[-jdk11]: Generic Java
GJ is an extension of the Java programming language that supports generic types. * Support for generics * Superset of the Java programming language * Compiles into the Java Virtual Machine * Compatible with existing libraries WWW: http://www.cis.unisa.edu.au/~pizza/gj/ gj-jdk11 is a slave port to gj which uses JDK 1.1. PR: ports/55111 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Diffstat (limited to 'java/gj/Makefile')
-rw-r--r--java/gj/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/java/gj/Makefile b/java/gj/Makefile
new file mode 100644
index 000000000000..669fa40d73e3
--- /dev/null
+++ b/java/gj/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: gj-jdk12
+# Date created: 2003-05-26
+# Whom: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gj-${JDKSUBDIR}
+PORTVERSION= 0.6m
+CATEGORIES= java
+MASTER_SITES= http://www.cis.unisa.edu.au/~pizza/gj/Distribution/
+DISTNAME= gjdist${GJDIST}
+
+MAINTAINER= stolz@i2.informatik.rwth-aachen.de
+COMMENT= Extension of the Java programming language that supports generic types
+
+WRKSRC= ${WRKDIR}/gj
+
+NO_BUILD= YES
+
+.if defined(GJ_WITH_JDK11)
+GJDIST= 1.1
+USE_JAVA= 1.1
+BINSUFX= 11
+.else
+GJDIST= 1.2
+USE_JAVA= 1.2+
+.endif
+
+JDKSUBDIR= jdk${GJDIST}
+PLIST_SUB+= JDKSUBDIR=${JDKSUBDIR}
+
+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>