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