author | Alan Coopersmith <Alan.Coopersmith@Oracle.COM> |
Tue, 22 Jun 2010 13:56:05 -0700 | |
changeset 967 | efbd0ee6805d |
parent 950 | f0247b47266e |
child 970 | 272328fe1b4a |
permissions | -rw-r--r-- |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
1 |
############################################################################### |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
2 |
# |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
3 |
# Fontconfig 2.x Makefile |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
4 |
# |
935
f812f9863e75
6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
919
diff
changeset
|
5 |
# Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
6 |
# |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
7 |
# Permission is hereby granted, free of charge, to any person obtaining a |
919
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
8 |
# copy of this software and associated documentation files (the "Software"), |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
9 |
# to deal in the Software without restriction, including without limitation |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
10 |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
11 |
# and/or sell copies of the Software, and to permit persons to whom the |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
12 |
# Software is furnished to do so, subject to the following conditions: |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
13 |
# |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
14 |
# The above copyright notice and this permission notice (including the next |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
15 |
# paragraph) shall be included in all copies or substantial portions of the |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
16 |
# Software. |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
17 |
# |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
18 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
19 |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
20 |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
21 |
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
22 |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
23 |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
24 |
# DEALINGS IN THE SOFTWARE. |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
25 |
# |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
26 |
# |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
27 |
|
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
28 |
# Package name used in tarballs |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
29 |
MODULE_NAME=fontconfig |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
30 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
31 |
# Version number (used in path names) |
950
f0247b47266e
6902956 Fontconfig version 2.8.0 [PSARC/2010/162]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
947
diff
changeset
|
32 |
MODULE_VERSION=2.8.0 |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
33 |
|
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
907
diff
changeset
|
34 |
# Checksums for upstream tarball |
950
f0247b47266e
6902956 Fontconfig version 2.8.0 [PSARC/2010/162]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
947
diff
changeset
|
35 |
TARBALL_MD5 = 77e15a92006ddc2adbb06f840d591c0e |
f0247b47266e
6902956 Fontconfig version 2.8.0 [PSARC/2010/162]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
947
diff
changeset
|
36 |
TARBALL_SHA1 = 570fb55eb14f2c92a7b470b941e9d35dbfafa716 |
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
907
diff
changeset
|
37 |
|
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
38 |
# Source tarball |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
39 |
SOURCE_TARBALL_NAME=fontconfig-$(MODULE_VERSION).tar.gz |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
40 |
SOURCE_TARBALL_NAME_SET=yes |
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
41 |
SOURCE_UNCOMPRESS=gzcat |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
42 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
43 |
# Download site for source |
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
44 |
SOURCE_URL=http://fontconfig.org/release/$(SOURCE_TARBALL_NAME) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
45 |
SOURCE_URL_SET=yes |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
46 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
47 |
# Patches to apply to source after unpacking, in order |
950
f0247b47266e
6902956 Fontconfig version 2.8.0 [PSARC/2010/162]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
947
diff
changeset
|
48 |
SOURCE_PATCHES = \ |
f0247b47266e
6902956 Fontconfig version 2.8.0 [PSARC/2010/162]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
947
diff
changeset
|
49 |
arial-narrow.conf.patch \ |
f0247b47266e
6902956 Fontconfig version 2.8.0 [PSARC/2010/162]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
947
diff
changeset
|
50 |
cjk-fonts.conf.patch \ |
f0247b47266e
6902956 Fontconfig version 2.8.0 [PSARC/2010/162]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
947
diff
changeset
|
51 |
Makefile.am.0.patch \ |
f0247b47266e
6902956 Fontconfig version 2.8.0 [PSARC/2010/162]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
947
diff
changeset
|
52 |
bitmap-hacks.patch \ |
f0247b47266e
6902956 Fontconfig version 2.8.0 [PSARC/2010/162]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
947
diff
changeset
|
53 |
6447517.patch \ |
f0247b47266e
6902956 Fontconfig version 2.8.0 [PSARC/2010/162]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
947
diff
changeset
|
54 |
6770058.patch |
364
8e78f63dd484
6476054 Upgrade fontconfig to 2.5.0
Srirama Sharma <Srirama.Sharma@Sun.COM>
parents:
339
diff
changeset
|
55 |
|
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
56 |
# Library name (used for specfiles/mapfiles) |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
57 |
LIBNAME=fontconfig |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
58 |
|
591
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
59 |
# Man pages to apply Sun footer to & attributes to list |
947
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
60 |
FONTCONFIG_CMDS = fc-cache fc-list fc-query fc-cat fc-match fc-scan |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
61 |
SUNTOUCHED_MANPAGES = $(FONTCONFIG_CMDS:%=%/%.1) doc/*.3 doc/*.5 |
591
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
62 |
SUN_PACKAGE=SUNWfontconfig |
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
63 |
MODULE_STABILITY=Volatile |
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
64 |
LIB_MAN_SUFFIX=3fontconfig |
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
65 |
MODULE_MTLEVEL=Unknown |
947
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
66 |
MODULE_MTLEVEL_SET=yes |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
67 |
|
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
68 |
# Override specific attributes for specific man pages |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
69 |
SUNTOUCH_MAN_FLAGS = $(COMMON_SUNTOUCH_MAN_FLAGS) \ |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
70 |
$(SUNTOUCH_MAN_FLAGS_$(@F:%.$(FIXED_MAN_SUFFIX)=%)) |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
71 |
SUNTOUCH_MAN_FLAGS_SET = yes |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
72 |
# API docs are in doc/*.3 |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
73 |
SUNTOUCH_MAN_FLAGS_*.3 = $(MODTYPE_SUNTOUCH_MAN_FLAGS) |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
74 |
# Command docs are in per-command dirs |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
75 |
SUNTOUCH_MAN_FLAGS_CMDS = -p $(MODULE_PREFIX)/bin/ |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
76 |
SUNTOUCH_MAN_FLAGS_fc-cache.1 = $(SUNTOUCH_MAN_FLAGS_CMDS) |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
77 |
SUNTOUCH_MAN_FLAGS_fc-list.1 = $(SUNTOUCH_MAN_FLAGS_CMDS) |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
78 |
SUNTOUCH_MAN_FLAGS_fc-query.1 = $(SUNTOUCH_MAN_FLAGS_CMDS) |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
79 |
SUNTOUCH_MAN_FLAGS_fc-cat.1 = $(SUNTOUCH_MAN_FLAGS_CMDS) |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
80 |
SUNTOUCH_MAN_FLAGS_fc-match.1 = $(SUNTOUCH_MAN_FLAGS_CMDS) |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
935
diff
changeset
|
81 |
SUNTOUCH_MAN_FLAGS_fc-scan.1 = $(SUNTOUCH_MAN_FLAGS_CMDS) |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
82 |
|
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
83 |
# Install to /usr, not /usr/X11 |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
84 |
MODULE_PREFIX=/usr |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
85 |
MODULE_PREFIX_SET=yes |
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
86 |
|
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
87 |
# Additional command line options to GNU autoconf configure script |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
88 |
MODULE_CONFIG_OPTS = \ |
837
ee480af8e87c
6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
818
diff
changeset
|
89 |
--with-confdir=/etc/fonts \ |
ee480af8e87c
6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
818
diff
changeset
|
90 |
--with-default-fonts='/usr/share/fonts' \ |
846
9a5fb128faf5
6896574 Font repackaging and upgrade to X11R7.5 fonts (fix path to find g11n fonts)
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
838
diff
changeset
|
91 |
--with-add-fonts='/etc/X11/fontpath.d,/usr/share/ghostscript/fonts,/usr/X11/lib/X11/fonts' \ |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
92 |
--with-freetype-config=$(PROTODIR)/usr/bin$(LIBSUBDIR)/freetype-config \ |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
93 |
--with-cache-dir=/var/cache/fontconfig |
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
94 |
|
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
95 |
# Need to use GNU Make to build |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
96 |
MODULE_MAKE=$(GNUMAKE) |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
97 |
MODULE_MAKE_SET=yes |
364
8e78f63dd484
6476054 Upgrade fontconfig to 2.5.0
Srirama Sharma <Srirama.Sharma@Sun.COM>
parents:
339
diff
changeset
|
98 |
|
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
99 |
# Paths to find libraries |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
100 |
MODULE_BUILD_ENV = LD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(LIBSUBDIR) \ |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
101 |
LD_RUN_PATH=/usr/lib$(LIBSUBDIR) $(DOC_PATH) |
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
102 |
|
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
103 |
# Need to rebuild autoconf/automake files |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
104 |
AUTORECONF=yes |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
105 |
|
967
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
106 |
# Include common rulesets |
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
107 |
include ../Makefile.inc |
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
108 |
|
339
e42fc768c6ee
Add xvnc-inetd to services disabled when upgrading SUNWxwplr
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
330
diff
changeset
|
109 |
# Path to install fc-cache manifest & method script |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
110 |
FONTCONFIG_SMF_MANIFEST_dir=$(PROTODIR)/var/svc/manifest/application/font |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
111 |
FONTCONFIG_SMF_MANIFEST=$(FONTCONFIG_SMF_MANIFEST_dir)/fc-cache.xml |
339
e42fc768c6ee
Add xvnc-inetd to services disabled when upgrading SUNWxwplr
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
330
diff
changeset
|
112 |
FONTCONFIG_SMF_METHOD_dir=$(PROTODIR)/lib/svc/method |
e42fc768c6ee
Add xvnc-inetd to services disabled when upgrading SUNWxwplr
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
330
diff
changeset
|
113 |
FONTCONFIG_SMF_METHOD=$(FONTCONFIG_SMF_METHOD_dir)/fc-cache |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
114 |
|
837
ee480af8e87c
6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
818
diff
changeset
|
115 |
# Sun specification configuration files to be installed in /etc/fonts/conf.d |
ee480af8e87c
6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
818
diff
changeset
|
116 |
FONTCONFIG_CONFDIR = $(PROTODIR)/etc/fonts/conf.avail |
838
eaf1d6d460c5
6904057 Fontconfig configuration in snv_127 is broken
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents:
837
diff
changeset
|
117 |
SUN_CONFFILES = 20-indic.conf 49-sun-preuser.conf 90-sun-prefer-bitmap.conf |
837
ee480af8e87c
6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
818
diff
changeset
|
118 |
FONTCONFIG_SUN_CONFFILES = $(SUN_CONFFILES:%=$(FONTCONFIG_CONFDIR)/%) |
ee480af8e87c
6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
818
diff
changeset
|
119 |
|
967
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
120 |
# Additional targets to install beyond the default_install, |
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
121 |
# run just once, not per bitwidth |
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
122 |
FONTCONFIG_INSTALL_RULES = fontconfig-sunman-install \ |
779
da249e35ba64
6854675 Update fontconfig to 2.7.1
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents:
682
diff
changeset
|
123 |
$(FONTCONFIG_SMF_MANIFEST) $(FONTCONFIG_SMF_METHOD) \ |
838
eaf1d6d460c5
6904057 Fontconfig configuration in snv_127 is broken
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents:
837
diff
changeset
|
124 |
$(FONTCONFIG_SUN_CONFFILES) |
591
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
125 |
|
967
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
126 |
install: $(FONTCONFIG_INSTALL_RULES) |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
127 |
|
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
128 |
$(FONTCONFIG_SMF_MANIFEST): fc-cache.xml |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
129 |
/usr/sbin/svccfg validate fc-cache.xml |
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
130 |
mkdir -p $(FONTCONFIG_SMF_MANIFEST_dir) |
591
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
131 |
$(INSTALL_SCRIPT) -c -m 0444 fc-cache.xml $@ |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
132 |
|
339
e42fc768c6ee
Add xvnc-inetd to services disabled when upgrading SUNWxwplr
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
330
diff
changeset
|
133 |
$(FONTCONFIG_SMF_METHOD): fc-cache.sh |
e42fc768c6ee
Add xvnc-inetd to services disabled when upgrading SUNWxwplr
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
330
diff
changeset
|
134 |
mkdir -p $(FONTCONFIG_SMF_METHOD_dir) |
591
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
135 |
$(INSTALL_SCRIPT) -c -m 0755 fc-cache.sh $@ |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
477
diff
changeset
|
136 |
|
837
ee480af8e87c
6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
818
diff
changeset
|
137 |
$(FONTCONFIG_SUN_CONFFILES): $(SUN_CONFFILES) |
ee480af8e87c
6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
818
diff
changeset
|
138 |
mkdir -p $(PROTODIR)/etc/fonts/conf.d $(PROTODIR)/etc/fonts/conf.avail |
967
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
139 |
cp -fp $(@F) $@ |
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
140 |
rm -f $(PROTODIR)/etc/fonts/conf.d/$(@F) |
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
141 |
ln -sf ../conf.avail/$(@F) $(PROTODIR)/etc/fonts/conf.d/$(@F) |
779
da249e35ba64
6854675 Update fontconfig to 2.7.1
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents:
682
diff
changeset
|
142 |
|
156
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
143 |
FC_MAN_DIR=$(PROTODIR)/usr/share/man |
1dec9ce4addc
6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
54
diff
changeset
|
144 |
|
967
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
145 |
fontconfig-sunman-install: $(INSTALL_RULES) |
591
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
146 |
mkdir -p $(FC_MAN_DIR)/man4 $(FC_MAN_DIR)/man3lib |
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
147 |
sed -e 's/.TH "FONTS-CONF" "5"/.TH "fonts.conf" "4"/' \ |
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
148 |
-e 's/SUNWfontconfig/SUNWfontconfig-root/' \ |
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
149 |
$(FC_MAN_DIR)/man5/fonts-conf.5 > $(FC_MAN_DIR)/man4/fonts.conf.4 |
a2c6b61a92aa
6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
493
diff
changeset
|
150 |
-rm -f $(FC_MAN_DIR)/man3lib/libfontconfig.3lib |
935
f812f9863e75
6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
919
diff
changeset
|
151 |
$(PERL) -p -e 's/^$$/.LP/;' -e 's/.?\251/\\(co/;' \ |
967
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
152 |
libfontconfig.3lib > $(FC_MAN_DIR)/man3lib/libfontconfig.3lib |
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
153 |
cat sunman-notes-fc-cache >> $(FC_MAN_DIR)/man1/fc-cache.1 |
efbd0ee6805d
6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
950
diff
changeset
|
154 |
-rm -f $(PROTODIR)/etc/fonts/fonts.conf.bak |
0
b949c5054bc4
Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
155 |