|
1 # |
|
2 # Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. |
|
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 # |
|
5 # This code is free software; you can redistribute it and/or modify it |
|
6 # under the terms of the GNU General Public License version 2 only, as |
|
7 # published by the Free Software Foundation. Sun designates this |
|
8 # particular file as subject to the "Classpath" exception as provided |
|
9 # by Sun in the LICENSE file that accompanied this code. |
|
10 # |
|
11 # This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 # version 2 for more details (a copy is included in the LICENSE file that |
|
15 # accompanied this code). |
|
16 # |
|
17 # You should have received a copy of the GNU General Public License version |
|
18 # 2 along with this work; if not, write to the Free Software Foundation, |
|
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 # |
|
21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 # CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 # have any questions. |
|
24 # |
|
25 |
|
26 BUILDDIR = ../../.. |
|
27 MODULE = font |
|
28 PRODUCT = java |
|
29 include $(BUILDDIR)/common/Defs.gmk |
|
30 |
|
31 |
|
32 # |
|
33 # List of lucida font files that we redistribute. |
|
34 # |
|
35 |
|
36 SHARED_FONTFILES = \ |
|
37 $(LIBDIR)/fonts/LucidaTypewriterRegular.ttf \ |
|
38 $(LIBDIR)/fonts/LucidaTypewriterBold.ttf \ |
|
39 $(LIBDIR)/fonts/LucidaBrightRegular.ttf \ |
|
40 $(LIBDIR)/fonts/LucidaBrightDemiBold.ttf \ |
|
41 $(LIBDIR)/fonts/LucidaBrightItalic.ttf \ |
|
42 $(LIBDIR)/fonts/LucidaBrightDemiItalic.ttf \ |
|
43 $(LIBDIR)/fonts/LucidaSansRegular.ttf \ |
|
44 $(LIBDIR)/fonts/LucidaSansDemiBold.ttf \ |
|
45 |
|
46 ifeq ($(PLATFORM), linux) |
|
47 |
|
48 # The oblique versions of the font are derived from the base versions |
|
49 # and since 2D can do this derivation on the fly at run time there is no |
|
50 # need to redistribute the fonts. An exception to this is on Linux. |
|
51 # The reason is that the Lucidas are specified in the font.properties files |
|
52 # on Linux, and so AWT/Motif components expect to be able to ask the Xserver |
|
53 # for these oblique fonts, but the Xserver cannot do the same derivation as |
|
54 # 2D can. |
|
55 |
|
56 OBLIQUE_FONTFILES = \ |
|
57 $(LIBDIR)/oblique-fonts/LucidaTypewriterOblique.ttf \ |
|
58 $(LIBDIR)/oblique-fonts/LucidaTypewriterBoldOblique.ttf \ |
|
59 $(LIBDIR)/oblique-fonts/LucidaSansOblique.ttf \ |
|
60 $(LIBDIR)/oblique-fonts/LucidaSansDemiOblique.ttf \ |
|
61 |
|
62 endif |
|
63 |
|
64 ifndef OPENJDK |
|
65 |
|
66 # Lucida font files are not included in the OpenJDK distribution. |
|
67 # Get names of font files |
|
68 |
|
69 # Copy font files into OUTPUTDIR area |
|
70 |
|
71 FONTFILES = $(SHARED_FONTFILES) |
|
72 FONTSDIR = $(LIBDIR)/fonts |
|
73 FONTSDIRFILE = $(FONTSDIR)/fonts.dir |
|
74 INTERNAL_IMPORT_LIST = $(FONTFILES) |
|
75 |
|
76 ifneq ($(PLATFORM), windows) |
|
77 INTERNAL_IMPORT_LIST += $(FONTSDIRFILE) |
|
78 endif |
|
79 |
|
80 $(LIBDIR)/fonts/%.ttf: $(CLOSED_SRC)/share/lib/fonts/%.ttf |
|
81 $(install-file) |
|
82 |
|
83 $(FONTSDIRFILE): $(PLATFORM_SRC)/classes/sun/awt/motif/java.fonts.dir |
|
84 $(install-file) |
|
85 |
|
86 ifeq ($(PLATFORM), linux) |
|
87 |
|
88 # The oblique fonts are only needed/wanted on Linux. |
|
89 |
|
90 OBLFONTSDIR = $(LIBDIR)/oblique-fonts |
|
91 OBLFONTSDIRFILE = $(OBLFONTSDIR)/fonts.dir |
|
92 INTERNAL_IMPORT_LIST += $(OBLIQUE_FONTFILES) $(OBLFONTSDIRFILE) |
|
93 |
|
94 $(LIBDIR)/oblique-fonts/%.ttf: $(CLOSED_SRC)/share/lib/fonts/oblique/%.ttf |
|
95 $(install-file) |
|
96 |
|
97 $(OBLFONTSDIRFILE): $(PLATFORM_SRC)/classes/sun/awt/motif/java.oblique-fonts.dir |
|
98 $(install-file) |
|
99 |
|
100 endif # linux |
|
101 |
|
102 all build : $(INTERNAL_IMPORT_LIST) |
|
103 |
|
104 clean clobber:: |
|
105 $(RM) $(INTERNAL_IMPORT_LIST) |
|
106 |
|
107 else |
|
108 |
|
109 all build clean clobber : |
|
110 |
|
111 endif # !OPENJDK |