Mercurial > mxe-octave
annotate src/glib.mk @ 4733:1ecb1e67eaa1
* src/src-msys-dos2unix.mk: update checksum
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 09 Jun 2018 10:13:46 -0400 |
parents | beb3a5cdd67d |
children | 7e89d17a530c |
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 | 6 $(PKG)_VERSION := 2.48.1 |
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 | 12 |
13 define $(PKG)_UPDATE | |
4617 | 14 $(WGET) -q -O- 'https://github.com/GNOME/glib/tags' | \ |
15 $(SED) -n 's|.*releases/tag/\([^"]*\).*|\1|p' | \ | |
16 $(SORT) -Vr | \ | |
249 | 17 head -1 |
18 endef | |
19 | |
2743
abf2a94d035f
package glib: build native tools only when not installed
Tony Theodore <tonyt@logyst.com>
parents:
2617
diff
changeset
|
20 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
|
21 $(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
|
22 $(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
|
23 $(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
|
24 endef |
abf2a94d035f
package glib: build native tools only when not installed
Tony Theodore <tonyt@logyst.com>
parents:
2617
diff
changeset
|
25 |
3132
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
26 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
27 define $(PKG)_BUILD |
3183
96e96221fe09
Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
3174
diff
changeset
|
28 cd $(1) && ./autogen.sh |
3132
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
29 cd '$(1)' && PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' ./configure \ |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
30 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
31 $(ENABLE_SHARED_OR_STATIC) \ |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
32 --prefix='$(HOST_PREFIX)' \ |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
33 --with-threads=win32 \ |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
34 --with-pcre=system \ |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
35 --with-libiconv=gnu \ |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
36 --disable-modular-tests \ |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
37 && $(CONFIGURE_POST_HOOK) |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
38 |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
39 $(MAKE) -C '$(1)' -j '$(JOBS)' |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
40 $(MAKE) -C '$(1)' -j 1 install |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
41 endef |
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
42 else |
2743
abf2a94d035f
package glib: build native tools only when not installed
Tony Theodore <tonyt@logyst.com>
parents:
2617
diff
changeset
|
43 define $(PKG)_BUILD |
3183
96e96221fe09
Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
3174
diff
changeset
|
44 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
|
45 rm -f '$(HOST_BINDIR)/glib-*' |
249 | 46 # cross build |
47 cd '$(1)' && ./configure \ | |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
48 $(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
|
49 $(ENABLE_SHARED_OR_STATIC) \ |
3183
96e96221fe09
Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
3174
diff
changeset
|
50 $(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
|
51 --prefix='$(HOST_PREFIX)' \ |
271
2801bf7db05e
switch glib to win32 threading
Volker Grabsch <vog@notjusthosting.com>
parents:
269
diff
changeset
|
52 --with-threads=win32 \ |
249 | 53 --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
|
54 --with-libiconv=gnu \ |
2615 | 55 --disable-inotify \ |
3183
96e96221fe09
Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
3174
diff
changeset
|
56 --disable-modular-tests \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
57 PKG_CONFIG='$(MXE_PKG_CONFIG)' \ |
4291 | 58 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
|
59 |
96e96221fe09
Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
3174
diff
changeset
|
60 $(MAKE) -C '$(1)' -j '$(JOBS)' |
96e96221fe09
Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
3174
diff
changeset
|
61 $(MAKE) -C '$(1)' -j 1 install |
249 | 62 endef |
3183
96e96221fe09
Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
3174
diff
changeset
|
63 |
3132
2733829a184e
[MSVC] enable glib compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
64 endif |