Makefile revision 1271
258N/A###############################################################################
258N/A#
493N/A# Liberation Fonts Makefile
258N/A#
258N/A# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
258N/A#
258N/A# Permission is hereby granted, free of charge, to any person obtaining a
258N/A# copy of this software and associated documentation files (the "Software"),
258N/A# to deal in the Software without restriction, including without limitation
258N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
258N/A# and/or sell copies of the Software, and to permit persons to whom the
258N/A# Software is furnished to do so, subject to the following conditions:
258N/A#
258N/A# The above copyright notice and this permission notice (including the next
258N/A# paragraph) shall be included in all copies or substantial portions of the
258N/A# Software.
258N/A#
258N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
258N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
258N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
258N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
258N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
258N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
258N/A# DEALINGS IN THE SOFTWARE.
258N/A#
258N/A#
258N/A
258N/A# Package name used in tarballs
258N/AMODULE_NAME=liberation-fonts-ttf
258N/A
258N/A# Package metadata
493N/AUPSTREAM = Fedora Fonts SIG
258N/AUPSTREAM_URL = http://fedorahosted.org/liberation-fonts/
258N/AUPSTREAM_SET = yes
258N/A
258N/AMODULE_LICENSE = Liberation Font Software License Agreement
258N/AMODULE_LICENSE_SET = yes
493N/AMODULE_LICENSE_PREPEND = $(GPL_CHOICE_FILE)
493N/A
493N/A# Version number (used in path names)
493N/AMODULE_VERSION=1.07.2
493N/A
493N/A# Checksums for upstream tarball
493N/ATARBALL_MD5 = 274ba7088e294d5dd27616aabbd88d34
258N/ATARBALL_SHA1 = bf6314386793d99d4f86987ff86fd274e9a679e6
258N/ATARBALL_SHA256= b1bbf2df80f388ca1748a41068fafebc8efdfdee7612afb78a7a7cd31004d50f
493N/A
258N/A# Source tarball
258N/ASOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
258N/ASOURCE_TARBALL_NAME_SET=yes
258N/A
258N/A# Download site for source
258N/ASOURCE_URL=http://fedorahosted.org/releases/l/i/liberation-fonts/$(SOURCE_TARBALL_NAME)
258N/ASOURCE_URL_SET=yes
# Patches to apply to source after unpacking, in order
SOURCE_PATCHES= # None
# License file
LICENSE_FILE=License.txt
LICENSE_FILE_SET=yes
TTF_FONT_FILES= \
$(LICENSE_FILE) \
LiberationMono-Bold.ttf \
LiberationMono-BoldItalic.ttf \
LiberationMono-Italic.ttf \
LiberationMono-Regular.ttf \
LiberationSans-Bold.ttf \
LiberationSans-BoldItalic.ttf \
LiberationSans-Italic.ttf \
LiberationSans-Regular.ttf \
LiberationSansNarrow-Bold.ttf \
LiberationSansNarrow-BoldItalic.ttf \
LiberationSansNarrow-Italic.ttf \
LiberationSansNarrow-Regular.ttf \
LiberationSerif-Bold.ttf \
LiberationSerif-BoldItalic.ttf \
LiberationSerif-Italic.ttf \
LiberationSerif-Regular.ttf
# Directory to install to
TTF_SUBDIR=liberation
TTF_SUBDIR_SET=yes
# Since normal package version includes a number starting with 0, which
# pkg rules disallow, add a human-version to display that
MODULE_ATTRDATA_COMMANDS = \
print 'set name=pkg.human-version value="$(MODULE_VERSION)"' >> $@
### Include common rulesets
include ../Makefile.ttf
# Additional license file
install_license: $(MODULE_PKG_METADATA_DIR)/license_GPL
$(MODULE_PKG_METADATA_DIR)/license_GPL: $(SOURCE_DATA_DIR)/COPYING
rm -f $@
cp -pf $(SOURCE_DATA_DIR)/COPYING $@
print 'license license_GPL license="GPLv2"' > $(LICENSE_ATTR_FILE)