Makefile revision 810
430N/A###############################################################################
430N/A#
430N/A# Deja Vu Fonts Makefile
430N/A#
1068N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
430N/A# Use is subject to license terms.
430N/A#
919N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the
919N/A# "Software"), to deal in the Software without restriction, including
919N/A# without limitation the rights to use, copy, modify, merge, publish,
919N/A# distribute, and/or sell copies of the Software, and to permit persons
919N/A# to whom the Software is furnished to do so, provided that the above
919N/A# copyright notice(s) and this permission notice appear in all copies of
919N/A# the Software and that both the above copyright notice(s) and this
919N/A# permission notice appear in supporting documentation.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
919N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
919N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
919N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
919N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
919N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
919N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
430N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
430N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
430N/A#
430N/A# Except as contained in this notice, the name of a copyright holder
493N/A# shall not be used in advertising or otherwise to promote the sale, use
430N/A# or other dealings in this Software without prior written authorization
970N/A# of the copyright holder.
977N/A#
970N/A# ident "@(#)Makefile 1.11 09/10/13 SMI"
970N/A#
430N/A
1068N/A# Package name used in tarballs
430N/AMODULE_NAME=dejavu-fonts-ttf
911N/A
1068N/A# Version number (used in path names)
1068N/AMODULE_VERSION=2.29
911N/A
430N/A# Download site for source
1068N/ASOURCE_URL=$(SF_DOWNLOADS_URL)/dejavu/$(SOURCE_TARBALL_NAME)
493N/ASOURCE_URL_SET=yes
430N/A
493N/A# Patches to apply to source after unpacking, in order
430N/ASOURCE_PATCHES= # None
430N/A
970N/A# No configure script to run
970N/ACONFIGURE_TARGETS=
970N/ACONFIGURE_TARGETS_SET=yes
430N/A
# What to build
BUILD_TARGETS=$(SOURCE_DIR)/ttf/fonts.scale
BUILD_TARGETS_SET=yes
# What to install
INSTALL_TARGETS=install_fonts_conf install_dejavu
INSTALL_TARGETS_SET=yes
# Directory to install to
FONT_DEST_DIR=$(PROTODIR)$(X11_TRUETYPE_DIR)
FONTCONF_DEST_DIR=$(PROTODIR)/etc/fonts
# License file
LICENSE_FILE=LICENSE
LICENSE_FILE_SET=yes
### Include common rulesets
include ../Makefile.inc
### Rules specific to this directory:
DEJAVU_FONT_FILES= \
DejaVuSans-Bold.ttf \
DejaVuSans-BoldOblique.ttf \
DejaVuSans-ExtraLight.ttf \
DejaVuSans-Oblique.ttf \
DejaVuSans.ttf \
DejaVuSansCondensed-Bold.ttf \
DejaVuSansCondensed-BoldOblique.ttf \
DejaVuSansCondensed-Oblique.ttf \
DejaVuSansCondensed.ttf \
DejaVuSansMono-Bold.ttf \
DejaVuSansMono-BoldOblique.ttf \
DejaVuSansMono-Oblique.ttf \
DejaVuSansMono.ttf \
DejaVuSerif-Bold.ttf \
DejaVuSerif-BoldItalic.ttf \
DejaVuSerif-Italic.ttf \
DejaVuSerif.ttf \
DejaVuSerifCondensed-Bold.ttf \
DejaVuSerifCondensed-BoldItalic.ttf \
DejaVuSerifCondensed-Italic.ttf \
DejaVuSerifCondensed.ttf
$(SOURCE_DIR)/ttf/fonts.scale: $(UNPACK_TARGET)
(cd $(SOURCE_DIR)/ttf && $(MKFONTSCALE) . )
install_fonts_conf: $(BUILD_TARGETS)
mkdir -p $(FONTCONF_DEST_DIR)/conf.avail \
$(FONTCONF_DEST_DIR)/conf.d
( cd $(SOURCE_DIR)/fontconfig ; set -x ; for f in *.conf ; do \
rm -f $(FONTCONF_DEST_DIR)/conf.avail/$$f \
$(FONTCONF_DEST_DIR)/conf.d/$$f ; \
cp -p $$f $(FONTCONF_DEST_DIR)/conf.avail/ ; \
ln -s ../conf.avail/$$f $(FONTCONF_DEST_DIR)/conf.d/ ; \
done )
install_dejavu: $(BUILD_TARGETS)
mkdir -p $(FONT_DEST_DIR)
-( cd $(FONT_DEST_DIR) ; rm -f $(DEJAVU_FONT_FILES) DejaVuFontsCopyright.txt )
( cd $(SOURCE_DIR)/ttf ; cp -p $(DEJAVU_FONT_FILES) $(FONT_DEST_DIR) )
cp -p $(SOURCE_DIR)/LICENSE $(FONT_DEST_DIR)/DejaVuFontsCopyright.txt
touch $(FONT_DEST_DIR)/fonts.scale
chmod +w $(FONT_DEST_DIR)/fonts.scale
../merge-fonts.scale.pl -i $(FONT_DEST_DIR)/fonts.scale \
-i $(SOURCE_DIR)/ttf/fonts.scale -o $(FONT_DEST_DIR)/fonts.scale
(cd $(FONT_DEST_DIR) && $(MKFONTDIR) . )