[linux26] Changed linux-conf.in to do no2mod after merging .config.$arch over defconf...
[opensde-package-nopast.git] / java / eclipse / eclipse.conf
blob0218b6746753968de1f2abaa1a122991df81accf
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
17         prefix=opt/eclipse
18         set_confopt
21 # Arch conversion from t2 to the one used by eclipse.
22 ECLIPSE_ARCH=$arch
23 case "$ECLIPSE_ARCH" in
24     x86-64)
25         ECLIPSE_ARCH="x86_64" ;;
27     powerpc)
28         ECLIPSE_ARCH="ppc" ;;
30     powerpc*)
31         ECLIPSE_ARCH="ppc64" ;;
32 esac
34 # package doesn't contain a base dir
35 custextract=eclipse_extract
36 eclipse_extract() {
37         mkdir $pkg-$ver
38         var_append zipopt ' ' -d$pkg-$ver
39         autoextract_zip "$@"
40         }
42 makeopt=
43 makeinstopt=
45 ECJ="-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter"
47 # create ECJ
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"
52 # compile & install
53 ANTOPT="$ECJ -lib \$PWD/ecj.jar -DinstallOs=linux -DinstallWs=gtk -DinstallArch=$ECLIPSE_ARCH"
55 # Custom installation.
56 eclipse_postmake() {
57         # Have eclipse put it all together.
58         ant $ANTOPT install
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
67         #!/bin/sh
69         exec \${0%/*}/../eclipse
70         EOT
71         chmod +x $bindir/eclipse
74 hook_add inmake   5 "ant $ANTOPT compilelibs"
75 hook_add postmake 5 eclipse_postmake