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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
|
# -*-makefile-*-
#
# Copyright (C) 2006 by Erwin Rol
#
# 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_XORG_LIB_X11) += xorg-lib-x11
#
# Paths and names
#
XORG_LIB_X11_VERSION := 1.3.4
XORG_LIB_X11 := libX11-$(XORG_LIB_X11_VERSION)
XORG_LIB_X11_SUFFIX := tar.bz2
XORG_LIB_X11_URL := $(PTXCONF_SETUP_XORGMIRROR)/individual/lib/$(XORG_LIB_X11).$(XORG_LIB_X11_SUFFIX)
XORG_LIB_X11_SOURCE := $(SRCDIR)/$(XORG_LIB_X11).$(XORG_LIB_X11_SUFFIX)
XORG_LIB_X11_DIR := $(BUILDDIR)/$(XORG_LIB_X11)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(XORG_LIB_X11_SOURCE):
@$(call targetinfo)
@$(call get, XORG_LIB_X11)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
XORG_LIB_X11_PATH := PATH=$(CROSS_PATH)
XORG_LIB_X11_ENV := $(CROSS_ENV)
# configure states: "checking for working mmap...no"
# is this a correct fix?
XORG_LIB_X11_ENV += ac_cv_func_mmap_fixed_mapped=yes
# configure states: "checking for cpp... /usr/bin/cpp"
# what is the correct fix?
#
# autoconf
#
XORG_LIB_X11_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
$(XORG_OPTIONS_TRANS) \
--with-xcb \
--disable-malloc0returnsnull \
--disable-man-pages \
--disable-specs \
--enable-xthreads \
--enable-xcms \
--enable-composecache
#
# if no value is given ignore the "--datadir" switch
#
ifneq ($(call remove_quotes,$(PTXCONF_XORG_DEFAULT_DATA_DIR)),)
XORG_LIB_X11_AUTOCONF += --datadir=$(PTXCONF_XORG_DEFAULT_DATA_DIR)
endif
#
# feature is marked as experimental if disabled!
#
ifdef PTXCONF_XORG_LIB_X11_XKB
XORG_LIB_X11_AUTOCONF += --enable-xkb
else
XORG_LIB_X11_AUTOCONF += --disable-xkb
endif
ifdef PTXCONF_XORG_SERVER_OPT_SECURE_RPC
XORG_LIB_X11_AUTOCONF += --enable-secure-rpc
else
XORG_LIB_X11_AUTOCONF += --disable-secure-rpc
endif
ifdef PTXCONF_XORG_LIB_X11_XF86BIGFONT
XORG_LIB_X11_AUTOCONF += --enable-xf86bigfont
else
XORG_LIB_X11_AUTOCONF += --disable-xf86bigfont
endif
ifdef PTXCONF_XORG_LIB_X11_I18N
XORG_LIB_X11_AUTOCONF += --enable-loadable-i18n
else
XORG_LIB_X11_AUTOCONF += --disable-loadable-i18n
endif
ifdef PTXCONF_XORG_LIB_X11_CURSOR
XORG_LIB_X11_AUTOCONF += --enable-loadable-xcursor
else
XORG_LIB_X11_AUTOCONF += --disable-loadable-xcursor
endif
# missing configure switches:
# --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL*
# --enable-xlocaledir Enable XLOCALEDIR environment variable support
#
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/xorg-lib-x11.targetinstall:
@$(call targetinfo)
@$(call install_init, xorg-lib-x11)
@$(call install_fixup, xorg-lib-x11,PRIORITY,optional)
@$(call install_fixup, xorg-lib-x11,SECTION,base)
@$(call install_fixup, xorg-lib-x11,AUTHOR,"Erwin Rol <ero@pengutronix.de>")
@$(call install_fixup, xorg-lib-x11,DESCRIPTION,missing)
@$(call install_lib, xorg-lib-x11, 0, 0, 0644, libX11)
@$(call install_lib, xorg-lib-x11, 0, 0, 0644, libX11-xcb)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/XKeysymDB)
ifdef PTXCONF_XORG_LIB_X11_INSTALL_LOCALE
@$(call install_copy, xorg-lib-x11, 0, 0, 0755, /usr/lib/X11/locale)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/locale.alias,n)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/locale.dir,n)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/compose.dir,n)
@$(call install_copy, xorg-lib-x11, 0, 0, 0755, /usr/lib/X11/locale/C)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/C/Compose,n)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/C/XI18N_OBJS,n)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/C/XLC_LOCALE,n)
endif
ifdef PTXCONF_XORG_LIB_X11_INSTALL_LOCALE_8859_1
@$(call install_copy, xorg-lib-x11, 0, 0, 0755, /usr/lib/X11/locale/iso8859-1)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/iso8859-1/Compose,n)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/iso8859-1/XI18N_OBJS,n)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/iso8859-1/XLC_LOCALE,n)
endif
ifdef PTXCONF_XORG_LIB_X11_INSTALL_LOCALE_8859_15
@$(call install_copy, xorg-lib-x11, 0, 0, 0755, /usr/lib/X11/locale/iso8859-15)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/iso8859-15/Compose,n)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/iso8859-15/XI18N_OBJS,n)
@$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/iso8859-15/XLC_LOCALE,n)
endif
ifdef PTXCONF_XORG_LIB_X11_INSTALL_LOCALE_CHN_MAIN
@cd $(XORG_LIB_X11_DIR)/nls; \
for file in `find . -name "*zh_CN*" -type d`; do \
echo "scanning $$file"; \
if [ -d $$file ]; then \
$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/$$file/Compose,n); \
$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/$$file/XI18N_OBJS,n); \
$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/$$file/XLC_LOCALE,n); \
fi; \
done;
endif
ifdef PTXCONF_XORG_LIB_X11_INSTALL_LOCALE_CHN_HK
@cd $(XORG_LIB_X11_DIR)/nls; \
for file in `find . -name "*zh_HK*" -type d`; do \
if [ -d $$file ]; then \
$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/$$file/Compose,n); \
$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/$$file/XI18N_OBJS,n); \
$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/$$file/XLC_LOCALE,n); \
fi; \
done;
endif
ifdef PTXCONF_XORG_LIB_X11_INSTALL_LOCALE_CHN_TW
@cd $(XORG_LIB_X11_DIR)/nls; \
for file in `find . -name "*zh_TW*" -type d`; do \
if [ -d $$file ]; then \
$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/$$file/Compose,n); \
$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/$$file/XI18N_OBJS,n); \
$(call install_copy, xorg-lib-x11, 0, 0, 0644, -, \
/usr/lib/X11/locale/$$file/XLC_LOCALE,n); \
fi; \
done;
endif
@$(call install_finish, xorg-lib-x11)
@$(call touch)
# vim: syntax=make
|