summaryrefslogtreecommitdiffstats
path: root/mingw-w64-gtk2/PKGBUILD
blob: 1f1c67d4add64dcd5fd78c56a691f1507b1880db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
pkgname=mingw-w64-gtk2
pkgver=2.24.20
pkgrel=1
pkgdesc="GTK+ is a multi-platform toolkit (v2) (mingw-w64)"
arch=(any)
url="http://www.gtk.org"
license=("LGPL")
makedepends=(mingw-w64-gcc mingw-w64-pkg-config gtk-update-icon-cache)
depends=(
'mingw-w64-crt'
'mingw-w64-atk>=1.29.2'
'mingw-w64-pango>=1.20'
'mingw-w64-glib2>=2.28.0'
'mingw-w64-cairo>=1.6'
'mingw-w64-gdk-pixbuf2>=2.21.0')
options=(!libtool !strip !buildflags)
source=(
"http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-${pkgver}.tar.xz"
"gtk-dont-define-initguid.patch")

# The second source file is downloaded from Fedora Project

md5sums=("9d7833331d7accd80668e29d7f567ce5"
         "4038939df90f80ea6923d67afff28e03")

_architectures="i686-w64-mingw32 x86_64-w64-mingw32"

build() {
  cd "${srcdir}/gtk+-${pkgver}"
  patch -Np0 < '../gtk-dont-define-initguid.patch'
  for _arch in ${_architectures}; do
    export CFLAGS="-O2 -mms-bitfields"
    export CXXFLAGS="${CFLAGS}"
    unset LDFLAGS
    mkdir -p "${srcdir}/${pkgname}-${pkgver}-build-${_arch}"
    msg "Building for ${_arch}"
    msg "Copying the source directory"
    cp -pr "$srcdir/gtk+-$pkgver/"* "${srcdir}/${pkgname}-${pkgver}-build-${_arch}"
    cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}"
    if [ $_arch = "x86_64-w64-mingw32" ]; then
      rm "gtk/gtk.def"
    fi
    msg "Starting configure and make"
    ./configure \
      --prefix=/usr/${_arch} \
      --build=$CHOST \
      --host=${_arch} \
      --with-gdktarget=win32 \
      --disable-modules \
      --disable-cups \
      --disable-papi \
      --enable-static \
      --enable-shared \
      --disable-glibtest
    make
  done
}

package() {
  for _arch in ${_architectures}; do
    cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}"
    make -j1 DESTDIR="$pkgdir" install
    find "$pkgdir/usr/${_arch}" -name '*.exe' -o -name '*.bat' -o -name '*.def' -o -name '*.exp' -o -name '*.manifest' | xargs -rtl1 rm
    find "$pkgdir/usr/${_arch}" -name '*.dll' | xargs -rtl1 ${_arch}-strip -x
    find "$pkgdir/usr/${_arch}" -name '*.a' -o -name '*.dll' | xargs -rtl1 ${_arch}-strip -g
    rm -r "$pkgdir/usr/${_arch}/"{etc,share}
  done
}
it/freebsd-ports/commit/x11-toolkits?h=2021Q4&id=932e6dc413857ca66802dc4fbe28f5477d4abc11'>Switch C compiler used to compile GHC to base Clang.Tobias C. Berner2018-02-1013-0/+13 * Add upstream patch to fix bug caused by not translating coordinatesAdriaan de Groot2018-02-072-1/+171 * Bump PORTREVISION in the PyQt5 ports after r460809.Raphael Kubo da Costa2018-02-053-0/+3 * - Update WWWs for all py-qt4* and py-qt5* portsDmitry Marakasov2018-02-037-4/+7 * Multiple ports:Jason W. Bacon2018-01-311-1/+0 * lang/mono: update to version 5.2.0.215 (and enhance USES=mono)David Naylor2018-01-313-1/+3 * Update to 2.3.4-12.el7_4.Tijl Coosemans2018-01-302-9/+9 * Update Qt5 to 5.9.4.Raphael Kubo da Costa2018-01-291-0/+4 * Revert r460248Baptiste Daroussin2018-01-2910-0/+494 * Remove swt-develBaptiste Daroussin2018-01-2910-494/+0 * - Update textproc/py-sphinx to 1.6.5. [0]Marcelo Araujo2018-01-292-274/+275 * Unbreak x11-toolkits/diorite after vala upgrade from 0.36.4 to 0.36.9.Don Lewis2018-01-282-4/+17 * Unbreak and undeprecate (chase libsigc++20 update).Alexey Dokuchaev2018-01-281-5/+3 * New port: x11-toolkits/nanogui: Minimalistic GUI library for OpenGLYuri Victorovich2018-01-276-0/+197 * Fix build with clang 6Antoine Brodin2018-01-251-0/+1 * x11-toolkits/bwidget: update to 1.9.12Pietro Cerutti2018-01-233-5/+5 * Drop %%DEBUG%% from several plist entries.Raphael Kubo da Costa2018-01-212-26/+27 * devel/boost-*: update to 1.66.0Jan Beich2018-01-181-1/+1 * x11-toolkits/kf5-kwidgetsaddons: use respun tarballTobias C. Berner2018-01-172-4/+7 * Update KDE Frameworks to 5.42.0Tobias C. Berner2018-01-1714-38/+37 * - Add NOTIFY option, enabled by defaultGuido Falsi2018-01-141-3/+13 * Remove superfluous linefeeds and fix some other minor whitespace bugs.Alexey Dokuchaev2018-01-122-2/+0 * Do not abuse INSTALL_MAN when installing documentation, examples, andAlexey Dokuchaev2018-01-111-2/+2 * x11-toolkits/tk86: fix plistPietro Cerutti2018-01-102-1/+2 * Remove support for variables that have been deprecated for a while.Mathieu Arnold2018-01-091-381/+0 * New port: x11-toolkits/qt5-gtkplatformRaphael Kubo da Costa2018-01-095-0/+48 * x11-toolkits/gtkmm20: unbreak build with Clang 6 (C++14 by default)Jan Beich2018-01-094-26/+96 * Fix the build on i386 with clang 6.0.Raphael Kubo da Costa2018-01-081-0/+48 * x11-toolkits/qt5-gui, fix build with clang 6Tobias C. Berner2018-01-071-1/+2 * x11-toolkits/attica fix build with clang6Tobias C. Berner2018-01-071-1/+2 * Update Qt5 ports to 5.9.3.Raphael Kubo da Costa2018-01-0716-143/+762 * Unbreak poudriere bulk -a, py-opencv works only with python 2.7Antoine Brodin2018-01-061-1/+1 * Update ancillary mono portsDavid Naylor2018-01-068-48/+44 * x11-toolkits: update to 1.10.0David Naylor2018-01-063-2040/+915 * x11-toolkits/pure-tk: adjust for new Tk pkg-config filePietro Cerutti2018-01-041-1/+1 * x11-toolkits/tk8[56]: adjust pkgconf files to reflect their tcl equivalentsPietro Cerutti2018-01-042-0/+6 * lang/pypy(3): update to 5.10, add flavors to ancillary portsDavid Naylor2018-01-041-1/+0 * Update SIP to 4.19.6, PyQt4 to 4.12.1 and PyQt5 to 5.9.2.Raphael Kubo da Costa2018-01-034-2/+5 * lang/tcl86, x11-toolkits/tk86: update to 8.6.8Pietro Cerutti2018-01-024-6/+6 * Update to 0.45Sunpoet Po-Chuan Hsieh2018-01-022-4/+7 * Update to 1.11.1Sunpoet Po-Chuan Hsieh2017-12-283-4/+5 * Update to version 2.2.15Pawel Pekala2017-12-282-5/+4 * Deprecate ports broken for more than 6 monthsAntoine Brodin2017-12-271-0/+2 * - Update x11-toolkits/girara to 0.2.8Guido Falsi2017-12-263-19/+18 * x11-toolkits/mygui: lift BROKEN after r456766Jan Beich2017-12-201-3/+0 * - Update to latest git, fixes c++11 problemsDmitry Marakasov2017-12-203-10/+6 * Mark more recently failing ports broken on aarch64.Mark Linimon2017-12-191-0/+1 * Update KDE Frameworks to 5.41Tobias C. Berner2017-12-1513-33/+35 * - Update WWWDmitry Marakasov2017-12-141-1/+1 * - Those ports fail to build with python3Antoine Brodin2017-12-112-4/+4 * Mark more ports broken that fail on both armv6 and armv7.Mark Linimon2017-12-091-2/+4 * x11-toolkits/gtk30: add dependency on librsvg2Steve Wills2017-12-081-2/+3 * Update 2.3.7 --> 2.3.8Cy Schubert2017-12-062-4/+4 * Adjust MASTER_SITES to replace a hardcoded version number withCy Schubert2017-12-061-1/+1 * py-wax doesn't work with python3Antoine Brodin2017-12-051-1/+1 * Fix configure options for gnustep-makeDavid Chisnall2017-12-032-1/+2 * - Add LICENSEDmitry Marakasov2017-12-021-5/+5 * - Add LICENSEDmitry Marakasov2017-12-011-3/+4 * Cleanup LIB_DEPENDS on libpngAntoine Brodin2017-12-013-3/+3 * Convert Python ports to FLAVORS.Mathieu Arnold2017-11-3023-65/+49 * For ports that are marked BROKEN on armv6, and also fail to build onMark Linimon2017-11-301-0/+1 * - Switch to USES=localbaseDmitry Marakasov2017-11-282-4/+3 * Remove `groff' from USES.Alexey Dokuchaev2017-11-222