2080N/A#
3909N/A# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
2080N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2080N/A#
2080N/A# This code is free software; you can redistribute it and/or modify it
2080N/A# under the terms of the GNU General Public License version 2 only, as
2362N/A# published by the Free Software Foundation. Oracle designates this
2080N/A# particular file as subject to the "Classpath" exception as provided
2362N/A# by Oracle in the LICENSE file that accompanied this code.
2080N/A#
2080N/A# This code is distributed in the hope that it will be useful, but WITHOUT
2080N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2080N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2080N/A# version 2 for more details (a copy is included in the LICENSE file that
2080N/A# accompanied this code).
2080N/A#
2080N/A# You should have received a copy of the GNU General Public License version
2080N/A# 2 along with this work; if not, write to the Free Software Foundation,
2080N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2080N/A#
2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A# or visit www.oracle.com if you need additional information or have any
2362N/A# questions.
2080N/A#
2080N/A
2080N/ABUILDDIR = ../../..
2080N/APRODUCT = java
2080N/Ainclude $(BUILDDIR)/common/Defs.gmk
2080N/A
2080N/A
2080N/A#
2080N/A# List of lucida font files that we redistribute.
2080N/A#
2080N/A
2080N/ASHARED_FONTFILES = \
2080N/A $(LIBDIR)/fonts/LucidaTypewriterRegular.ttf \
2080N/A $(LIBDIR)/fonts/LucidaTypewriterBold.ttf \
2080N/A $(LIBDIR)/fonts/LucidaBrightRegular.ttf \
2080N/A $(LIBDIR)/fonts/LucidaBrightDemiBold.ttf \
2080N/A $(LIBDIR)/fonts/LucidaBrightItalic.ttf \
2080N/A $(LIBDIR)/fonts/LucidaBrightDemiItalic.ttf \
2080N/A $(LIBDIR)/fonts/LucidaSansRegular.ttf \
2080N/A $(LIBDIR)/fonts/LucidaSansDemiBold.ttf \
2080N/A
2080N/Aifeq ($(PLATFORM), linux)
2080N/A
2080N/A# The oblique versions of the font are derived from the base versions
2080N/A# and since 2D can do this derivation on the fly at run time there is no
2080N/A# need to redistribute the fonts. An exception to this is on Linux.
2080N/A# The reason is that the Lucidas are specified in the font.properties files
2080N/A# on Linux, and so AWT/Motif components expect to be able to ask the Xserver
2080N/A# for these oblique fonts, but the Xserver cannot do the same derivation as
2080N/A# 2D can.
2080N/A
2080N/AOBLIQUE_FONTFILES = \
2080N/A $(LIBDIR)/oblique-fonts/LucidaTypewriterOblique.ttf \
2080N/A $(LIBDIR)/oblique-fonts/LucidaTypewriterBoldOblique.ttf \
2080N/A $(LIBDIR)/oblique-fonts/LucidaSansOblique.ttf \
2080N/A $(LIBDIR)/oblique-fonts/LucidaSansDemiOblique.ttf \
2080N/A
2080N/Aendif
2080N/A
2080N/Aifndef OPENJDK
2080N/A
2080N/A# Lucida font files are not included in the OpenJDK distribution.
2080N/A# Get names of font files
2080N/A
2080N/A# Copy font files into OUTPUTDIR area
2080N/A
2080N/AFONTFILES = $(SHARED_FONTFILES)
2080N/AFONTSDIR = $(LIBDIR)/fonts
2080N/AFONTSDIRFILE = $(FONTSDIR)/fonts.dir
2080N/AINTERNAL_IMPORT_LIST = $(FONTFILES)
2080N/A
2080N/Aifneq ($(PLATFORM), windows)
2080N/A INTERNAL_IMPORT_LIST += $(FONTSDIRFILE)
2080N/Aendif
2080N/A
2080N/A$(LIBDIR)/fonts/%.ttf: $(CLOSED_SRC)/share/lib/fonts/%.ttf
2080N/A $(install-file)
2080N/A
2080N/A$(FONTSDIRFILE): $(PLATFORM_SRC)/classes/sun/awt/motif/java.fonts.dir
2080N/A $(install-file)
2080N/A
2080N/Aifeq ($(PLATFORM), linux)
2080N/A
2080N/A# The oblique fonts are only needed/wanted on Linux.
2080N/A
2080N/AOBLFONTSDIR = $(LIBDIR)/oblique-fonts
2080N/AOBLFONTSDIRFILE = $(OBLFONTSDIR)/fonts.dir
2080N/AINTERNAL_IMPORT_LIST += $(OBLIQUE_FONTFILES) $(OBLFONTSDIRFILE)
2080N/A
2080N/A$(LIBDIR)/oblique-fonts/%.ttf: $(CLOSED_SRC)/share/lib/fonts/oblique/%.ttf
2080N/A $(install-file)
2080N/A
2080N/A$(OBLFONTSDIRFILE): $(PLATFORM_SRC)/classes/sun/awt/motif/java.oblique-fonts.dir
2080N/A $(install-file)
2080N/A
2080N/Aendif # linux
2080N/A
2080N/Aall build : $(INTERNAL_IMPORT_LIST)
2080N/A
2080N/Aclean clobber::
2080N/A $(RM) $(INTERNAL_IMPORT_LIST)
2080N/A
2080N/Aelse
2080N/A
2080N/Aall build clean clobber :
2080N/A
2080N/Aendif # !OPENJDK