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