RSS

(root)/calliope : 447

Sam Thursfield
2009-09-13 13:58:11
Revision ID: sam@candylion-20090913135811-fuxpmnfkwnd4dvz1
Merge.

collapse all collapse all

added added

removed removed

1
What I did to try make Calliope build on Windows using mingw32, jhbuild and waf!
1
What I did to try make Calliope build on Windows using mingw32, jhbuild and waf!
2
================================================================================
2
================================================================================
3
 
3
 
4
Motivation:
 
 
5
  * Lots of Calliope dependencies don't have prebuilt mingw32 packages, and some of those that
 
 
6
        do need patching anyway. It takes about one entire day to download, path and build Calliope's
 
 
7
        dependencies by hand so the two weeks I spent hacking up jhbuild were probably a sound
 
 
8
        investment.
 
 
9
  * make under msys is painfully slow - recursing through the subdirectories I swear takes much
 
 
10
    longer than the actual compiles. waf solves this problem and a few others, but the main
 
 
11
    reason for using waf is speed.
 
 
12
 
 
 
13
Caveats:
 
 
14
  * Make sure you set up Bazaar to convert line endings sensibly. Edit BZR_HOME/bazaar.conf
 
 
15
    (type 'bzr help files' to find this path) and add:
 
 
16
 
 
 
17
        [name *]
 
 
18
        eol = native
 
 
19
 
 
 
20
First read:
4
First read:
21
    http://calliope.sourceforge.net/jhbuild-win32.html
5
    http://afuera.me.uk/jhbuild-windows/
22
This document describes how to set up a suitable environment.
6
This document describes how to set up a suitable environment.
23
 
7
 
 
 
8
FIXME: eventually, I would like a calliope-head moduleset which builds all of the deps from git,
 
 
9
and calliope-0.2, calliope-0.4 etc. that use tarballs known to work.
 
 
10
 
24
Once you have done this, inside an msys --norxvt shell:
11
Once you have done this, inside an msys --norxvt shell:
25
        > cd calliope/win32
12
  > cd calliope/win32
26
        > jhbuild -f jhbuildrc bootstrap
13
  > jhbuild -f jhbuildrc
27
        > jhbuild -f jhbuildrc
 
 
28
And hopefully the required infrastructure will build itself!
14
And hopefully the required infrastructure will build itself!
29
Note that to build libogg you need g++, even though it doesn't use it anywhere.
15
 
 
 
16
Notes:
 
 
17
 * to build libogg you need g++, even though it doesn't use it anywhere.
 
 
18
 * flac needs the patch <patch file="flac-doc-install.patch" strip="2" /> applying manually, because
 
 
19
   jhbuild doesn't patch cvs repos. (And we need to build from cvs for various mingw fixes.)
30
 
20
 
31
Note that none of this will work unless you use my branch of jhbuild, which is at the URL above.
21
Note that none of this will work unless you use my branch of jhbuild, which is at the URL above.
32
 
22
 
 
 
23
Right now, if Tor's binary Cairo package was used, you need to edit /c/build/lib/pkgconfig/cairo.pc
 
 
24
and remove "freetype2 >= 9.7.3" or similar from the Requires.private entry.
 
 
25
 
33
Building Calliope with waf:
26
Building Calliope with waf:
34
        > clisp conftool
27
    > clisp conftool
35
        (FIXME: do this automatically as part of build ...)
28
    (FIXME: do this automatically as part of build ...)
36
        > ./waf configure
29
    > PKG_CONFIG_PATH=/c/build/lib/pkgconfig ./waf configure
37
        > ./waf build
30
    > ./waf build
38
        > ./waf check
31
    > ./waf check
39
 
32
 
40
 
33
The binary will be in build/default/calliope.exe.
41
You can either run it from the base directory as src/calliope.exe, or build the
34
 
42
installer using makensis calliope.nsi
35
./waf dist makes an installer for Calliope using NSIS.
43
 
36
 
44
Note that the gtk+ theme is defined in /build/etc/gtk-2.0/gtkrc, if you want to use the MS-Windows
37
Note that the gtk+ theme is defined in /build/etc/gtk-2.0/gtkrc, if you want to use the MS-Windows
45
theme, create that file to read:
38
theme, create that file to read:
46
        gtk-theme-name = "MS-Windows"
39
    gtk-theme-name = "MS-Windows"
47
 
40
 
48
FIXME: strip debugging symbols?
41
FIXME: strip debugging symbols in installer
49
 
42
 
50
    !!!! libcdio !!!!
43
    !!!! libcdio !!!!
51
    !!!! http://musicbrainz.org/ftpmirror/pub/musicbrainz/
44
    !!!! http://musicbrainz.org/ftpmirror/pub/musicbrainz/
52
    !!!!        - libmusicbrainz-2.1.5.tar.gz
45
    !!!!        - libmusicbrainz-2.1.5.tar.gz
53
 
46
 
54
 
47
 
55
I should point out that building Calliope on Windows is a long,
48
I should point out that building Calliope on Windows is a long, unreliable and torturous process
56
unreliable and torturous process which there is really no point
49
which there is really no point attempting. I provide detailed instructions really for two reasons:
57
attempting. I provide detailed instructions really for two reasons:
50
 
58
 
51
    1) to help authors of other GNOME applications who want to have a go at a win32 port; and
59
        1) to help authors of other GNOME applications who want to have a
52
    2) because otherwise I will forget
60
           go at a win32 port; and
53
 
61
        2) because otherwise I will forget
54
Please don't distribute your own Windows binaries of Calliope unless I have died or something.
62
 
55
 
63
Please don't distribute your own Windows binaries of Calliope if you
56
If you are submitting patches, make sure you set up Bazaar to convert line endings sensibly.
64
can help it.
57
Edit BZR_HOME/bazaar.conf (type 'bzr help files' to find this path) and add:
 
 
58
 
 
 
59
    [name *]
 
 
60
    eol = native
1082
 
1082
 
1083
        * minimise our dependencies !!!! (well in general as well I guess)
1083
        * minimise our dependencies !!!! (well in general as well I guess)
1084
 
1084
 
 
 
1085
GNOME:
 
 
1086
        * with NetworkManager we can do things when network is up etc. 
 
 
1087
 
1085
        * g_spawn_* has the following checks
1088
        * g_spawn_* has the following checks
1086
                  if (!standard_input && !standard_output && !standard_error &&
1089
                  if (!standard_input && !standard_output && !standard_error &&
1087
                  (flags & G_SPAWN_CHILD_INHERITS_STDIN) &&
1090
                  (flags & G_SPAWN_CHILD_INHERITS_STDIN) &&
11
# turns out to be really broken.
11
# turns out to be really broken.
12
#
12
#
13
 
13
 
 
 
14
# FIXME: if we were *really* clever, we could use a tool to find the dll deps of calliope.exe
 
 
15
# automatically, and include those in the installer automatically ...
 
 
16
 
14
#!include LogicLib.nsh
17
#!include LogicLib.nsh
15
 
18
 
16
!ifdef unstable
19
!ifdef unstable
249
        
249
        
250
        void view_destroyed () { view_was_destroyed = TRUE; };
250
        void view_destroyed () { view_was_destroyed = TRUE; };
251
 
251
 
252
        GTestTimeout *test_timer = g_test_timeout_new (50.0);
252
        GTestTimeout *test_timer = g_test_timeout_new (120.0);
253
        GMainLoop *main_loop = g_main_loop_new (NULL, TRUE);
253
        GMainLoop *main_loop = g_main_loop_new (NULL, TRUE);
254
 
254
 
255
        GtkWidget *calliope = test_calliope_new();
255
        GtkWidget *calliope = test_calliope_new();
330
        calliope_core_init ();
330
        calliope_core_init ();
331
        gst_file_types_init ();
331
        gst_file_types_init ();
332
 
332
 
333
        g_test_add_func ("/main/UI Manager", ui_manager);
333
        /*g_test_add_func ("/main/UI Manager", ui_manager);
334
        g_test_add ("/main/app/Browser", AppFixture, NULL, app_fixture_setup, browser,
334
        g_test_add ("/main/app/Browser", AppFixture, NULL, app_fixture_setup, browser,
335
                    app_fixture_teardown);
335
                    app_fixture_teardown);
336
        g_test_add ("/main/app/Player", AppFixture, NULL, app_fixture_setup, player,
336
        g_test_add ("/main/app/Player", AppFixture, NULL, app_fixture_setup, player,
337
                    app_fixture_teardown);
337
                    app_fixture_teardown);
338
        g_test_add ("/main/dialogs/Add Music", AppFixture, NULL, app_fixture_setup, dialog_add_music,
338
        g_test_add ("/main/dialogs/Add Music", AppFixture, NULL, app_fixture_setup, dialog_add_music,
339
                    app_fixture_teardown);
339
                    app_fixture_teardown);*/
340
        //g_test_add ("/main/app/Geometry", AppFixture, NULL, app_fixture_setup, app_geometry,
340
        //g_test_add ("/main/app/Geometry", AppFixture, NULL, app_fixture_setup, app_geometry,
341
        //            app_fixture_teardown);
341
        //            app_fixture_teardown);
342
 
342
 
343
        char path[256];
343
        char path[256];
344
        for (int i=0; i<VIEW_CONFIG_PRESETS; i++) {
344
        for (int i=0; i<VIEW_CONFIG_PRESETS; i++) {
345
                g_test_add (PATH_PRINTF("/main/app/Final [no tags, Preset %i]", i), AppFixture, 
345
                /*g_test_add (PATH_PRINTF("/main/app/Final [no tags, Preset %i]", i), AppFixture, 
346
                            view_config_preset[i][1], app_fixture_setup, final_no_tags,
346
                            view_config_preset[i][1], app_fixture_setup, final_no_tags,
347
                            app_fixture_teardown);
347
                            app_fixture_teardown);*/
348
                g_test_add (PATH_PRINTF("/main/app/Final [tags, Preset %i]", i), AppFixture, 
348
                g_test_add (PATH_PRINTF("/main/app/Final [tags, Preset %i]", i), AppFixture, 
349
                            view_config_preset[i][1], app_fixture_setup, final_tags,
349
                            view_config_preset[i][1], app_fixture_setup, final_tags,
350
                            app_fixture_teardown);
350
                            app_fixture_teardown);
1
<?xml version="1.0" ?>
1
<?xml version="1.0" ?>
2
<moduleset>
2
<moduleset>
3
        <repository type="svn" name="svn.gnome.org" default="yes" href="http://svn.gnome.org/svn/"/>
3
  <!-- My strategy for this file at the moment is to define binary packages here, and in the case
4
 
4
       that you want to build from source the jhbuild-windows modulesets should be used. -->
5
        <!-- Binary SQLite - two packages and a metamodule -->
5
  <repository type="tarball" name="downloads.sourceforge.net"
6
        <!-- Don't use between sqlite 3.6.3 and 3.6.9 inclusive!!! It has a really nasty bug
6
              href="http://downloads.sourceforge.net/" />
7
             that breaks calliope in all sorts of ways !!! -->
7
  <repository type="tarball" name="downloads.xiph.org"
8
        <binary id="sqlite-header" version="3.6.12">
8
              href="http://downloads.xiph.org/releases/" />
9
          <source href="http://sqlite.org/sqlite-amalgamation-3_6_12.zip"/>
9
  <repository type="cvs" name="flac.cvs.sourceforge.net"
10
          <install>
10
              cvsroot=":pserver:anonymous@flac.cvs.sourceforge.net:/cvsroot/flac" password="\n" />
11
            <cmd execute="['cp', '@@SRCDIR@@/sqlite3.h', '@@PREFIX@@/include/']"/>
11
  <repository type="tarball" name="ftp.gnome.org"
12
          </install>
12
              href="http://ftp.gnome.org/pub/gnome/sources/"/>
13
        </binary>
13
  <repository type="tarball" name="ftp.gnu.org"
14
        <binary id="sqlite-dll" version="3.6.12">
14
              href="http://ftp.gnu.org/gnu/" />
15
          <source href="http://sqlite.org/sqlitedll-3_6_12.zip"/>
15
  <repository type="tarball" name="gstreamer.freedesktop.org"
16
          <install>
16
              href="http://gstreamer.freedesktop.org/src/" />
17
            <cmd execute="['cp', '@@SRCDIR@@/*', '@@PREFIX@@/bin/']"/>
17
  <repository type="tarball" name="liboil.freedesktop.org"
18
            <cmd execute="['cp', '@@SRCDIR@@/*', '@@PREFIX@@/lib/']"/>
18
              href="http://liboil.freedesktop.org/download/" />
19
          </install>
19
 
20
        </binary>
20
  <!-- FIXME: this moduleset should become just a wrapper, and the modules should go into
21
        <metamodule id="sqlite">
21
       jhbuild-windows (and eventually stock jhbuild). The choice between using binary packages or
22
          <dependencies><dep package="sqlite-header"/><dep package="sqlite-dll"/></dependencies>
22
       building from source should be handled by jhbuild, described in the TODO file for
23
        </metamodule>
23
       jhbuild-windows.  -->
24
 
24
  <!-- <include href="gtk-windows.modules" /> -->
25
        <!-- Use source glib to apply patches. -->
25
 
26
        <tarball id="glib" version="2.20.1" configure="autogen.sh">
26
  <!-- Note: never use sqlite 3.6.3 to 3.6.9 (inclusive). It has a really nasty bug that breaks
27
          <source href="http://ftp.gnome.org/pub/gnome/sources/glib/2.20/glib-2.20.1.tar.bz2"/>
27
       Calliope in all sorts of ways. -->
28
          <patches>
28
  <binary id="sqlite-header" version="3.6.17">
29
                <!-- For http://bugzilla.gnome.org/show_bug.cgi?id=516916 -->
29
    <source href="http://sqlite.org/sqlite-amalgamation-3_6_17.zip"/>
30
            <patch file="glib-win32-cmpnum-message.patch" strip="1"/>
30
    <install>
31
          </patches>
31
      <cmd execute="['cp', '@@SRCDIR@@/sqlite3.h', '@@PREFIX@@/include/']"/>
32
        </tarball>
32
    </install>
33
 
33
  </binary>
34
        <!--
34
  <binary id="sqlite-dll" version="3.6.17">
35
        <binary id="glib-bin" version="2.18.2">
35
    <source href="http://sqlite.org/sqlitedll-3_6_17.zip"/>
36
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.18/glib_2.18.2-1_win32.zip"/>
36
    <install>
37
          <install>
37
      <cmd execute="['cp', '@@SRCDIR@@/*', '@@PREFIX@@/bin/']"/>
38
            <cmd execute="['cp', '-r', '@@SRCDIR@@/*', '@@PREFIX@@/']"/>
38
      <cmd execute="['cp', '@@SRCDIR@@/*', '@@PREFIX@@/lib/']"/>
39
          </install>
39
    </install>
40
        </binary>
40
  </binary>
41
        <binary id="glib-dev" version="2.18.2">
41
  <metamodule id="sqlite">
42
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.18/glib-dev_2.18.2-1_win32.zip"/>
42
    <dependencies><dep package="sqlite-header"/><dep package="sqlite-dll"/></dependencies>
43
          <install>
43
  </metamodule>
44
            <cmd execute="['cp', '-r', '@@SRCDIR@@/*', '@@PREFIX@@/']"/>
44
 
45
          </install>
45
  <!-- Use source glib to apply patches. -->
46
        </binary>
46
  <!-- FIXME: put into jhbuild-windows -->
47
        <metamodule id="glib">
47
  <autotools id="glib" version="2.20.4" configure="autogen.sh">
48
          <dependencies><dep package="glib-bin"/><dep package="glib-dev"/></dependencies>
48
    <branch repo="ftp.gnome.org" module="glib/2.20/glib-2.20.4.tar.bz2" version="2.20.4"/>
49
        </metamodule>
49
    <patches>
50
        -->
50
      <!-- For http://bugzilla.gnome.org/show_bug.cgi?id=516916 -->
51
 
51
      <patch file="glib-win32-cmpnum-message.patch" strip="1"/>
52
 
52
    </patches>
53
        <binary id="atk-bin" version="1.24.0">
53
  </autotools>
54
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.24/atk_1.24.0-1_win32.zip"/>
54
 
55
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
55
  <!--
56
        </binary>
56
  <binary id="glib-bin" version="2.18.2">
57
        <binary id="atk-dev" version="1.24.0">
57
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.18/glib_2.18.2-1_win32.zip"/>
58
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.24/atk-dev_1.24.0-1_win32.zip"/>
58
    <install>
59
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
59
      <cmd execute="['cp', '-r', '@@SRCDIR@@/*', '@@PREFIX@@/']"/> 
60
        </binary>
60
    </install>
61
        <metamodule id="atk">
61
  </binary>
62
          <dependencies>
62
  <binary id="glib-dev" version="2.18.2">
63
           <dep package="atk-bin"/><dep package="atk-dev"/>
63
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.18/glib-dev_2.18.2-1_win32.zip"/>
64
           <dep package="glib"/>
64
    <install>
65
          </dependencies>
65
      <cmd execute="['cp', '-r', '@@SRCDIR@@/*', '@@PREFIX@@/']"/>
66
        </metamodule>
66
    </install>
67
 
67
  </binary>
68
        <binary id="pango-bin" version="1.24.0">
68
  <metamodule id="glib">
69
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.24/pango_1.24.0-1_win32.zip"/>
69
    <dependencies><dep package="glib-bin"/><dep package="glib-dev"/></dependencies>
70
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
70
  </metamodule>
71
        </binary>
71
  -->
72
        <binary id="pango-dev" version="1.24.0">
72
 
73
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.24/pango-dev_1.24.0-1_win32.zip"/>
73
 
74
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
74
  <binary id="atk-bin" version="1.26.0">
75
        </binary>
75
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.26/atk_1.26.0-1_win32.zip"/>
76
        <metamodule id="pango">
76
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
77
          <dependencies>
77
  </binary>
78
           <dep package="pango-bin"/><dep package="pango-dev"/>
78
  <binary id="atk-dev" version="1.26.0">
79
          </dependencies>
79
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.26/atk-dev_1.26.0-1_win32.zip"/>
80
        </metamodule>
80
    <install><cmd execute="['cp', '--rls /c/becursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
81
 
81
  </binary>
82
        <binary id="zlib-bin" version="1.2.3">
82
  <metamodule id="atk">
83
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-1.2.3.zip"/>
83
    <dependencies>
84
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
84
     <dep package="atk-bin"/><dep package="atk-dev"/>
85
        </binary>
85
     <dep package="glib"/>
86
        <binary id="zlib-dev" version="1.2.3">
86
    </dependencies>
87
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-dev-1.2.3.zip"/>
87
  </metamodule>
88
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
88
 
89
        </binary>
89
  <!-- FIXME: pretty ridiculous that we need freetype2. When we build gtk+ by hand we can do away
90
        <metamodule id="zlib">
90
       with this. -->
91
          <dependencies>
91
  <binary id="freetype-bin" version="2.9.3">
92
           <dep package="zlib-bin"/><dep package="zlib-dev"/>
92
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype_2.3.9-1_win32.zip" />
93
          </dependencies>
93
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
94
        </metamodule>
94
  </binary>
95
 
95
  <binary id="freetype-dev" version="2.9.3">
96
        <!-- FIXME: I dislike depending on these two libs! Without them we are back to building
96
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype-dev_2.3.9-1_win32.zip" />
97
             our own gtk+ though! Which isn't actually that bad, especially if gcc4 ever gets going
97
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
98
          -->
98
  </binary>
99
        <binary id="libjpeg-bin" version="6b">
99
  <metamodule id="freetype">
100
          <source href="http://downloads.sourceforge.net/gnuwin32/jpeg-6b-4-bin.zip"/>
100
    <dependencies>
101
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
101
      <dep package="freetype-bin" /><dep package="freetype-dev" />
102
        </binary>
102
    </dependencies>
103
        <binary id="libjpeg-dev" version="6b">
103
  </metamodule>
104
          <source href="http://downloads.sourceforge.net/gnuwin32/jpeg-6b-4-lib.zip"/>
104
 
105
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
105
  <binary id="fontconfig-bin" version="2.7.3">
106
        </binary>
106
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig_2.7.3-1_win32.zip" />
107
    <metamodule id="libjpeg">
107
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
108
          <dependencies>
108
  </binary>
109
            <dep package="libjpeg-bin"/><dep package="libjpeg-dev"/>
109
  <binary id="fontconfig-dev" version="2.7.3">
110
          </dependencies>
110
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig-dev_2.7.3-1_win32.zip" />
111
        </metamodule>
111
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
112
 
112
  </binary>
113
        <binary id="libtiff-bin" version="3.8.2">
113
  <metamodule id="fontconfig">
114
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libtiff-3.8.2.zip"/>
114
    <dependencies>
115
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
115
      <dep package="fontconfig-bin" /><dep package="fontconfig-dev" />
116
        </binary>
116
    </dependencies>
117
        <binary id="libtiff-dev" version="3.8.2">
117
  </metamodule>
118
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libtiff-dev-3.8.2.zip"/>
118
 
119
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
119
  <binary id="pango-bin" version="1.24.5">
120
        </binary>
120
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.24/pango_1.24.5-2_win32.zip"/>
121
        <metamodule id="libtiff">
121
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
122
          <dependencies>
122
  </binary>
123
            <dep package="libtiff-bin"/><dep package="libtiff-dev"/>
123
  <binary id="pango-dev" version="1.24.5">
124
          </dependencies>
124
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.24/pango-dev_1.24.5-2_win32.zip"/>
125
        </metamodule>
125
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
126
 
126
  </binary>
127
        <binary id="libpng-bin" version="1.2.34">
127
  <metamodule id="pango">
128
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_1.2.34-1_win32.zip"/>
128
    <dependencies>
129
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
129
     <dep package="pango-bin"/><dep package="pango-dev"/>
130
        </binary>
130
     <dep package="fontconfig" />
131
        <binary id="libpng-dev" version="1.2.34">
131
     <dep package="freetype" />
132
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng-dev_1.2.34-1_win32.zip"/>
132
    </dependencies>
133
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
133
  </metamodule>
134
        </binary>
134
 
135
        <metamodule id="libpng">
135
  <binary id="zlib-bin" version="1.2.3">
136
          <dependencies>
136
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-1.2.3.zip"/>
137
           <dep package="zlib"/>
137
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
138
           <dep package="libpng-bin"/><dep package="libpng-dev"/>
138
  </binary>
139
          </dependencies>
139
  <binary id="zlib-dev" version="1.2.3">
140
        </metamodule>
140
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-dev-1.2.3.zip"/>
141
 
141
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
142
        <binary id="cairo-bin" version="1.8.6">
142
  </binary>
143
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.6-1_win32.zip"/>
143
  <metamodule id="zlib">
144
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
144
    <dependencies>
145
        </binary>
145
      <dep package="zlib-bin"/><dep package="zlib-dev"/>
146
        <binary id="cairo-dev" version="1.8.6">
146
    </dependencies>
147
          <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-dev_1.8.6-1_win32.zip"/>
147
  </metamodule>
148
          <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
148
 
149
        </binary>
149
  <!-- FIXME: I dislike depending on these two libs! Without them we are back to building
150
        <metamodule id="cairo">
150
       our own gtk+ though! Which isn't actually that bad, especially if gcc4 ever starts working.
151
          <dependencies>
151
    -->
152
           <dep package="libpng"/>
152
  <binary id="libjpeg-bin" version="6b">
153
           <dep package="cairo-bin"/><dep package="cairo-dev"/>
153
    <source href="http://downloads.sourceforge.net/gnuwin32/jpeg-6b-4-bin.zip"/>
154
          </dependencies>
154
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
155
        </metamodule>
155
  </binary>
 
 
156
  <binary id="libjpeg-dev" version="6b">
 
 
157
    <source href="http://downloads.sourceforge.net/gnuwin32/jpeg-6b-4-lib.zip"/>
 
 
158
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
 
 
159
  </binary>
 
 
160
  <metamodule id="libjpeg">
 
 
161
    <dependencies>
 
 
162
      <dep package="libjpeg-bin"/><dep package="libjpeg-dev"/>
 
 
163
    </dependencies>
 
 
164
  </metamodule>
 
 
165
 
 
 
166
  <binary id="libtiff-bin" version="3.8.2">
 
 
167
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libtiff-3.8.2.zip"/>
 
 
168
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
 
 
169
  </binary>
 
 
170
  <binary id="libtiff-dev" version="3.8.2">
 
 
171
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libtiff-dev-3.8.2.zip"/>
 
 
172
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
 
 
173
  </binary>
 
 
174
  <metamodule id="libtiff">
 
 
175
    <dependencies>
 
 
176
      <dep package="libtiff-bin"/><dep package="libtiff-dev"/>
 
 
177
    </dependencies>
 
 
178
  </metamodule>
 
 
179
 
 
 
180
  <binary id="libpng-bin" version="1.2.38">
 
 
181
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_1.2.38-1_win32.zip"/>
 
 
182
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
 
 
183
  </binary>
 
 
184
  <binary id="libpng-dev" version="1.2.38">
 
 
185
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng-dev_1.2.38-1_win32.zip"/>
 
 
186
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
 
 
187
  </binary>
 
 
188
  <metamodule id="libpng">
 
 
189
    <dependencies>
 
 
190
      <dep package="zlib"/>
 
 
191
      <dep package="libpng-bin"/><dep package="libpng-dev"/>
 
 
192
    </dependencies>
 
 
193
  </metamodule>
 
 
194
 
 
 
195
  <binary id="cairo-bin" version="1.8.8">
 
 
196
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.8.8-2_win32.zip"/>
 
 
197
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
 
 
198
  </binary>
 
 
199
  <binary id="cairo-dev" version="1.8.8">
 
 
200
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-dev_1.8.8-2_win32.zip"/>
 
 
201
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
 
 
202
  </binary>
 
 
203
  <metamodule id="cairo">
 
 
204
    <dependencies>
 
 
205
      <dep package="libpng"/>
 
 
206
      <dep package="cairo-bin"/><dep package="cairo-dev"/>
 
 
207
    </dependencies>
 
 
208
  </metamodule>
156
 
209
 
157
        <!--
210
        <!--
158
        <tarball id="gtk+" version="2.13.6" configure="./autogen.sh" autogenargs="- -without-libjasper">
211
        <tarball id="gtk+" version="2.13.6" configure="./autogen.sh" autogenargs="- -without-libjasper">
177
    </tarball>
230
    </tarball>
178
    -->
231
    -->
179
 
232
 
180
    <binary id="gtk+-bin" version="2.16.0">
233
  <binary id="gtk+-bin" version="2.16.5">
181
      <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+_2.16.0-1_win32.zip"/>
234
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+_2.16.5-1_win32.zip"/>
182
      <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
235
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
183
    </binary>
236
  </binary>
184
    <binary id="gtk+-dev" version="2.16.0">
237
  <binary id="gtk+-dev" version="2.16.5">
185
      <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-dev_2.16.0-1_win32.zip"/>
238
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-dev_2.16.5-1_win32.zip"/>
186
      <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
239
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
187
    </binary>
240
  </binary>
188
    <metamodule id="gtk+">
241
 
189
      <dependencies>
242
  <metamodule id="gtk+">
190
       <dep package="cairo"/>
243
    <dependencies>
191
       <dep package="atk"/>
244
     <dep package="glib"/>
192
       <dep package="pango"/>
245
     <dep package="cairo"/>
193
       <dep package="gtk+-bin"/><dep package="gtk+-dev"/>
246
     <dep package="atk"/>
194
           <dep package="libjpeg"/>
247
     <dep package="pango"/>
195
           <dep package="libtiff"/>
248
     <dep package="gtk+-bin"/><dep package="gtk+-dev"/>
196
      </dependencies>
249
     <dep package="libjpeg"/>
197
    </metamodule>
250
     <dep package="libtiff"/>
198
 
251
    </dependencies>
199
 
252
  </metamodule>
200
    <binary id="expat" version="2.0.0">
253
 
201
      <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/expat-2.0.0.zip"/>
254
 
202
      <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
255
  <binary id="expat" version="2.0.0">
203
    </binary>
256
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/expat-2.0.0.zip"/>
204
 
257
    <install>
205
    <binary id="libxml-bin" version="2.6.27">
258
      <cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/>
206
      <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2-2.6.27.zip"/>
259
      <cmd execute="['cp', '@@SRCDIR@@/bin/libexpat.dll', '@@PREFIX@@/bin/libexpat-1.dll']" />
207
      <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
260
    </install>
208
    </binary>
261
  </binary>
209
    <binary id="libxml-dev" version="2.6.27">
262
 
210
      <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2-dev-2.6.27.zip"/>
263
  <binary id="libxml-bin" version="2.6.27">
211
      <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
264
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2-2.6.27.zip"/>
212
    </binary>
265
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
213
    <metamodule id="libxml">
266
  </binary>
214
      <dependencies>
267
  <binary id="libxml-dev" version="2.6.27">
215
       <dep package="expat"/>   <!-- I think -->
268
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2-dev-2.6.27.zip"/>
216
       <dep package="libxml-bin"/><dep package="libxml-dev"/>
269
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
217
      </dependencies>
270
  </binary>
218
    </metamodule>
271
  <metamodule id="libxml">
219
 
272
    <dependencies>
220
 
273
     <dep package="expat"/>
221
    <!-- Tor's binary of this is linked with gnutls - no need for us to have that, so it's built
274
     <dep package="libxml-bin"/><dep package="libxml-dev"/>
222
            from scratch. -->
275
    </dependencies>
223
        <!-- FIXME: lipsoup 2.26 won't build because of '-Wmissing-include-dirs' that presumably
276
  </metamodule>
224
             gcc 3.x doesn't support. It's a simple configure.ac patch to fix I imagine. -->
277
 
225
 
278
 
226
    <tarball id="libsoup" version="2.24.1">
279
  <!-- Tor's binary of this is linked with gnutls - no need for us to have that, so it's built
227
      <source href="http://ftp.gnome.org/pub/gnome/sources/libsoup/2.24/libsoup-2.24.1.tar.bz2"/>
280
       from scratch. -->
228
      <dependencies>
281
  <!-- FIXME: lipsoup 2.26 won't build because of '-Wmissing-include-dirs' that presumably
229
                <dep package="glib"/>
282
       gcc 3.x doesn't support. It's a simple configure.ac patch to fix I imagine. -->
230
                <dep package="libxml"/>
283
  <!-- FIXME: put into jhbuild-windows -->
231
      </dependencies>
284
  <autotools id="libsoup" version="2.24.1">
232
    </tarball>
285
    <branch repo="ftp.gnome.org" module="libsoup/2.24/libsoup-2.24.1.tar.bz2" version="2.24.1" />
233
 
286
    <dependencies>
234
 
287
      <dep package="glib"/>
235
    <!-- GConf and dependencies -->
288
      <dep package="libxml"/>
236
    <!-- These actually seem to hawe case sensitive urls at the moment! Morons! -->
289
    </dependencies>
237
    <binary id="libidl-bin" version="0.8.11">
290
  </autotools>
238
      <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/libIDL/0.8/libIDL_0.8.11-1_win32.zip"/>
291
 
239
      <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
292
 
240
    </binary>
293
  <!-- GConf and dependencies -->
241
    <binary id="libidl-dev" version="0.8.11">
294
  <!-- These actually seem to hawe case sensitive urls at the moment! Morons! -->
242
      <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/libIDL/0.8/libIDL-dev_0.8.11-1_win32.zip"/>
295
  <!-- I cannot *wait* to replace this with gsettings! -->
243
      <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
296
  <binary id="libidl-bin" version="0.8.11">
244
    </binary>
297
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/libIDL/0.8/libIDL_0.8.11-1_win32.zip"/>
245
    <metamodule id="libidl">
298
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
246
      <dependencies>
299
  </binary>
247
       <dep package="libidl-bin"/><dep package="libidl-dev"/>
300
  <binary id="libidl-dev" version="0.8.11">
248
      </dependencies>
301
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/libIDL/0.8/libIDL-dev_0.8.11-1_win32.zip"/>
249
    </metamodule>
302
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
250
 
303
  </binary>
251
    <binary id="orbit-bin" version="2.14.16">
304
  <metamodule id="libidl">
252
      <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/ORBit2/2.14/ORBit2_2.14.16-1_win32.zip"/>
305
    <dependencies>
253
      <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
306
     <dep package="libidl-bin"/><dep package="libidl-dev"/>
254
    </binary>
307
    </dependencies>
255
    <binary id="orbit-dev" version="2.14.16">
308
  </metamodule>
256
      <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/ORBit2/2.14/ORBit2-dev_2.14.16-1_win32.zip"/>
309
 
257
      <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
310
  <binary id="orbit-bin" version="2.14.16">
258
    </binary>
311
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/ORBit2/2.14/ORBit2_2.14.16-1_win32.zip"/>
259
    <metamodule id="orbit">
312
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
260
      <dependencies>
313
  </binary>
261
       <dep package="libidl"/>
314
  <binary id="orbit-dev" version="2.14.16">
262
       <dep package="orbit-bin"/><dep package="orbit-dev"/>
315
    <source href="http://ftp.gnome.org/pub/gnome/binaries/win32/ORBit2/2.14/ORBit2-dev_2.14.16-1_win32.zip"/>
263
      </dependencies>
316
    <install><cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/></install>
264
    </metamodule>
317
  </binary>
265
 
318
  <metamodule id="orbit">
266
    <!-- GConf 2.24.0 requires dbus which I really don't want to start meddling with. I am
319
    <dependencies>
267
         seriously considering whether to create a win32-gconf which exposes the same API
320
     <dep package="libidl"/>
268
         but .. well I don't actually know how it would be different. I guess I won't. -->
321
     <dep package="orbit-bin"/><dep package="orbit-dev"/>
269
    <tarball id="gconf" version="2.22.0">
322
    </dependencies>
270
      <source href="http://ftp.gnome.org/pub/gnome/sources/GConf/2.22/GConf-2.22.0.tar.bz2"/>
323
  </metamodule>
271
      <preconfigure>
324
 
272
        <cmd cwd='@@SRCDIR@@' execute="['aclocal', '-I', '@@PREFIX@@share/aclocal']" />
325
  <!-- GConf 2.24.0+ requires dbus. It's going to be removed soon anyway. -->
273
        <cmd cwd='@@SRCDIR@@' execute="['libtoolize', '-v', '--force']" />
326
  <autotools id="gconf" version="2.22.0">
274
        <cmd cwd='@@SRCDIR@@' execute="['autoconf']" />
327
    <branch repo="ftp.gnome.org" module="GConf/2.22/GConf-2.22.0.tar.bz2" version="2.22.0"/>
275
        <cmd cwd='@@SRCDIR@@' execute="['automake', '-a', '--foreign']" />
328
    <!--<preconfigure>
276
      </preconfigure>
329
      <cmd cwd='@@SRCDIR@@' execute="['aclocal', '-I', '@@PREFIX@@share/aclocal']" />
277
      <patches>
330
      <cmd cwd='@@SRCDIR@@' execute="['libtoolize', '-v', 'force']" />
278
        <patch file="gconf-no-console-window.patch" strip="1"/>
331
      <cmd cwd='@@SRCDIR@@' execute="['autoconf']" />
279
        <patch file="gconf-win32-paths.patch" strip="1"/>
332
      <cmd cwd='@@SRCDIR@@' execute="['automake', '-a', 'foreign']" />
280
      </patches>
333
    </preconfigure>-->
281
  <dependencies>
334
    <patches>
282
    <dep package="orbit"/>
335
      <patch file="gconf-no-console-window.patch" strip="1"/>
283
    <dep package="libxml"/>
336
      <patch file="gconf-win32-paths.patch" strip="1"/>
284
    <dep package="gtk+"/>
337
    </patches>
285
  </dependencies>
338
    <dependencies>
286
    </tarball>
339
      <dep package="orbit"/>
 
 
340
      <dep package="libxml"/>
 
 
341
      <dep package="gtk+"/>
 
 
342
    </dependencies>
 
 
343
  </autotools>
287
 
344
 
288
<!--    <tarball id="libunique" version="1.0.6" configure="autogen.sh">
345
<!--    <tarball id="libunique" version="1.0.6" configure="autogen.sh">
289
          <source href="http://www.gnome.org/~ebassi/source/unique-1.0.6.tar.gz"/>
346
          <source href="http://www.gnome.org/~ebassi/source/unique-1.0.6.tar.gz"/>
290
        </tarball>-->
347
        </tarball>-->
291
 
348
 
292
 
349
  <tarball id="hicolor-icon-theme" version="0.10">
293
 
350
    <source href="http://icon-theme.freedesktop.org/releases/hicolor-icon-theme-0.10.tar.gz" />
294
        <tarball id="hicolor-icon-theme" version="0.10">
351
  </tarball>
295
                <source href="http://icon-theme.freedesktop.org/releases/hicolor-icon-theme-0.10.tar.gz"/>
352
 
296
        </tarball>
353
  <tarball id="icon-naming-utils" version="0.8.7">
297
 
354
    <source href="http://tango.freedesktop.org/releases/icon-naming-utils-0.8.7.tar.gz" />
298
        <tarball id="icon-naming-utils" version="0.8.7">
355
  </tarball>
299
                <source href="http://tango.freedesktop.org/releases/icon-naming-utils-0.8.7.tar.gz"/>
356
 
300
        </tarball>
357
  <autotools id="gnome-icon-theme" version="2.24.0">
301
 
358
    <branch repo="ftp.gnome.org" module="gnome-icon-theme/2.24/gnome-icon-theme-2.24.0.tar.bz2"
302
        <tarball id="gnome-icon-theme" version="2.24.0">
359
            version="2.24.0"/>
303
                <source href="http://ftp.gnome.org/pub/gnome/sources/gnome-icon-theme/2.24/gnome-icon-theme-2.24.0.tar.bz2"/>
360
    <dependencies>
304
                <dependencies>
361
      <dep package="hicolor-icon-theme" />
305
                        <dep package="hicolor-icon-theme" />
362
      <dep package="icon-naming-utils" />
306
                        <dep package="icon-naming-utils" />
363
    </dependencies>
307
                </dependencies>
364
  </autotools>
308
        </tarball>
 
 
309
 
365
 
310
        <!--<binary id="ImageMagick" version="6.3.7">
366
        <!--<binary id="ImageMagick" version="6.3.7">
311
                <source href="ftp://ftp.imagemagick.org/pub/ImageMagick/binaries/ImageMagick-i686-pc-mingw32.tar.gz" />
367
                <source href="ftp://ftp.imagemagick.org/pub/ImageMagick/binaries/ImageMagick-i686-pc-mingw32.tar.gz" />
321
                </dependencies>
377
                </dependencies>
322
        </tarball>-->
378
        </tarball>-->
323
 
379
 
324
 
380
  <!-- Based on the Dev-C++ DevPak available here:
325
 
381
         http://www.g-productions.net/files/devpak/DirectX90c.DevPak
326
    <!-- This is a much smaller d/l than the MS download of like 200MB, and already has MinGW
382
       Thanks! -->
327
        libs for us! All we need is directsound really. The silly .DevPak extension is
383
  <binary id="directx-dev" version="9.0c">
328
        special cased with tar.bz2 inside jhbuild/utils/unpack.py. -->
384
    <source href="http://downloads.sourceforge.net/calliope/dependencies/directx-dev-9.0c.zip"/>
329
    <!-- - FIXME: why doesn't gst also have a wavemapper output or something? Does it work on
385
    <install>
330
            systems with no directx ?? -->
386
      <cmd execute="['cp', '--recursive', '@@SRCDIR@@/*', '@@PREFIX@@']"/>
331
    <binary id="directx-sdk" version="9.0c">
387
    </install>
332
      <source href="http://www.g-productions.net/files/devpak/DirectX90c.DevPak"/>
388
  </binary>
333
      <patches>
389
 
334
        <patch file="dsound-mingw.patch" strip="1"/>
390
  <!-- FIXME: all of these below need to go into jhbuild-windows. -->
335
      </patches>
391
  <autotools id="liboil" version="0.3.16">
336
      <install>
392
    <branch repo="liboil.freedesktop.org" module="liboil-0.3.16.tar.gz" version="0.3.16" />
337
        <cmd execute="['cp', '--recursive', '@@SRCDIR@@/DirectX90c/lib/*', '@@PREFIX@@/lib/']"/>
393
  </autotools>
338
        <cmd execute="['cp', '--recursive', '@@SRCDIR@@/DirectX90c/include/*', '@@PREFIX@@/include/']"/>
394
 
339
        <cmd execute="['cp', '@@SRCDIR@@/DirectX90c/DLL/dxerr9.dll', '@@PREFIX@@/bin/']"/>
395
  <!-- FIXME: you'll need g++ for this to configure, for some stupid reason. -->
340
      </install>
396
  <autotools id="libogg" version="1.1.4">
341
    </binary>
397
    <branch repo="downloads.xiph.org" module="ogg/libogg-1.1.4.tar.gz" version="1.1.4" />
342
 
398
  </autotools>
343
    <tarball id="liboil" version="0.3.16">
399
 
344
      <source href="http://liboil.freedesktop.org/download/liboil-0.3.16.tar.gz"/>
400
  <!-- FIXME: The autogen script is wonky, use configure for now, this won't work building from git
345
    </tarball>
401
       however -->
346
 
402
  <autotools id="libvorbis" version="1.2.3" autogen-sh="configure">
347
    <!-- FIXME: you'll need g++ for this to configure, for some stupid reason. -->
403
    <branch repo="downloads.xiph.org" module="vorbis/libvorbis-1.2.3.tar.gz" version="1.2.3" />
348
    <tarball id="libogg" version="1.1.3">
404
    <dependencies>
349
      <source href="http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz"/>
405
      <dep package="libogg"/>
350
    </tarball>
406
    </dependencies>
351
 
407
  </autotools>
352
    <!-- Need to run autogen because we patch Makefile.am and configure.in -->
408
 
353
    <tarball id="libvorbis" version="1.2.0" configure="autogen.sh">
409
  <!-- Build flac from cvs, this compiles with fewer patches than 1.2.1. -->
354
      <source href="http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz"/>
410
  <autotools id="libflac">
355
      <patches>
411
    <!-- <branch repo="downloads.xiph.org" module="flac/flac-1.2.1.tar.gz" version="1.2.1" /> -->
356
        <patch file="vorbis-libs.patch" strip="1"/>
412
    <branch repo="flac.cvs.sourceforge.net" module="flac" />
357
      </patches>
413
    <patches>
358
      <dependencies>
414
      <!-- FIXME: jhbuild won't patch cvs repos, if flac don't merge this soon
359
        <dep package="libogg"/>
415
           you'll need to fix jhbuild -->
360
      </dependencies>
416
      <!-- https://sourceforge.net/tracker/?func=detail&aid=2856847&group_id=13478&atid=313478 -->
361
    </tarball>
417
      <patch file="flac-doc-install.patch" strip="2" />
362
 
418
    </patches>
363
    <!-- Need to run autogen because we patch Makefile.am and configure.in -->
419
    <dependencies>
364
    <tarball id="libflac" version="1.2.1" configure="autogen.sh">
420
      <dep package="libogg"/>
365
      <source href="http://downloads.xiph.org/releases/flac/flac-1.2.1.tar.gz"/>
421
    </dependencies>
366
      <patches>
422
  </autotools>
367
        <patch file="libflac-mingw.patch" strip="1"/>
423
 
368
      </patches>
424
 
369
      <dependencies>
425
  <autotools id="libmad" version="0.15.1b">
370
        <dep package="libogg"/>
426
    <branch repo="downloads.sourceforge.net" module="mad/libmad-0.15.1b.tar.gz" version="0.15.1b" />
371
      </dependencies>
427
    <patches>
372
    </tarball>
428
      <patch file="libmad-win32-dll.patch" strip="1"/>
373
 
429
    </patches>
374
    <tarball id="libmad" version="0.15.1b">
430
  </autotools>
375
      <source href="http://downloads.sourceforge.net/mad/libmad-0.15.1b.tar.gz"/>
431
 
376
      <!-- Rebuild autofudge after patch -->
432
  <autotools id="gperf" version="3.0.4">
377
      <preconfigure>
433
    <branch repo="ftp.gnu.org" module="gperf/gperf-3.0.4.tar.gz" version="3.0.4" />
378
        <cmd cwd='@@SRCDIR@@' execute="['libtoolize', '-v', ' --force']" />
434
  </autotools>
379
        <!-- This is kind of a hack using -I - aclocal_flags seems to not work. -->
435
 
380
        <cmd cwd='@@SRCDIR@@' execute="['aclocal', '-I', '@@PREFIX@@share/aclocal']" />
436
  <autotools id="libid3tag" version="0.15.1b">
381
        <cmd cwd='@@SRCDIR@@' execute="['autoconf']" />
437
    <branch repo="downloads.sourceforge.net" module="mad/libid3tag-0.15.1b.tar.gz"
382
        <cmd cwd='@@SRCDIR@@' execute="['automake', '-a', '--foreign']" />
438
            version="0.15.1b" />
383
      </preconfigure>
439
    <patches>
384
      <patches>
440
      <patch file="libid3tag-win32-dll.patch" strip="1"/>
385
        <patch file="libmad-win32-dll.patch" strip="1"/>
441
      <patch file="libid3tag-gperf-fix.patch" strip="1"/>
386
      </patches>
442
    </patches>
387
    </tarball>
443
    <dependencies>
388
 
444
      <dep package="gperf"/>
389
    <tarball id="gperf" version="3.0.4">
445
    </dependencies>
390
      <source href="http://ftp.gnu.org/gnu/gperf/gperf-3.0.4.tar.gz"/>
446
  </autotools>
391
    </tarball>
447
 
392
 
448
  <autotools id="gstreamer" version="0.10.24">
393
    <tarball id="libid3tag" version="0.15.1b">
449
    <branch repo="gstreamer.freedesktop.org" module="gstreamer/gstreamer-0.10.24.tar.bz2"
394
      <source href="http://downloads.sourceforge.net/mad/libid3tag-0.15.1b.tar.gz"/>
450
            version="0.10.24" />
395
      <preconfigure>
451
    <patches>
396
        <cmd cwd='@@SRCDIR@@' execute="['libtoolize', '-v', ' --force']" />
452
      <!-- FIXME: still needed? -->
397
        <cmd cwd='@@SRCDIR@@' execute="['aclocal', '-I', '@@PREFIX@@share/aclocal']" />
453
      <patch file="gstreamer-byte-ordering.patch" strip="1"/>
398
        <cmd cwd='@@SRCDIR@@' execute="['autoconf']" />
454
    </patches>
399
        <cmd cwd='@@SRCDIR@@' execute="['automake', '-a', '--foreign']" />
455
    <dependencies>
400
      </preconfigure>
456
      <dep package="liboil"/>
401
      <patches>
457
    </dependencies>
402
        <patch file="libid3tag-win32-dll.patch" strip="1"/>
458
  </autotools>
403
        <patch file="libid3tag-gperf-fix.patch" strip="1"/>
459
 
404
      </patches>
460
  <autotools id="gst-plugins-base" version="0.10.24" autogenargs="--disable-pango --disable-gnome-vfs">
405
      <dependencies>
461
    <branch repo="gstreamer.freedesktop.org"
406
        <dep package="gperf"/>
462
            module="gst-plugins-base/gst-plugins-base-0.10.24.tar.bz2" version="0.10.24" />
407
      </dependencies>
463
    <patches>
408
    </tarball>
464
      <patch file="gst-plugins-base-thread-priority.patch" strip="1"/>
409
 
465
      <!-- FIXME: Necessary still ? -->
410
        <!-- Run autogen instead of configure because of byte ordering patch which
466
      <patch file="gst-plugins-base-sdp-win32.patch" strip="1"/>
411
         requires a rebuild of autotools files. -->
467
    </patches>
412
         <!-- FIXME: for 0.10.21: no _fstat64 without some weird MSVCRT_VERSION define which I don't fully get -->
468
    <dependencies>
413
    <tarball id="gstreamer" version="0.10.20" configure="autogen.sh">
469
      <dep package="gstreamer"/>
414
      <source href="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.20.tar.bz2"/>
470
      <dep package="libvorbis"/>
415
      <patches>
471
    </dependencies>
416
        <patch file="gstreamer-byte-ordering.patch" strip="1"/>
472
  </autotools>
417
      </patches>
473
 
418
      <dependencies>
474
  <autotools id="gst-plugins-good" version="0.10.16" autogenargs="--disable-goom --disable-goom-2k1 --disable-rtp">
419
    <dep package="liboil"/>
475
    <branch repo="gstreamer.freedesktop.org"
420
      </dependencies>
476
            module="gst-plugins-good/gst-plugins-good-0.10.16.tar.bz2" version="0.10.16" />
421
    </tarball>
477
    <!-- <patches>
422
 
478
      <patch file="gst-plugins-good-udp-win32.patch" strip="1"/>
423
    <tarball id="gst-plugins-base" version="0.10.20" autogenargs="--disable-pango --disable-gnome-vfs">
479
    </patches> -->
424
      <source href="http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-0.10.20.tar.bz2"/>
480
    <dependencies>
425
      <patches>
481
      <dep package="gst-plugins-base"/>
426
        <patch file="gst-plugins-base-thread-priority.patch" strip="1"/>
482
      <dep package="libflac"/>
427
        <patch file="gst-plugins-base-sdp-win32.patch" strip="1"/>
483
      <dep package="directx-dev"/>
428
      </patches>
484
    </dependencies>
429
      <dependencies>
485
  </autotools>
430
    <dep package="gstreamer"/>
486
 
431
    <dep package="libvorbis"/>
487
  <autotools id="gst-plugins-ugly" version="0.10.12">
432
      </dependencies>
488
    <branch repo="gstreamer.freedesktop.org"
433
    </tarball>
489
            module="gst-plugins-ugly/gst-plugins-ugly-0.10.12.tar.bz2" version="0.10.12" />
434
 
490
    <dependencies>
435
    <tarball id="gst-plugins-good" version="0.10.10" autogenargs="--disable-goom --disable-goom-2k1 --disable-rtp">
491
      <dep package="gst-plugins-base"/>
436
      <source href="http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-0.10.10.tar.bz2"/>
492
      <dep package="libmad"/>
437
      <patches>
493
      <dep package="libid3tag"/>
438
        <patch file="gst-plugins-good-udp-win32.patch" strip="1"/>
494
    </dependencies>
439
      </patches>
495
  </autotools>
440
      <dependencies>
496
 
441
    <dep package="gst-plugins-base"/>
497
  <metamodule id="calliope-deps">
442
    <dep package="libflac"/>
498
    <dependencies>
443
    <dep package="directx-sdk"/>
499
      <dep package="gtk+" />
444
      </dependencies>
500
      <dep package="sqlite" />
445
    </tarball>
501
      <dep package="libsoup" />
446
 
502
      <dep package="gconf" />
447
    <tarball id="gst-plugins-ugly" version="0.10.10">
503
      <dep package="gnome-icon-theme" />
448
      <source href="http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-0.10.10.tar.bz2"/>
504
      <dep package="gstreamer" />
449
      <dependencies>
505
      <dep package="gst-plugins-base" />
450
    <dep package="gst-plugins-base"/>
506
      <dep package="gst-plugins-good" />
451
    <dep package="libmad"/>
507
      <dep package="gst-plugins-ugly" />
452
    <dep package="libid3tag"/>
508
    </dependencies>
453
      </dependencies>
509
  </metamodule>
454
    </tarball>
 
 
455
</moduleset>
510
</moduleset>
1
# FIXME: would be nice to use the builtins that come with jhbuild and/or js's jhbuild
1
# prefix:       target path to install the compiled binaries
2
moduleset = os.path.abspath('calliope-win32')
2
prefix = 'c:/build/'
3
modules = ['sqlite', 'gtk+', 'libsoup', 'gconf', 'gnome-icon-theme',
 
 
4
                   'gstreamer', 'gst-plugins-base', 'gst-plugins-good', 'gst-plugins-ugly']
 
 
5
 
3
 
6
# checkoutroot: path to download packages elsewhere
4
# checkoutroot: path to download packages elsewhere
7
# prefix:       target path to install the compiled binaries
 
 
8
checkoutroot = 'c:/build/src/'
5
checkoutroot = 'c:/build/src/'
9
prefix = 'c:/build/'
 
 
10
 
 
 
11
os.environ['LDFLAGS']  = '-L'+prefix+'lib'
 
 
12
os.environ['CFLAGS']   = '-mms-bitfields -march=i686 -I'+prefix+'include'
 
 
13
os.environ['CPPFLAGS'] = '-I'+prefix+'include'
 
 
14
 
 
 
15
#The host value is obtained with the result of executing
 
 
16
#the config.guess script on any of the packages.
 
 
17
#This value must be valid for most linux/x86 out there
 
 
18
os.environ['HOST'] = 'i686-pc-linux-gnuaout'
 
 
19
os.environ['TARGET'] = 'i586-pc-mingw32msvc'
 
 
20
 
 
 
21
# Use activestate perl not msys perl (for XML::Parser)
 
 
22
module_extra_env['intltool']={ 'PERL': 'c:/tools/perl/bin/perl' }
 
 
23
module_extra_env['icon-naming-utils']={ 'PERL': 'c:/tools/perl/bin/perl' }
 
 
24
 
 
 
25
#module_autogenargs['gstreamer'] =      ' --disable-registry'
 
 
26
module_autogenargs['gstreamer'] =     ' --disable-rpath'
 
 
27
module_autogenargs['gstreamer'] +=     ' --disable-binary-registry'
 
 
28
module_autogenargs['gst-plugins-base'] =     ' --disable-rpath'
 
 
29
module_autogenargs['gst-plugins-good'] =     ' --disable-rpath'
 
 
30
module_autogenargs['gst-plugins-bad'] =     ' --disable-rpath'
 
 
31
module_autogenargs['gst-plugins-ugly'] =     ' --disable-rpath'
 
 
32
 
6
 
33
# You will need to comment this out if you edit one of the deps and want a recompile ... but
7
# You will need to comment this out if you edit one of the deps and want a recompile ... but
34
# then your tarball builds will take a long long time as they will make install each time.
8
# then your tarball builds will take a long long time as they will make install each time.
36
 
10
 
37
# Obviously our modulesets can't be downloaded from GNOME SVN.
11
# Obviously our modulesets can't be downloaded from GNOME SVN.
38
use_local_modulesets = True
12
use_local_modulesets = True
 
 
13
 
 
 
14
moduleset = os.path.abspath('calliope-win32')
 
 
15
modules = ['calliope-deps']
 
 
16
 
 
 
17
# I think the best approach is to build with -g, and have makensis strip libraries as it packages
 
 
18
# them.
 
 
19
os.environ['CFLAGS']   = '-mms-bitfields -march=i686 -g '
 
 
20
 
 
 
21
# Use activestate perl not msys perl (for XML::Parser)
 
 
22
module_extra_env['intltool']={ 'PERL': 'c:/tools/perl/bin/perl' }
 
 
23
module_extra_env['icon-naming-utils']={ 'PERL': 'c:/tools/perl/bin/perl' }
 
 
24
 
 
 
25
module_autogenargs['gtk+'] = autogenargs + " --without-libtiff --without-libjpeg "
 
 
26
 
 
 
27
# FIXME: pthread isn't linked properly at the moment
 
 
28
module_autogenargs['cairo'] = autogenargs + " --disable-pthread "
 
 
29
 
 
 
30
# FIXME: Error on unrecognised args
 
 
31
module_autogenargs['zlib'] = ""
 
 
32
 
 
 
33
# FIXME: these are for debugging gst registry problems, should be able to delete them eventually
 
 
34
module_autogenargs['gstreamer'] = autogenargs + " --disable-rpath "
 
 
35
module_autogenargs['gstreamer'] += autogenargs + " --disable-binary-registry "
 
 
36
module_autogenargs['gst-plugins-base'] = autogenargs + " --disable-rpath "
 
 
37
module_autogenargs['gst-plugins-good'] = autogenargs + " --disable-rpath "
 
 
38
module_autogenargs['gst-plugins-bad'] = autogenargs + " --disable-rpath "
 
 
39
module_autogenargs['gst-plugins-ugly'] = autogenargs + " --disable-rpath "
 
 
40
 

Loggerhead is a web-based interface for Bazaar branches