1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/openjdk/openjdk.conf
3 # Copyright (C) 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
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 ---
15 tar -xf ../archdir/OpenJDK-*-bin.tar.*
16 var_append PATH ':' "$PWD/OpenJDK-*-bin/bin"
22 cp -Rv build/*/images/jdk/* /opt/java/
25 # Additional configure options
26 var_append extraconfopt ' ' '--enable-unlimited-crypto'
27 var_append extraconfopt ' ' '--disable-warnings-as-errors'
28 var_append extraconfopt ' ' '--with-stdc++lib=dynamic'
29 for lib in giflib lcms libjpeg libpng zlib; do
30 var_append extraconfopt ' ' "--with-$lib=system"
32 var_append extraconfopt ' ' "--with-fontconfig=$root/$SDECFG_PKG_X11_PREFIX"
34 # Do confopt cleaning manually, since automatic cleaning is broken
35 var_remove extraconfopt ' ' "--with-pam"
36 var_remove extraconfopt ' ' "--with-libpam"
37 var_remove extraconfopt ' ' "--enable-pam"
38 var_remove extraconfopt ' ' "--enable-libpam"
40 # Replace -jN with JOBS=N and add images target
41 var_remove makeopt ' ' "-j$SDECFG_PARALLEL_MAX"
42 var_insert makeopt ' ' "JOBS=$SDECFG_PARALLEL_MAX"
43 var_append makeopt ' ' 'images'
45 hook_add preconf 2 prepare
46 hook_add postmake 2 install