open-src/font/liberation/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Tue, 29 Nov 2011 18:56:12 -0800
changeset 1228 47726356aac9
parent 1003 a4d17d6bc179
child 1271 4d5c437165db
permissions -rw-r--r--
7114886 Remove SOURCE_UNCOMPRESS support from X makefiles
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
#
943
294f64612d23 6948254 Mass update of X gate sources to Oracle copyright format
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
     5
# Copyright (c) 2008, 2010, 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
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 460
diff changeset
    29
MODULE_NAME=liberation-fonts
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
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    35
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    36
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
    37
MODULE_LICENSE_SET      = yes
1003
a4d17d6bc179 6980773 X gate needs branding options
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    38
MODULE_LICENSE_PREPEND	= $(GPL_CHOICE_FILE)
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    39
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    40
# Version number (used in path names)
541
0c1188ac88bf 6750226 Update liberation fonts to version 1.04
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    41
MODULE_VERSION=1.04
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    42
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    43
# Checksums for upstream tarball
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    44
TARBALL_MD5  = 4846797ef0fc70b0cbaede2514677c58
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    45
TARBALL_SHA1 = 097882c92e3260742a3dc3bf033792120d8635a3
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    46
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    47
# Source tarball
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 460
diff changeset
    48
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
    49
SOURCE_TARBALL_NAME_SET=yes
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    50
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    51
# Download site for source
460
92b5d4bbf7ff 6723814 update liberation fonts to 1.0.3
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 372
diff changeset
    52
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
    53
SOURCE_URL_SET=yes
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    54
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    55
# Patches to apply to source after unpacking, in order
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    56
SOURCE_PATCHES=		# None
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    57
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    58
# License file
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    59
LICENSE_FILE=License.txt
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    60
LICENSE_FILE_SET=yes
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    61
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    62
TTF_FONT_FILES= \
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    63
	$(LICENSE_FILE) \
372
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    64
	LiberationMono-Bold.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    65
	LiberationMono-BoldItalic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    66
	LiberationMono-Italic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    67
	LiberationMono-Regular.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    68
	LiberationSans-Bold.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    69
	LiberationSans-BoldItalic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    70
	LiberationSans-Italic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    71
	LiberationSans-Regular.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    72
	LiberationSerif-Bold.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    73
	LiberationSerif-BoldItalic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    74
	LiberationSerif-Italic.ttf \
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    75
	LiberationSerif-Regular.ttf
010a9497c63b 6639996 Include 'Liberation' fonts
Glynn Foster <Glynn.Foster@Sun.COM>
parents:
diff changeset
    76
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    77
# Directory to install to
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    78
TTF_SUBDIR=liberation
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    79
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
    80
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    81
### Include common rulesets
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    82
include ../Makefile.ttf
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    83
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    84
# Additional license file
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    85
install_license: $(MODULE_PKG_METADATA_DIR)/license_GPL
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    86
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    87
$(MODULE_PKG_METADATA_DIR)/license_GPL: $(SOURCE_DATA_DIR)/COPYING
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    88
	rm -f $@
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    89
	cp -pf $(SOURCE_DATA_DIR)/COPYING $@
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    90
	print 'license license_GPL license="GPLv2"' > $(LICENSE_ATTR_FILE)