summaryrefslogtreecommitdiffstats
path: root/rules/host-glib.make
blob: 1278e97f4c3817be24496ab82b969009de5d0bcb (plain)
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
# -*-makefile-*-
#
# Copyright (C) 2007 by Luotao Fu <lfu@pengutronix.de>
#
# 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
#
HOST_PACKAGES-$(PTXCONF_HOST_GLIB) += host-glib

#
# Paths and names
#
HOST_GLIB_DIR	= $(HOST_BUILDDIR)/$(GLIB)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

HOST_GLIB_CONF_ENV	:= \
	$(HOST_ENV) \
	ac_cv_path_MSGFMT="" \
	ac_cv_path_XGETTEXT="" \
	ac_cv_prog_GTKDOC_CHECK="" \
	ac_cv_path_GTKDOC_REBASE="" \
	ac_cv_path_GTKDOC_MKPDF=""

#
# autoconf
#
HOST_GLIB_CONF_TOOL	:= autoconf
HOST_GLIB_CONF_OPT	:= \
	$(HOST_AUTOCONF) \
	--disable-maintainer-mode \
	--disable-debug \
	--disable-gc-friendly \
	--enable-mem-pools \
	--disable-installed-tests \
	--disable-always-build-tests \
	--disable-static \
	--enable-shared \
	--disable-included-printf \
	--disable-selinux \
	--disable-fam \
	--disable-xattr \
	--disable-libelf \
	--disable-libmount \
	--disable-gtk-doc \
	--disable-gtk-doc-html \
	--disable-gtk-doc-pdf \
	--disable-man \
	--disable-dtrace \
	--disable-systemtap \
	--disable-coverage \
	--with-libiconv=no \
	--with-threads=posix \
	--with-pcre=system

$(STATEDIR)/host-glib.install.post:
	@$(call targetinfo)
	@$(call world/install.post, HOST_GLIB)
	@sed -i "s:'/share':'$(PTXCONF_SYSROOT_HOST)/share':" "$(PTXCONF_SYSROOT_HOST)/bin/gdbus-codegen"
	@sed -i "s:^prefix=.*:prefix=$(PTXCONF_SYSROOT_HOST):" "$(PTXCONF_SYSROOT_HOST)/bin/glib-gettextize"
	@$(call touch)

# vim: syntax=make