1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/eclipse/eclipse.conf
3 # Copyright (C) 2004 - 2021 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 ---
12 if [ $prefix_auto -eq 1 ]; then
17 # Arch conversion from t2 to the one used by eclipse.
19 case "$ECLIPSE_ARCH" in
21 ECLIPSE_ARCH="x86_64" ;;
27 ECLIPSE_ARCH="ppc64" ;;
30 # package doesn't contain a base dir
31 custextract=eclipse_extract
34 var_append zipopt ' ' -d$pkg-$ver
41 ECJ="-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter"
44 ANTOPT="$ECJ -lib \$PWD/jdtcoresrc/ecj.jar"
45 hook_add premake 2 "ant -buildfile jdtcoresrc/compilejdtcorewithjavac.xml"
46 hook_add premake 3 "ant -buildfile jdtcoresrc/compilejdtcore.xml $ANTOPT"
49 ANTOPT="$ECJ -lib \$PWD/ecj.jar -DinstallOs=linux -DinstallWs=gtk -DinstallArch=$ECLIPSE_ARCH"
51 # Custom installation.
53 # Have eclipse put it all together.
56 # Copy all stuff from the eclipse build to our prefix location.
57 # But to make sure any possible links stay intact we use
58 # tar | untar instead of cp.
59 ( cd eclipse; tar -c * | tar -x -C /$prefix )
61 # and a $PATH friendly `eclipse`
62 cat <<-EOT > $bindir/eclipse
65 exec \${0%/*}/../eclipse
67 chmod +x $bindir/eclipse
70 hook_add inmake 5 "ant $ANTOPT compilelibs"
71 hook_add postmake 5 eclipse_postmake