* updated yet more dir-less .cache DEPs
[t2sde.git] / package / java / graalvm / graalvm.conf
blobc37d641218ee2c2064d757f6e881ef9c95c21253
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/graalvm/graalvm.conf
3 # Copyright (C) 2022 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 build() {
13         # Extract mx
14         tar -xf ../archdir/mx-*.tar.*
15         eval var_append PATH ':' "$PWD/mx-*"
16         export PATH
18         # Create dummy Git repository
19         # Note: this is needed for mx
20         git init
21         touch .dummy
22         git add .dummy
23         git config user.name "T2 Project"
24         git config user.email "t2@t2-project.org"
25         git commit -m "$pkg $ver"
27         # Build GraalVM
28         # Note: Sulong and Esperesso not enabled, because Sulong build fails
29         export JAVA_HOME=$root/opt/java
30         echo $PATH
31         cd vm/
32         mx build
33         cd ..
36 install() {
37         # Install GraalVM
38         mkdir -p $root/opt/java/graalvm
39         cp -Rv vm/latest_graalvm_home/* $root/opt/java/graalvm/
41         # Install mx
42         # Note: mx is needed to build additional GraalVM componenets
43         mkdir -p $root/opt/java/graalvm/mx
44         cp -Rv mx-*/* $root/opt/java/graalvm/mx/
47 hook_add premake 2 build
48 hook_add postmake 2 install
50 makeopt=
51 makeinstopt=