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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# -*-makefile-*-
#
# Copyright (C) 2006-2009 by Robert Schwebel <r.schwebel@pengutronix.de>
# Pengutronix <info@pengutronix.de>, Germany
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_GLIB) += glib
#
# Paths and names
#
#ifdef PTXCONF_GLIB_EXPERIMENTAL
#GLIB_VERSION := 2.27.93
#GLIB_MD5 :=
#else
GLIB_VERSION := 2.48.0
GLIB_MD5 := 093a586f37d2853bdb129231e1b350e0
#endif
GLIB := glib-$(GLIB_VERSION)
GLIB_SUFFIX := tar.xz
GLIB_SOURCE := $(SRCDIR)/$(GLIB).$(GLIB_SUFFIX)
GLIB_DIR := $(BUILDDIR)/$(GLIB)
GLIB_URL := http://ftp.gnome.org/pub/GNOME/sources/glib/$(basename $(GLIB_VERSION))/glib-$(GLIB_VERSION).$(GLIB_SUFFIX)
GLIB_LICENSE := LGPL-2.0+
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
GLIB_CONF_ENV := \
$(CROSS_ENV) \
glib_cv_uscore=no \
glib_cv_stack_grows=no \
glib_cv_have_qsort_r=yes \
ac_cv_func_statfs=yes \
ac_cv_path_MSGFMT=: \
ac_cv_path_XGETTEXT=no
#
# autoconf
#
# --with-libiconv=no does also find the libc iconv implementation! So it
# is the right choice for no locales and locales-via-libc
#
GLIB_CONF_TOOL := autoconf
GLIB_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--runstatedir=/run \
--enable-debug=minimum \
--disable-gc-friendly \
--enable-mem-pools \
--disable-rebuilds \
--disable-installed-tests \
--disable-always-build-tests \
$(GLOBAL_LARGE_FILE_OPTION) \
--disable-static \
--enable-shared \
--disable-included-printf \
--disable-selinux \
--disable-fam \
--disable-xattr \
--disable-libelf \
--disable-gtk-doc \
--disable-man \
--disable-dtrace \
--disable-systemtap \
--disable-coverage \
--with-libiconv=no \
--with-threads=posix \
--with-pcre=system
# workaround for broken libtool
GLIB_CFLAGS:= -Wl,-rpath-link,$(GLIB_DIR)/gmodule/.libs
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/glib.targetinstall:
@$(call targetinfo)
@$(call install_init, glib)
@$(call install_fixup, glib,PRIORITY,optional)
@$(call install_fixup, glib,SECTION,base)
@$(call install_fixup, glib,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
@$(call install_fixup, glib,DESCRIPTION,missing)
# # /usr/bin/gtester-report
# # /usr/bin/glib-genmarshal
# # /usr/bin/glib-gettextize
# # /usr/bin/gobject-query
# # /usr/bin/glib-mkenums
# # /usr/bin/gtester
@$(call install_copy, glib, 0, 0, 0755, /usr/lib/gio/modules)
@for i in libgio-2.0 libglib-2.0 libgmodule-2.0 libgobject-2.0 libgthread-2.0; do \
$(call install_lib, glib, 0, 0, 0644, $$i); \
done
ifdef PTXCONF_GLIB_GDBUS
@$(call install_copy, glib, 0, 0, 0755, -, /usr/bin/gdbus)
endif
@$(call install_finish, glib)
@$(call touch)
# vim: syntax=make
|