blob: 5d17a1185a3e67891200977f5dc498db238c4122 (
plain) (
blame)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# New ports collection makefile for: openjit
# Date created: 26 September 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= openjit
PORTVERSION= 1.1.16
PORTREVISION= 1
CATEGORIES= java
MASTER_SITES= http://www.openjit.org/dist/
DISTNAME= OpenJIT-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A high-performance reflective Java Just-In-Time (JIT) bytecode compiler
BROKEN= "Configure fails with diablo-jdk13"
EXPIRATION_DATE=2005-02-18
DEPRECATED= ${BROKEN}
# Only native JDKs are allowed. Default is java/diablo-jdk13
.if defined(WITH_JDK13)
JAVA_HOME= ${PREFIX}/jdk1.3.1
BUILD_DEPENDS= ${JAVA_HOME}/bin/java:${PORTSDIR}/java/jdk13
.elif defined(WITH_JDK12)
JAVA_HOME= ${PREFIX}/jdk1.2.2
BUILD_DEPENDS= ${JAVA_HOME}/bin/java:${PORTSDIR}/java/jdk12
.elif defined(WITH_JDK11)
JAVA_HOME= ${PREFIX}/jdk1.1.8
BUILD_DEPENDS= ${JAVA_HOME}/bin/java:${PORTSDIR}/java/jdk11
.else
JAVA_HOME= ${PREFIX}/diablo-jdk1.3.1
BUILD_DEPENDS= ${JAVA_HOME}/bin/java:${PORTSDIR}/java/diablo-jdk13
.endif
ONLY_FOR_ARCHS= i386
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-jdk=${JAVA_HOME}
PLIST_SUB+= JAVADIR=${JAVA_HOME:S,${PREFIX}/,,}
.if defined(WITH_JDK11)
JAVALIBDIR= ${PREFIX}/lib/OpenJIT
PLIST_SUB+= JAVA2:="@comment " JAVA11:=""
.else
PLIST_SUB+= JAVA2:="" JAVA11:="@comment "
.endif
post-configure:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/INSTALL
do-install:
.if defined(WITH_JDK11)
@${MKDIR} ${JAVALIBDIR}
@${INSTALL_DATA} ${WRKSRC}/libOpenJIT.so ${JAVALIBDIR}
@${INSTALL_DATA} ${WRKSRC}/OpenJIT.jar ${JAVALIBDIR}
.else
@${MKDIR} ${JAVA_HOME}/jre/classes
@${INSTALL_DATA} ${WRKSRC}/libOpenJIT.so ${JAVA_HOME}/jre/lib/i386
@cd ${WRKSRC} && ${FIND} org -name '*.class' \
| ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${JAVA_HOME}/jre/classes
@${FIND} ${JAVA_HOME}/jre/classes -type d | ${XARGS} ${CHMOD} a+rx
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
@${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}/INSTALL
@${ECHO_MSG} ""
@${ECHO_MSG} "See ${DOCSDIR}/INSTALL for usage instructions."
@${ECHO_MSG} ""
.endif
.include <bsd.port.mk>
|