blob: 5564a801d032e3a50f3ac7814579e2077a62a8f2 (
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
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
77
78
79
80
81
82
83
84
85
86
|
# $NetBSD: Makefile,v 1.9 2003/05/06 17:41:42 jmmv Exp $
#
DISTNAME= wonka-src-0.9.5-release
PKGNAME= wonka-0.9.5
WRKSRC= ${WRKDIR}/open-wonka
CATEGORIES= lang
MASTER_SITES= http://wonka.acunia.com/
MAINTAINER= skrll@netbsd.org
HOMEPAGE= http://wonka.acunia.com/download.html
COMMENT= BSD-licenced java virtual machine
# This has only been ported to arm and x86 so far.
ONLY_FOR_PLATFORM= *-*-i386 *-*-arm32
BUILD_DEPENDS+= acunia-jam>=1.0nb1:../../devel/acunia-jam
BUILD_DEPENDS+= jamjar-[0-9]*:../../archivers/jamjar
BUILD_DEPENDS+= jikes>=1.18:../../lang/jikes
BUILD_DEPENDS+= zip-[0-9]*:../../archivers/zip
USE_BUILDLINK2= # defined
USE_X11= # defined
JVM_HOME= ${LOCALBASE}/java/${PKGBASE}
NO_MTREE= # defined, since we change PREFIX below
SEDFILES= \
${WRKSRC}/tool/mauve/java/gnu/testlet/wonka/lang/ClassLoader/AcuniaClassLoaderTest.java \
${WRKSRC}/tool/mauve/java/gnu/testlet/wonka/util/zip/GZIPInputStream/basic.java \
${WRKSRC}/tool/mauve/java/gnu/testlet/wonkax/microedition/io/Connector/AcuniaConnectorTest.java \
${WRKSRC}/wonka/resource/system/wonka.security \
${WRKSRC}/tool/mauve/java/gnu/testlet/wonka/util/zip/GZIPInputStream/basic.java \
${WRKSRC}/tool/mauve/java/gnu/testlet/wonka/lang/ClassLoader/AcuniaClassLoaderTest.java \
${WRKSRC}/tool/mauve/java/gnu/testlet/wonka/io/Utf8Encoding/ReadReference.java \
${WRKSRC}/tool/mauve/java/gnu/testlet/wonka/io/DataInputOutput/ReadReference.java \
${WRKSRC}/tool/visualtest/java/com/acunia/wonka/test/awt/vte.properties \
${WRKSRC}/wonka/resource/system/system.properties \
${WRKSRC}/Configuration/cpu/arm \
${WRKSRC}/Configuration/cpu/x86
post-extract:
@${MKDIR} -p ${WRKSRC}/class/doclet/com/acunia/doclet
@${SED} -e "s|@PREFIX@|${PREFIX}|g" \
${FILESDIR}/pkgsrc \
> ${WRKSRC}/Configuration/wonka/pkgsrc
post-patch:
@for file in ${SEDFILES}; do \
${SED} -e "s|@PREFIX@|${PREFIX}|g" \
-e "s|@CC@|${CC}|g" \
-e "s|@LD@|${LD}|g" \
-e "s|@AS@|${CC} -c|g" \
-e "s|@AR@|${AR}|g" \
-e "s|@RANLIB@|${RANLIB}|g" \
$${file} > $${file}.fixed && \
${MV} -f $${file}.fixed $${file}; \
done
MAKE_ENV+= WONKA_TOP=${WRKSRC}
JAM_COMMAND= \
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} \
${LOCALBASE}/bin/jam \
-sWONKA_CONFIG=pkgsrc \
-sCPU=${LOWER_ARCH} \
-sHOSTOS=${LOWER_OPSYS} \
-sAWT_DEVICE=xsim \
-sDEBUG=false
do-build:
${JAM_COMMAND}
do-install:
${JAM_COMMAND} install
${RM} -f ${PREFIX}/bin/java
${LN} -sf wonka ${PREFIX}/bin/java
test: install
cd ${WRKDIR} && LD_LIBRARY_PATH=${PREFIX}/test \
${PREFIX}/bin/wonka gnu.testlet.TestRunner
.include "../../mk/bsd.pkg.mk"
# This needs to be after bsd.pkg.mk
PREFIX= ${JVM_HOME}
|