1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../eclipse/eclipse.conf
5 # Copyright (C) 2007 The OpenSDE Project
6 # Copyright (C) 2004 - 2006 The T2 SDE Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- SDE-COPYRIGHT-NOTE-END ---
16 if [ $prefix_auto -eq 1 ]; then
21 # Arch conversion from t2 to the one used by eclipse.
23 case "$ECLIPSE_ARCH" in
25 ECLIPSE_ARCH="x86_64" ;;
31 ECLIPSE_ARCH="ppc64" ;;
34 # package doesn't contain a base dir
35 custextract=eclipse_extract
38 var_append zipopt ' ' -d$pkg-$ver
45 ECJ="-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter"
48 ANTOPT="$ECJ -lib \$PWD/jdtcoresrc/ecj.jar"
49 hook_add premake 2 "ant -buildfile jdtcoresrc/compilejdtcorewithjavac.xml"
50 hook_add premake 3 "ant -buildfile jdtcoresrc/compilejdtcore.xml $ANTOPT"
53 ANTOPT="$ECJ -lib \$PWD/ecj.jar -DinstallOs=linux -DinstallWs=gtk -DinstallArch=$ECLIPSE_ARCH"
55 # Custom installation.
57 # Have eclipse put it all together.
60 # Copy all stuff from the eclipse build to our prefix location.
61 # But to make sure any possible links stay intact we use
62 # tar | untar instead of cp.
63 ( cd eclipse; tar -c * | tar -x -C /$prefix )
65 # and a $PATH friendly `eclipse`
66 cat <<-EOT > $bindir/eclipse
69 exec \${0%/*}/../eclipse
71 chmod +x $bindir/eclipse
74 hook_add inmake 5 "ant $ANTOPT compilelibs"
75 hook_add postmake 5 eclipse_postmake