~ubuntu-branches/ubuntu/natty/lua-gtk/natty

« back to all changes in this revision

Viewing changes to script/config.win32-i386

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Tassi
  • Date: 2009-05-17 18:16:21 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090517181621-9kmdd82nxg54jsio
* new upstream snapshot comprising many more GNOME libraries:
    Gtk, GDK, GLib, Pango, Atk, Libxml2, Cairo, Clutter, Gtkhtml, 
    GtkSourceView, Gio, Gtkspell and GConf. 
* new upstream release includes a new configure script written in Lua,
  no more bashisms there (Closes: #507205)
* renamed binary packages to liblua5.1-gnome-*
* updated standards-version to 3.8.1, no changes needed
* patch to load .so.* version of libraries and not .so (that was requiring
  -dev packages) (Closes: #522087)
* removed redundant Architecture line from the source stanza of control
  (Closes: #498120)
* updated copyright file, Wolfgang Oertl holds it for 2009 too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# vim:sw=4:sts=4
3
 
#
4
 
# configuration specific to win32 on i386
5
 
#
6
 
 
7
 
GTKDIR=mingw/gtk/lib
8
 
if test ! -d $GTKDIR; then
9
 
    echo "Gtk not found in $GTKDIR"
10
 
    ERR=1
11
 
fi
12
 
GTK_LIBS="$GTKDIR/gtk-win32-2.0.lib $GTKDIR/gdk-win32-2.0.lib \
13
 
    $GTKDIR/gobject-2.0.lib $GTKDIR/glib-2.0.lib \
14
 
    $GTKDIR/gdk_pixbuf-2.0.lib $GTKDIR/pango-1.0.lib"
15
 
 
16
 
LUADIR=mingw/lua5.1
17
 
if test ! -d $LUADIR -o ! -f $LUADIR/lua5.1.dll; then
18
 
    echo "Lua 5.1 not found in $LUADIR"
19
 
    ERR=1
20
 
fi
21
 
 
22
 
FFIDIR=mingw/libffi-mingw
23
 
if test ! -d $FFIDIR -o ! -f $FFIDIR/libffi.a -o ! -f $FFIDIR/ffi.h; then
24
 
    echo "LibFFI not found in $FFIDIR"
25
 
    ERR=1
26
 
else
27
 
    LIBFFI_LIB=$FFIDIR/libffi.a
28
 
    LIBFFI_INC="-I $FFIDIR"
29
 
    LIBFFI_VERSION=$FFIDIR
30
 
fi
31
 
 
32
 
# mingw
33
 
MINGW=i586-mingw32msvc-
34
 
which ${MINGW}gcc > /dev/null
35
 
if test $? -ne 0; then
36
 
    echo "MingW GCC not found."
37
 
    ERR=1
38
 
else
39
 
    CC=${MINGW}gcc
40
 
fi
41
 
 
42
 
# cmph.  if CMPH_CFLAGS is empty, then the includes are in the
43
 
# default include path which is not the same for mingw.  Copy the
44
 
# required include file.
45
 
if test "$HAVE_CMPH" = 1; then
46
 
    set -- $CMPH_CFLAGS
47
 
    if test -z "$1"; then
48
 
        cp /usr/include/cmph_types.h $ODIR
49
 
    fi
50
 
fi
51
 
 
52
 
# don't use qemu; it can't run windows executables.
53
 
CROSS_RUN=
54
 
 
55
 
# output
56
 
CFLAGS="$CFLAGS -DXTHREADS -mms-bitfields"
57
 
echo "INDIR1      :=/usr/local/lib/lua/5.1" >> $CFG_M
58
 
echo "INDIR2      :=/usr/local/share/lua/5.1" >> $CFG_M
59
 
echo "ODLL        :=gtk.dll" >> $CFG_M
60
 
echo "EXTRA_LIB   +=$LUADIR/lua5.1.dll" >> $CFG_M
61
 
echo "LUADIR      :=$LUADIR" >> $CFG_M
62
 
echo "EXESUFFIX   :=.exe" >> $CFG_M
63
 
 
64