~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to dist/gdb/Makefile.mingw

  • Committer: Timo Jyrinki
  • Date: 2013-12-02 09:16:15 UTC
  • mfrom: (1.1.29)
  • Revision ID: timo.jyrinki@canonical.com-20131202091615-xbj1os1f604ber1m
New upstream release candidate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
pydir=${broot}/python
7
7
expatversion=2.0.1
8
8
iconvversion=1.14
9
 
version=7.5
 
9
version=7.6.1
10
10
targetdir=${broot}/qtcreator-gdb-${version}
11
11
gdbtargets=$(addprefix ${targetdir}/gdb-, ${targets})
12
 
packageparts=${targetdir}/lib ${targetdir}/lib ${targetdir}/libiconv-2.dll ${targetdir}/python27.dll ${targetdir}/libexpat-1.dll
 
12
packageparts=${targetdir}/lib ${targetdir}/data-directory ${targetdir}/libiconv-2.dll ${targetdir}/python27.dll ${targetdir}/libexpat-1.dll
13
13
arch=`uname -sm | sed 's/ /-/g' | tr A-Z a-z`
14
14
packagename=qtcreator-gdb-${version}-${arch}.tar.gz
15
15
 
36
36
${source}/python.zip: | makesourcedir checkwget
37
37
        cd ${source} && \
38
38
        echo "Downloading python..." && \
39
 
        wget -q http://releases.qt-project.org/gdb/build-prerequisites/python.zip && \
 
39
        wget -q http://download.qt-project.org/development_releases/prebuilt/gdb/build-prerequisites/python.zip && \
40
40
        touch python.zip
41
41
 
42
42
${broot}/python/python.exe: ${source}/python.zip | checkunzip
72
72
        echo "Extracting gdb..." && \
73
73
        tar xf ${source}/gdb-${version}.tar.bz2 && \
74
74
        cd gdb-${version} && \
75
 
        touch configure && \
76
 
        patch -p2 < ${broot}/patches/gdb-ipv6.patch
 
75
        touch configure
77
76
 
78
77
${staging}/lib/libiconv.a: ${source}/libiconv-${iconvversion}.tar.gz | makestagingdir
79
78
        cd ${staging} && \
80
79
        echo "Extracting iconv..." && \
81
80
        tar xf ${source}/libiconv-${iconvversion}.tar.gz && \
82
81
        cd libiconv-${iconvversion} && \
83
 
        ./configure -prefix=${staging} --enable-static && \
 
82
        ./configure -prefix=${staging} --enable-static --build=i686-pc-mingw32 && \
84
83
        ${MAKE} && ${MAKE} install
85
84
 
86
85
${staging}/lib/libexpat.a: ${source}/expat-${expatversion}.tar.gz | makestagingdir
88
87
        echo "Extracting expat..." && \
89
88
        tar xf ${source}/expat-${expatversion}.tar.gz && \
90
89
        cd expat-${expatversion} && \
91
 
        ./configure -prefix=${staging} --enable-static && \
 
90
        ./configure -prefix=${staging} --enable-static --build=i686-pc-mingw32 && \
92
91
        ${MAKE} && ${MAKE} install
93
92
 
94
93
${gdbtargets}: ${targetdir}/gdb-%: ${staging}/lib/libexpat.a ${staging}/lib/libiconv.a ${staging}/gdb-${version}/configure | maketargetdir ${broot}/python/python.exe
97
96
        LDFLAGS="L${pydir} -lpthread -ldl -lutil -lpython27" && \
98
97
        CFLAGS="-I${pydir}/include" && \
99
98
        cd ${staging}/gdb-${version}-$* && \
100
 
        ${staging}/gdb-${version}/configure --target=$* --disable-nls --disable-werror \
 
99
        ${staging}/gdb-${version}/configure --target=$* --disable-nls --disable-werror --build=i686-pc-mingw32 \
101
100
        --with-libiconv-prefix=${staging} \
102
101
        --with-expat --with-libexpat-prefix=${staging} \
103
102
        --with-separate-debug-dir="" \
110
109
        cp ${staging}/bin/libexpat* ${targetdir} && \
111
110
        cp ${pydir}/python*.dll ${targetdir} && \
112
111
        cp -r ${pydir}/lib ${targetdir} && \
 
112
        mkdir -p ${targetdir}/data-directory && \
 
113
        cp -r ${staging}/gdb-${version}-i686-pc-mingw32/gdb/data-directory/{python,syscalls} ${targetdir}/data-directory && \
113
114
        mv ${targetdir} ${targetdir}-${arch} && \
114
115
        echo "Packing..." && \
115
116
        tar czf ${packagename} qtcreator-gdb-${version}-${arch} && \