Makefile revision 1068
98N/A###############################################################################
98N/A#
98N/A# Deja Vu Fonts Makefile
98N/A#
705N/A# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
98N/A#
98N/A# Permission is hereby granted, free of charge, to any person obtaining a
98N/A# copy of this software and associated documentation files (the "Software"),
98N/A# to deal in the Software without restriction, including without limitation
98N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
98N/A# and/or sell copies of the Software, and to permit persons to whom the
98N/A# Software is furnished to do so, subject to the following conditions:
98N/A#
98N/A# The above copyright notice and this permission notice (including the next
98N/A# paragraph) shall be included in all copies or substantial portions of the
98N/A# Software.
98N/A#
98N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
98N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
98N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
98N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
98N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
98N/A# DEALINGS IN THE SOFTWARE.
98N/A#
98N/A#
98N/A
98N/A# Package name used in tarballs
98N/AMODULE_NAME=dejavu-fonts-ttf
98N/A
98N/A# Package metadata
98N/AUPSTREAM = DejaVu fonts
705N/AUPSTREAM_URL = http://dejavu-fonts.org/
98N/AUPSTREAM_SET = yes
98N/A
98N/AMODULE_LICENSE = Bitstream Vera Fonts License
493N/AMODULE_LICENSE_SET = yes
98N/A
98N/A# Version number (used in path names)
705N/AMODULE_VERSION=2.31
98N/A
98N/A# Checksums for upstream tarball
98N/ATARBALL_MD5 = a794a75d8c43c83f0226207cd3aaf666
98N/ATARBALL_SHA1 = 33ed20fc45566bfac776a713b3bb4f1214ccb0f7
98N/A
98N/A# Download site for source
493N/ASOURCE_URL=$(SF_DOWNLOADS_URL)/dejavu/dejavu/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
493N/ASOURCE_URL_SET=yes
98N/A
98N/A# Patches to apply to source after unpacking, in order
493N/ASOURCE_PATCHES= # None
493N/A
493N/A# What to install
194N/AMODULE_ADD_INSTALL_TARGETS=install_fonts_conf
98N/A
98N/A# Directory to install to
TTF_SUBDIR=dejavu
TTF_SUBDIR_SET=yes
FONTCONF_DEST_DIR=$(PROTODIR)/etc/fonts
# License file
LICENSE_FILE=LICENSE
LICENSE_FILE_SET=yes
TTF_FONT_FILES= \
README \
$(LICENSE_FILE) \
ttf/*.ttf
# Subdir of $(SOURCE_DIR) containing *.ttf files
TTF_SOURCE_SUBDIR=ttf/
### Include common rulesets
include ../Makefile.ttf
### Rules specific to this directory:
install_fonts_conf: $(SOURCE_TARGETS)
mkdir -p $(FONTCONF_DEST_DIR)/conf.avail \
$(FONTCONF_DEST_DIR)/conf.d
@( cd $(SOURCE_DIR)/fontconfig ; $(START_CMD_ECHO) ; \
for f in *.conf ; do \
rm -f $(FONTCONF_DEST_DIR)/conf.avail/$$f \
$(FONTCONF_DEST_DIR)/conf.d/$$f ; \
cp -p $$f $(FONTCONF_DEST_DIR)/conf.avail/ ; \
ln -s ../conf.avail/$$f $(FONTCONF_DEST_DIR)/conf.d/ ; \
done )