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
|
# -*-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
#else
GLIB_VERSION := 2.28.0
#endif
GLIB := glib-$(GLIB_VERSION)
GLIB_SUFFIX := tar.bz2
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 := LGPLv2+
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(GLIB_SOURCE):
@$(call targetinfo)
@$(call get, GLIB)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
GLIB_PATH := PATH=$(CROSS_PATH)
GLIB_ENV := \
$(CROSS_ENV) \
glib_cv_uscore=no \
glib_cv_stack_grows=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_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
--enable-silent-rules \
--enable-debug=minimum \
--disable-gc-friendly \
--enable-mem-pools \
--enable-threads \
--with-threads=posix \
--disable-rebuilds \
--disable-included-printf \
--disable-selinux \
--disable-fam \
--disable-xattr \
--disable-gtk-doc \
--disable-man \
--with-pcre=internal \
--enable-static \
--enable-shared \
--with-libiconv=no \
--disable-gcov
# ----------------------------------------------------------------------------
# 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
@$(call install_finish, glib)
@$(call touch)
# vim: syntax=make
|