annotate src/glib.mk @ 4291:436a81e04861

glib: update to v2.48.1 * src/glib.mk: update version, checksum * src/mingw-glib-1-fixes.patch: update patch
author John D
date Sun, 25 Dec 2016 18:51:46 -0500
parents 13be64f9f16d
children d5a5b8e659de
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2153
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 409
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
4 PKG := glib
1277
104c7045f292 improved update scripts of packages: glib librsvg sdl_sound sdl_ttf
Volker Grabsch <vog@notjusthosting.com>
parents: 1272
diff changeset
5 $(PKG)_IGNORE :=
4291
436a81e04861 glib: update to v2.48.1
John D
parents: 3480
diff changeset
6 $(PKG)_VERSION := 2.48.1
436a81e04861 glib: update to v2.48.1
John D
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := d59b6daf51dff21c6327734a99f1fb6c5328bcf9
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
8 $(PKG)_SUBDIR := glib-$($(PKG)_VERSION)
2482
d3034915cd6b packages atk* glib* libsigc++ pango: use xz archives
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
9 $(PKG)_FILE := glib-$($(PKG)_VERSION).tar.xz
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
10 $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/glib/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS := gettext pcre libiconv zlib libffi dbus
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2482
diff changeset
14 $(WGET) -q -O- 'http://git.gnome.org/browse/glib/refs/tags' | \
1297
b53f783f930b use only release versions of glib
Volker Grabsch <vog@notjusthosting.com>
parents: 1277
diff changeset
15 $(SED) -n "s,.*tag/?id=\([0-9]\+\.[0-9]*[02468]\.[^']*\).*,\1,p" | \
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
2743
abf2a94d035f package glib: build native tools only when not installed
Tony Theodore <tonyt@logyst.com>
parents: 2617
diff changeset
19 define $(PKG)_SYMLINK
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
20 $(LN_SF) `which glib-genmarshal` '$(HOST_BINDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
21 $(LN_SF) `which glib-compile-schemas` '$(HOST_BINDIR)'
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
22 $(LN_SF) `which glib-compile-resources` '$(HOST_BINDIR)'
2743
abf2a94d035f package glib: build native tools only when not installed
Tony Theodore <tonyt@logyst.com>
parents: 2617
diff changeset
23 endef
abf2a94d035f package glib: build native tools only when not installed
Tony Theodore <tonyt@logyst.com>
parents: 2617
diff changeset
24
3132
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
25 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
26 define $(PKG)_BUILD
3183
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents: 3174
diff changeset
27 cd $(1) && ./autogen.sh
3132
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
28 cd '$(1)' && PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' ./configure \
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
29 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
30 $(ENABLE_SHARED_OR_STATIC) \
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
31 --prefix='$(HOST_PREFIX)' \
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
32 --with-threads=win32 \
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
33 --with-pcre=system \
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
34 --with-libiconv=gnu \
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
35 --disable-modular-tests \
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
36 && $(CONFIGURE_POST_HOOK)
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
37
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
38 $(MAKE) -C '$(1)' -j '$(JOBS)'
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
39 $(MAKE) -C '$(1)' -j 1 install
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
40 endef
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
41 else
2743
abf2a94d035f package glib: build native tools only when not installed
Tony Theodore <tonyt@logyst.com>
parents: 2617
diff changeset
42 define $(PKG)_BUILD
3183
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents: 3174
diff changeset
43 cd '$(1)' && NOCONFIGURE=true ./autogen.sh
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
44 rm -f '$(HOST_BINDIR)/glib-*'
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 # cross build
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
47 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2817
diff changeset
48 $(ENABLE_SHARED_OR_STATIC) \
3183
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents: 3174
diff changeset
49 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
50 --prefix='$(HOST_PREFIX)' \
271
2801bf7db05e switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents: 269
diff changeset
51 --with-threads=win32 \
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 --with-pcre=system \
288
9d06f168f339 portability fix for FreeBSD in package glib: don't expect the build system to have libiconv installed
Volker Grabsch <vog@notjusthosting.com>
parents: 282
diff changeset
53 --with-libiconv=gnu \
2615
7e5aaa010a02 update package glib
Hans Petter Jansson <hpj@cl.no>
parents: 2525
diff changeset
54 --disable-inotify \
3183
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents: 3174
diff changeset
55 --disable-modular-tests \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
56 PKG_CONFIG='$(MXE_PKG_CONFIG)' \
4291
436a81e04861 glib: update to v2.48.1
John D
parents: 3480
diff changeset
57 PKG_CONFIG_PATH='$(PKG_CONFIG_PATH)'
3183
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents: 3174
diff changeset
58
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents: 3174
diff changeset
59 $(MAKE) -C '$(1)' -j '$(JOBS)'
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents: 3174
diff changeset
60 $(MAKE) -C '$(1)' -j 1 install
249
f9eef93cb829 new package: glib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
61 endef
3183
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents: 3174
diff changeset
62
3132
2733829a184e [MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
63 endif