~ubuntu-branches/debian/sid/swt-gtk/sid

« back to all changes in this revision

Viewing changes to build.sh

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Perez
  • Date: 2009-12-07 10:22:24 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20091207102224-70w2tax575mcks1w
Tags: 3.5.1-1
* New upstream release. Closes: #558663.
* debian/control: 
  - Add Vcs-* fields for Git repository.
  - Allow DM-Uploads.
  - Remove "Conflicts", package should live with eclipse.
* debian/rules: Fix default-java path around AWT_LIB_PATH.
* debian/copyright: Minor update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#*******************************************************************************
3
 
# Copyright (c) 2000, 2008 IBM Corporation and others.
 
3
# Copyright (c) 2000, 2009 IBM Corporation and others.
4
4
# All rights reserved. This program and the accompanying materials
5
5
# are made available under the terms of the Eclipse Public License v1.0
6
6
# which accompanies this distribution, and is available at
14
14
 
15
15
cd `dirname $0`
16
16
 
 
17
MAKE_TYPE=make
 
18
 
17
19
if [ "${JAVA_HOME}" = "" ]; then
18
20
        echo "Please set JAVA_HOME to point at a JRE."
19
21
fi
29
31
case $OS in
30
32
        "SunOS")
31
33
                SWT_OS=solaris
 
34
                PROC=`uname -i`
32
35
                MAKEFILE=make_solaris.mak
 
36
                if uname -p > /dev/null 2>&1; then
 
37
                        MODEL=`uname -p`
 
38
                fi
 
39
                if [ ${MODEL} = 'i386' ]; then
 
40
                        MAKEFILE=make_solaris_x86.mak
 
41
                        MAKE_TYPE=gmake
 
42
                fi
33
43
                ;;
34
44
        "FreeBSD")
35
45
                SWT_OS=freebsd
43
53
 
44
54
# Determine which CPU type we are building for
45
55
if [ "${MODEL}" = "" ]; then
46
 
        if uname -p > /dev/null 2>&1; then
47
 
                MODEL=`uname -p`
 
56
        if uname -i > /dev/null 2>&1; then
 
57
                MODEL=`uname -i`
48
58
        else
49
59
                MODEL=`uname -m`
50
60
        fi
66
76
 
67
77
# For 64-bit CPUs, we have a switch
68
78
if [ ${MODEL} = 'x86_64' -o ${MODEL} = 'ppc64' -o ${MODEL} = 'ia64' -o ${MODEL} = 's390x' ]; then
69
 
        SWT_PTR_CFLAGS=-DSWT_PTR_SIZE_64
 
79
        SWT_PTR_CFLAGS=-DJNI64
70
80
        export SWT_PTR_CFLAGS
71
81
        if [ -d /lib64 ]; then
72
82
                XLIB64=-L/usr/X11R6/lib64
104
114
                export MOZILLA_LIBS
105
115
                MAKE_MOZILLA=make_mozilla
106
116
        elif [ x`pkg-config --exists libxul && echo YES` = "xYES" ]; then
107
 
                MOZILLA_INCLUDES=`pkg-config --cflags libxul`
108
 
                MOZILLA_LIBS=`pkg-config --libs libxul`
109
 
                export MOZILLA_INCLUDES
110
 
                export MOZILLA_LIBS
111
 
                MAKE_MOZILLA=make_mozilla
 
117
                XULRUNNER_INCLUDES=`pkg-config --cflags libxul`
 
118
                XULRUNNER_LIBS=`pkg-config --libs libxul`
 
119
                export XULRUNNER_INCLUDES
 
120
                export XULRUNNER_LIBS
 
121
                MAKE_MOZILLA=make_xulrunner
112
122
        else
113
123
                echo "None of the following libraries were found:  Mozilla/XPCOM, Firefox/XPCOM, or XULRunner/XPCOM"
114
124
                echo "    *** Mozilla embedding support will not be compiled."
140
150
fi
141
151
 
142
152
if [ "x${1}" = "xclean" ]; then
143
 
        make -f $MAKEFILE clean
 
153
        ${MAKE_TYPE} -f $MAKEFILE clean
144
154
else
145
 
        make -f $MAKEFILE all $MAKE_GNOME $MAKE_CAIRO $MAKE_AWT $MAKE_MOZILLA ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9}
 
155
        ${MAKE_TYPE} -f $MAKEFILE all $MAKE_GNOME $MAKE_CAIRO $MAKE_AWT $MAKE_MOZILLA ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9}
146
156
fi