Makefile revision 460
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend###############################################################################
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend#
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Liberation Fonts Makefile
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend#
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Use subject to license terms.
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend#
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedooh# Permission is hereby granted, free of charge, to any person obtaining a
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# copy of this software and associated documentation files (the
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# "Software"), to deal in the Software without restriction, including
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# without limitation the rights to use, copy, modify, merge, publish,
2e545ce2450a9953665f701bb05350f0d3f26275nd# distribute, and/or sell copies of the Software, and to permit persons
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# to whom the Software is furnished to do so, provided that the above
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# copyright notice(s) and this permission notice appear in all copies of
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# the Software and that both the above copyright notice(s) and this
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# permission notice appear in supporting documentation.
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen#
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedooh# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend#
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Except as contained in this notice, the name of a copyright holder
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# shall not be used in advertising or otherwise to promote the sale, use
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# or other dealings in this Software without prior written authorization
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# of the copyright holder.
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedooh#
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# @(#)Makefile 1.2 08/07/10 SMI
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend#
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendPWD:sh=pwd
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendTOP=$(PWD)/../..
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedooh# Version number (used in path names)
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedoohVERSION=1.03
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Source tarball
dc06c0ac17fcd3d721bb865d7fc5d2cefe67c57ftrawickSOURCE_TARBALL_NAME=liberation-fonts-$(VERSION).tar.gz
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Download site for source
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendSOURCE_URL=http://fedorahosted.org/releases/l/i/liberation-fonts/$(SOURCE_TARBALL_NAME)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendSOURCE_URL_SET=yes
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendSOURCE_UNCOMPRESS=gzcat
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Patches to apply to source after unpacking, in order
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedoohSOURCE_PATCHES= # None
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# Directory created by unpacking source
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendSOURCE_DIR=$(BUILD_DIR)/liberation-fonts-$(VERSION)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# What to build
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendBUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh# Directory to install to
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendFONT_DEST_DIR=$(PROTODIR)$(TRUETYPE_DIR)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendFONTCONF_DEST_DIR=$(PROTODIR)/etc/fonts
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend# License file
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendLICENSE_FILE=License.txt
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendLICENSE_FILE_SET=yes
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend### Include common rulesets
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendinclude $(TOP)/common/Makefile.inc
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend### Rules specific to this directory:
8b7e19de6d547ab1ad4256316fbf0d2497f724f8humbedooh
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendLIBERATION_FONT_FILES= \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationMono-Bold.ttf \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationMono-BoldItalic.ttf \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationMono-Italic.ttf \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationMono-Regular.ttf \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationSans-Bold.ttf \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationSans-BoldItalic.ttf \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationSans-Italic.ttf \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationSans-Regular.ttf \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationSerif-Bold.ttf \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationSerif-BoldItalic.ttf \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LiberationSerif-Italic.ttf \
d8925e7b1eb8644294705d7132173f6fcfe0350ahumbedooh LiberationSerif-Regular.ttf
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendbuild_gen: $(BUILD_TARGETS)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend$(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend (cd $(SOURCE_DIR) && \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend $(PROTODIR)$(X11_DIR)/bin/mkfontscale . )
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aendinstall_gen:: $(BUILD_TARGETS)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend mkdir -p $(FONT_DEST_DIR)
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend -( cd $(FONT_DEST_DIR) ; rm -f $(LIBERATION_FONT_FILES) )
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend ( cd $(SOURCE_DIR)/ ; cp -p $(LIBERATION_FONT_FILES) $(FONT_DEST_DIR) )
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend touch $(FONT_DEST_DIR)/fonts.scale
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend chmod +w $(FONT_DEST_DIR)/fonts.scale
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend ../merge-fonts.scale.pl -i $(FONT_DEST_DIR)/fonts.scale \
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend -i $(SOURCE_DIR)/fonts.scale -o $(FONT_DEST_DIR)/fonts.scale
38dd0bd0209a7e29ea44e66bfc3bec8edc03e9aend