Makefile revision 705
222N/A###############################################################################
222N/A#
222N/A# Deja Vu Fonts Makefile
222N/A#
651N/A# Copyright 2009 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#
651N/A# @(#)Makefile 1.9 09/02/26
222N/A#
222N/A
493N/A# Package name used in tarballs
493N/AMODULE_NAME=dejavu-fonts-ttf
222N/A
222N/A# Version number (used in path names)
651N/AMODULE_VERSION=2.28
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
493N/A# What to build
493N/ABUILD_TARGETS=$(SOURCE_DIR)/ttf/fonts.scale
493N/ABUILD_TARGETS_SET=yes
222N/A
493N/A# What to install
651N/AINSTALL_TARGETS=install_fonts_conf install_dejavu
493N/AINSTALL_TARGETS_SET=yes
222N/A
222N/A# Directory to install to
561N/AFONT_DEST_DIR=$(PROTODIR)$(X11_TRUETYPE_DIR)
365N/AFONTCONF_DEST_DIR=$(PROTODIR)/etc/fonts
222N/A
355N/A# License file
355N/ALICENSE_FILE=LICENSE
355N/ALICENSE_FILE_SET=yes
355N/A
222N/A### Include common rulesets
493N/Ainclude ../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
493N/A$(SOURCE_DIR)/ttf/fonts.scale: $(UNPACK_TARGET)
561N/A (cd $(SOURCE_DIR)/ttf && $(MKFONTSCALE) . )
222N/A
561N/Ainstall_fonts_conf: $(BUILD_TARGETS)
561N/A mkdir -p $(FONTCONF_DEST_DIR)/conf.avail \
365N/A $(FONTCONF_DEST_DIR)/conf.d
365N/A ( cd $(SOURCE_DIR)/fontconfig ; set -x ; for f in *.conf ; do \
365N/A rm -f $(FONTCONF_DEST_DIR)/conf.avail/$$f \
365N/A $(FONTCONF_DEST_DIR)/conf.d/$$f ; \
365N/A cp -p $$f $(FONTCONF_DEST_DIR)/conf.avail/ ; \
365N/A ln -s ../conf.avail/$$f $(FONTCONF_DEST_DIR)/conf.d/ ; \
365N/A done )
561N/A
561N/A
561N/Ainstall_dejavu: $(BUILD_TARGETS)
561N/A mkdir -p $(FONT_DEST_DIR)
561N/A -( cd $(FONT_DEST_DIR) ; rm -f $(DEJAVU_FONT_FILES) DejaVuFontsCopyright.txt )
561N/A ( cd $(SOURCE_DIR)/ttf ; cp -p $(DEJAVU_FONT_FILES) $(FONT_DEST_DIR) )
561N/A cp -p $(SOURCE_DIR)/LICENSE $(FONT_DEST_DIR)/DejaVuFontsCopyright.txt
365N/A touch $(FONT_DEST_DIR)/fonts.scale
365N/A chmod +w $(FONT_DEST_DIR)/fonts.scale
365N/A ../merge-fonts.scale.pl -i $(FONT_DEST_DIR)/fonts.scale \
561N/A -i $(SOURCE_DIR)/ttf/fonts.scale -o $(FONT_DEST_DIR)/fonts.scale
651N/A (cd $(FONT_DEST_DIR) && $(MKFONTDIR) . )