Makefile revision 591
0N/A###############################################################################
0N/A#
0N/A# Bitstream Vera Fonts Makefile
0N/A#
493N/A# Copyright 2008 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#
561N/A# @(#)Makefile 1.6 08/10/06
0N/A#
0N/A
493N/A# Package name used in tarballs
493N/AMODULE_NAME=ttf-bitstream-vera
0N/A
0N/A# Version number (used in path names)
493N/AMODULE_VERSION=1.10
0N/A
0N/A# Download site for source
493N/ASOURCE_URL=http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
156N/ASOURCE_URL_SET=yes
0N/A
0N/A# Patches to apply to source after unpacking, in order
0N/ASOURCE_PATCHES= # None
0N/A
222N/A# What to build
222N/ABUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
493N/ABUILD_TARGETS_SET=yes
493N/A
493N/A# What to install
561N/AINSTALL_TARGETS=install_x11dir install_owdir
493N/AINSTALL_TARGETS_SET=yes
0N/A
0N/A# Directory to install to
561N/AFONT_DEST_DIR=$(PROTODIR)$(X11_TRUETYPE_DIR)
0N/A
355N/A# License file
355N/ALICENSE_FILE=COPYRIGHT.TXT
355N/ALICENSE_FILE_SET=yes
355N/A
0N/A### Include common rulesets
493N/Ainclude ../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
222N/A$(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
561N/A (cd $(SOURCE_DIR) && $(MKFONTSCALE) .)
222N/A
493N/Ainstall_vera: $(BUILD_TARGETS)
561N/A mkdir -p $(FONT_DEST_DIR)
561N/A -( cd $(FONT_DEST_DIR) ; rm -f $(VERA_FONT_FILES) VeraFontsCopyright.txt )
561N/A ( cd $(SOURCE_DIR) ; cp -p $(VERA_FONT_FILES) $(FONT_DEST_DIR) )
561N/A cp -p $(SOURCE_DIR)/COPYRIGHT.TXT $(FONT_DEST_DIR)/VeraFontsCopyright.txt
561N/A touch $(FONT_DEST_DIR)/fonts.scale
561N/A chmod +w $(FONT_DEST_DIR)/fonts.scale
561N/A ../merge-fonts.scale.pl -i $(FONT_DEST_DIR)/fonts.scale \
561N/A -i $(SOURCE_DIR)/fonts.scale -o $(FONT_DEST_DIR)/fonts.scale
561N/A (cd $(FONT_DEST_DIR) && $(MKFONTDIR) . )
0N/A
561N/A# Install under both /usr/X11 & /usr/openwin for building both SUNW* & FSW*
561N/A# font packages for now
561N/A
561N/Ainstall_x11dir::$(BUILD_TARGETS)
561N/A $(MAKE) $(MAKEFLAGS) \
561N/A FONT_DEST_DIR=$(PROTODIR)$(X11_FONT_DIR)/vera install_vera
561N/A
561N/Ainstall_owdir::$(BUILD_TARGETS)
561N/A $(MAKE) $(MAKEFLAGS) \
561N/A FONT_DEST_DIR=$(PROTODIR)$(OW_TRUETYPE_DIR) install_vera