Makefile revision 222
222N/A###############################################################################
222N/A#
222N/A# Deja Vu Fonts Makefile
222N/A#
222N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
222N/A# Use subject to license terms.
222N/A#
222N/A# Permission is hereby granted, free of charge, to any person obtaining a
222N/A# copy of this software and associated documentation files (the
222N/A# "Software"), to deal in the Software without restriction, including
222N/A# without limitation the rights to use, copy, modify, merge, publish,
222N/A# distribute, and/or sell copies of the Software, and to permit persons
222N/A# to whom the Software is furnished to do so, provided that the above
222N/A# copyright notice(s) and this permission notice appear in all copies of
222N/A# the Software and that both the above copyright notice(s) and this
222N/A# permission notice appear in supporting documentation.
222N/A#
222N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
222N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
222N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
222N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
222N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
222N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
222N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
222N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
222N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
222N/A#
222N/A# Except as contained in this notice, the name of a copyright holder
222N/A# shall not be used in advertising or otherwise to promote the sale, use
222N/A# or other dealings in this Software without prior written authorization
222N/A# of the copyright holder.
222N/A#
222N/A# @(#)Makefile 1.1 07/09/14
222N/A#
222N/A
222N/APWD:sh=pwd
222N/ATOP=$(PWD)/../..
222N/A
222N/A# Version number (used in path names)
222N/AVERSION=2.19
222N/A
222N/A# Source tarball
222N/ASOURCE_TARBALL_NAME=dejavu-ttf-$(VERSION).tar.bz2
222N/A
222N/A# Download site for source
222N/ASOURCE_URL=$(SF_DOWNLOADS_URL)/dejavu/$(SOURCE_TARBALL_NAME)
222N/ASOURCE_URL_SET=yes
222N/A
222N/A# Patches to apply to source after unpacking, in order
222N/ASOURCE_PATCHES= # None
222N/A
222N/A# Directory created by unpacking source
222N/ASOURCE_DIR=$(BUILD_DIR)/dejavu-ttf-$(VERSION)
222N/A
222N/A# What to build
222N/ABUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
222N/A
222N/A# Directory to install to
222N/ADEST_DIR=$(PROTODIR)$(TRUETYPE_DIR)
222N/A
222N/A### Include common rulesets
222N/Ainclude $(TOP)/common/Makefile.inc
222N/A
222N/A### Rules specific to this directory:
222N/A
222N/ADEJAVU_FONT_FILES= \
222N/A DejaVuSans-Bold.ttf \
222N/A DejaVuSans-BoldOblique.ttf \
222N/A DejaVuSans-ExtraLight.ttf \
222N/A DejaVuSans-Oblique.ttf \
222N/A DejaVuSans.ttf \
222N/A DejaVuSansCondensed-Bold.ttf \
222N/A DejaVuSansCondensed-BoldOblique.ttf \
222N/A DejaVuSansCondensed-Oblique.ttf \
222N/A DejaVuSansCondensed.ttf \
222N/A DejaVuSansMono-Bold.ttf \
222N/A DejaVuSansMono-BoldOblique.ttf \
222N/A DejaVuSansMono-Oblique.ttf \
222N/A DejaVuSansMono.ttf \
222N/A DejaVuSerif-Bold.ttf \
222N/A DejaVuSerif-BoldItalic.ttf \
222N/A DejaVuSerif-Italic.ttf \
222N/A DejaVuSerif.ttf \
222N/A DejaVuSerifCondensed-Bold.ttf \
222N/A DejaVuSerifCondensed-BoldItalic.ttf \
222N/A DejaVuSerifCondensed-Italic.ttf \
222N/A DejaVuSerifCondensed.ttf
222N/A
222N/Abuild_gen: $(BUILD_TARGETS)
222N/A
222N/A$(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
222N/A (cd $(SOURCE_DIR) && \
222N/A LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
222N/A $(PROTODIR)$(X11_DIR)/bin/mkfontscale . )
222N/A
222N/Ainstall_gen: $(BUILD_TARGETS)
222N/A mkdir -p $(DEST_DIR)
222N/A -( cd $(DEST_DIR) ; rm -f $(DEJAVU_FONT_FILES) DejaVuFontsCopyright.txt )
222N/A ( cd $(SOURCE_DIR) ; cp -p $(DEJAVU_FONT_FILES) $(DEST_DIR) )
222N/A cp -p $(SOURCE_DIR)/LICENSE $(DEST_DIR)/DejaVuFontsCopyright.txt
222N/A touch $(DEST_DIR)/fonts.scale
222N/A chmod +w $(DEST_DIR)/fonts.scale
222N/A ../merge-fonts.scale.pl -i $(DEST_DIR)/fonts.scale \
222N/A -i $(SOURCE_DIR)/fonts.scale -o $(DEST_DIR)/fonts.scale