1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/java/cacao/Makefile
Gerald Pfeifer 6d1f05d3d7 Remove dead code: Java support (via GCJ) has not been part of any of
the lang/gcc4x ports since last spring and newer versions of GCC do
not carry a point in their major version designation.  On top of that
WITH_GCC has not been use for ages anyway.

On the way move ONLY_FOR_ARCHS towards its proper spot.

Approved by:	portmgr blanket
2018-02-24 21:24:15 +00:00

62 lines
1.7 KiB
Makefile

# Created by: Tilman Keskinoz <arved@FreeBSD.org>
# $FreeBSD$
PORTNAME= cacao
PORTVERSION= 1.6.1
PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= http://www.complang.tuwien.ac.at/cacaojvm/download/cacao-${PORTVERSION}/
MAINTAINER= java@FreeBSD.org
COMMENT= JIT compiler for JAVA
LICENSE= GPLv2
ONLY_FOR_ARCHS= amd64 i386
BUILD_DEPENDS= ${LOCALBASE}/share/classpath/glibj.zip:java/classpath
RUN_DEPENDS= ${LOCALBASE}/share/classpath/glibj.zip:java/classpath
USES= gmake tar:xz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-test-dependency-checks \
--with-java-runtime-library=gnuclasspath \
--with-java-runtime-library-prefix=${PREFIX} \
--with-build-java-runtime-library-classes=${LOCALBASE}/share/classpath/glibj.zip
CONFIGURE_ENV= JAVAC="${JAVAC}" JAR="${JAR}"
OPTIONS_DEFINE= JDK
OPTIONS_DEFAULT=JDK
JDK_DESC= Build with native JDK
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MJDK}
BUILD_DEPENDS+= ${LOCALBASE}/bootstrap-openjdk6/bin/javac:java/bootstrap-openjdk6
JAR= ${LOCALBASE}/bootstrap-openjdk6/bin/jar
JAVAC= ${LOCALBASE}/bootstrap-openjdk6/bin/javac
.else
GCC_SUFX?= 46
BUILD_DEPENDS+= gcj${GCC_SUFX}:lang/gcc${GCC_SUFX}
EXTRA_PATCHES= ${FILESDIR}/gcj.patch
JAR= ${LOCALBASE}/bin/gjar${GCC_SUFX}
JAVAC= ${LOCALBASE}/bin/gcj${GCC_SUFX}
JAVACFLAGS= -C
CONFIGURE_ENV+= JAVACFLAGS="${JAVACFLAGS}"
MAKE_ENV+= JAVACFLAGS="${JAVACFLAGS}"
.endif
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/src/cacao/cacao \
${STAGEDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/src/cacao/.libs/libjvm.so \
${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/src/classes/vm.zip \
${STAGEDIR}${DATADIR}
${INSTALL_MAN} ${WRKSRC}/man/cacao.1 \
${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>