open-src/font/liberation/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Wed, 10 Aug 2016 21:49:25 -0700
changeset 1653 9fcb30a2102b
parent 1551 73fac33fe172
permissions -rw-r--r--
24443559 Update deja-vu fonts to version 2.37
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
     1
###############################################################################
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
     2
#
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
     3
# Liberation Fonts Makefile
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
     4
#
1551
73fac33fe172 21299212 X packages should use com.oracle.info.consolidation.repository-* tags
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1356
diff changeset
     5
# Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
     6
#
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
     7
# Permission is hereby granted, free of charge, to any person obtaining a
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     8
# copy of this software and associated documentation files (the "Software"),
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     9
# to deal in the Software without restriction, including without limitation
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    10
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    11
# and/or sell copies of the Software, and to permit persons to whom the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    12
# Software is furnished to do so, subject to the following conditions:
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    13
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    14
# The above copyright notice and this permission notice (including the next
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    15
# paragraph) shall be included in all copies or substantial portions of the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    16
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    17
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    18
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    19
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    20
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    21
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    22
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    23
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    24
# DEALINGS IN THE SOFTWARE.
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    25
#
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    26
#
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    27
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 460
diff changeset
    28
# Package name used in tarballs
1271
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    29
MODULE_NAME=liberation-fonts-ttf
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    30
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    31
# Package metadata
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    32
UPSTREAM	= Fedora Fonts SIG
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    33
UPSTREAM_URL	= http://fedorahosted.org/liberation-fonts/
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    34
UPSTREAM_SET	= yes
1551
73fac33fe172 21299212 X packages should use com.oracle.info.consolidation.repository-* tags
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1356
diff changeset
    35
GIT_URL		= http://git.fedorahosted.org/git/liberation-fonts.git
73fac33fe172 21299212 X packages should use com.oracle.info.consolidation.repository-* tags
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1356
diff changeset
    36
GIT_URL_SET	= yes
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    37
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    38
MODULE_LICENSE          = Liberation Font Software License Agreement
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    39
MODULE_LICENSE_SET      = yes
1003
a4d17d6bc179 6980773 X gate needs branding options
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    40
MODULE_LICENSE_PREPEND	= $(GPL_CHOICE_FILE)
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
    41
MODULE_DESC		= the Liberation fonts
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
    42
ORACLE_TPNO		= 9925
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    43
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    44
# Version number (used in path names)
1271
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    45
MODULE_VERSION=1.07.2
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    46
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    47
# Checksums for upstream tarball
1271
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    48
TARBALL_MD5   = 274ba7088e294d5dd27616aabbd88d34
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    49
TARBALL_SHA1  = bf6314386793d99d4f86987ff86fd274e9a679e6
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    50
TARBALL_SHA256= b1bbf2df80f388ca1748a41068fafebc8efdfdee7612afb78a7a7cd31004d50f
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    51
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    52
# Source tarball
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 460
diff changeset
    53
SOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 460
diff changeset
    54
SOURCE_TARBALL_NAME_SET=yes
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    55
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    56
# Download site for source
460
92b5d4bbf7ff 6723814 update liberation fonts to 1.0.3
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 372
diff changeset
    57
SOURCE_URL=http://fedorahosted.org/releases/l/i/liberation-fonts/$(SOURCE_TARBALL_NAME)
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    58
SOURCE_URL_SET=yes
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    59
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    60
# Patches to apply to source after unpacking, in order
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    61
SOURCE_PATCHES=		# None
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    62
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    63
# License file
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
    64
LICENSE_FILE = pkg-license.txt
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    65
LICENSE_FILE_SET=yes
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
    66
MODULE_ADD_INSTALL_TARGETS = $(SOURCE_DIR)/$(LICENSE_FILE)
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    67
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    68
TTF_FONT_FILES= \
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
    69
	License.txt \
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    70
	LiberationMono-Bold.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    71
	LiberationMono-BoldItalic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    72
	LiberationMono-Italic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    73
	LiberationMono-Regular.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    74
	LiberationSans-Bold.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    75
	LiberationSans-BoldItalic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    76
	LiberationSans-Italic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    77
	LiberationSans-Regular.ttf \
1271
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    78
	LiberationSansNarrow-Bold.ttf \
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    79
	LiberationSansNarrow-BoldItalic.ttf \
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    80
	LiberationSansNarrow-Italic.ttf \
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    81
	LiberationSansNarrow-Regular.ttf \
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    82
	LiberationSerif-Bold.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    83
	LiberationSerif-BoldItalic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    84
	LiberationSerif-Italic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    85
	LiberationSerif-Regular.ttf
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    86
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    87
# Directory to install to
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    88
TTF_SUBDIR=liberation
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    89
TTF_SUBDIR_SET=yes
651
b1c16d874015 6810319 bring nevada font packages closer to opensolaris ones
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
    90
1271
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    91
# Since normal package version includes a number starting with 0, which
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    92
# pkg rules disallow, add a human-version to display that
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    93
MODULE_ATTRDATA_COMMANDS = \
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    94
	print 'set name=pkg.human-version value="$(MODULE_VERSION)"' >> $@
4d5c437165db 7162162 Update liberation fonts to version 1.07.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1228
diff changeset
    95
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    96
### Include common rulesets
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    97
include ../Makefile.ttf
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    98
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
    99
# Generate a combined license file
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
   100
$(LICENSE_FILE_DEST): $(SOURCE_DIR)/$(LICENSE_FILE)
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   101
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
   102
$(SOURCE_DIR)/$(LICENSE_FILE): $(SOURCE_TARGETS)
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   103
	rm -f $@
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
   104
	fmt $(SOURCE_DIR)/License.txt > $@
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
   105
	print '\n________________________________________________________________________________\n' >> $@
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1271
diff changeset
   106
	cat $(SOURCE_DIR)/COPYING >> $@