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