Makefile revision 430
3112N/A###############################################################################
3112N/A#
3112N/A# Deja Vu Fonts Makefile
3112N/A#
3112N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3112N/A# Use subject to license terms.
3112N/A#
3112N/A# Permission is hereby granted, free of charge, to any person obtaining a
3112N/A# copy of this software and associated documentation files (the
3112N/A# "Software"), to deal in the Software without restriction, including
3112N/A# without limitation the rights to use, copy, modify, merge, publish,
3112N/A# distribute, and/or sell copies of the Software, and to permit persons
3112N/A# to whom the Software is furnished to do so, provided that the above
3112N/A# copyright notice(s) and this permission notice appear in all copies of
3112N/A# the Software and that both the above copyright notice(s) and this
3112N/A# permission notice appear in supporting documentation.
3112N/A#
3112N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
3112N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
3112N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
3112N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
3112N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
3112N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
4255N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
3112N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
4458N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4458N/A#
4458N/A# Except as contained in this notice, the name of a copyright holder
4458N/A# shall not be used in advertising or otherwise to promote the sale, use
4495N/A# or other dealings in this Software without prior written authorization
4714N/A# of the copyright holder.
4716N/A#
4458N/A# @(#)Makefile 1.4 08/03/12
4458N/A#
4458N/A
4458N/APWD:sh=pwd
4458N/ATOP=$(PWD)/../..
4458N/A
4458N/A# Version number (used in path names)
4458N/AVERSION=2.24
4458N/A
4458N/A# Source tarball
4458N/ASOURCE_TARBALL_NAME=dejavu-fonts-ttf-$(VERSION).tar.bz2
4714N/A
4458N/A# Download site for source
4458N/ASOURCE_URL=$(SF_DOWNLOADS_URL)/dejavu/$(SOURCE_TARBALL_NAME)
4458N/ASOURCE_URL_SET=yes
4458N/A
4458N/A# Patches to apply to source after unpacking, in order
4458N/ASOURCE_PATCHES= # None
4458N/A
4458N/A# Directory created by unpacking source
4458N/ASOURCE_DIR=$(BUILD_DIR)/dejavu-fonts-ttf-$(VERSION)
4458N/A
4458N/A# What to build
4458N/ABUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
4631N/A
4458N/A# Directory to install to
4458N/AFONT_DEST_DIR=$(PROTODIR)$(TRUETYPE_DIR)
4458N/AFONTCONF_DEST_DIR=$(PROTODIR)/etc/fonts
4458N/A
4458N/A# License file
4458N/ALICENSE_FILE=LICENSE
4458N/ALICENSE_FILE_SET=yes
4978N/A
4978N/A### Include common rulesets
4458N/Ainclude $(TOP)/common/Makefile.inc
4978N/A
4458N/A### Rules specific to this directory:
4458N/A
4458N/ADEJAVU_FONT_FILES= \
4458N/A DejaVuSans-Bold.ttf \
4458N/A DejaVuSans-BoldOblique.ttf \
4464N/A DejaVuSans-ExtraLight.ttf \
4458N/A DejaVuSans-Oblique.ttf \
4458N/A DejaVuSans.ttf \
4458N/A DejaVuSansCondensed-Bold.ttf \
4458N/A DejaVuSansCondensed-BoldOblique.ttf \
4458N/A DejaVuSansCondensed-Oblique.ttf \
4495N/A DejaVuSansCondensed.ttf \
4458N/A DejaVuSansMono-Bold.ttf \
4458N/A 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
build_gen: $(BUILD_TARGETS)
$(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
(cd $(SOURCE_DIR)/ttf && \
LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
$(PROTODIR)$(X11_DIR)/bin/mkfontscale . )
install_gen:: $(BUILD_TARGETS)
mkdir -p $(FONT_DEST_DIR) \
$(FONTCONF_DEST_DIR)/conf.avail \
$(FONTCONF_DEST_DIR)/conf.d
-( 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
( 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 )
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