open-src/font/deja-vu/Makefile
author X gate hg captive account <xhg@xserver.us.oracle.com>
Wed, 19 Aug 2015 13:48:41 -0700
changeset 1484 bc8922b8e1d2
parent 1406 5789451435d6
permissions -rw-r--r--
Added tag s11u3_30 for changeset 221e9d9cc9cb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###############################################################################
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
# Deja Vu Fonts Makefile
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
1406
5789451435d6 18952370 X packages need TPNO updates for new versions approved via LTE
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1339
diff changeset
     5
# Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
#
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@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.
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
#
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
#
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 365
diff changeset
    28
# Package name used in tarballs
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 365
diff changeset
    29
MODULE_NAME=dejavu-fonts-ttf
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@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: 935
diff changeset
    31
# Package metadata
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    32
UPSTREAM	= DejaVu fonts
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    33
UPSTREAM_URL	= http://dejavu-fonts.org/
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    34
UPSTREAM_SET	= yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    35
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    36
MODULE_LICENSE          = Bitstream Vera Fonts License
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    37
MODULE_LICENSE_SET      = yes
1339
4f152696e5f2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1164
diff changeset
    38
MODULE_DESC		= the DejaVu fonts
1406
5789451435d6 18952370 X packages need TPNO updates for new versions approved via LTE
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1339
diff changeset
    39
ORACLE_TPNO		= 18005
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    40
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    41
# Version number (used in path names)
1164
fc95fded4809 7067904 Update deja-vu fonts to version 2.33
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    42
MODULE_VERSION=2.33
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    44
# Checksums for upstream tarball
1164
fc95fded4809 7067904 Update deja-vu fonts to version 2.33
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    45
TARBALL_MD5  = 8b601e91725b6d69141b0fcf527948c0
fc95fded4809 7067904 Update deja-vu fonts to version 2.33
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    46
TARBALL_SHA1 = 4459d6adc3d5cfeb08e5fbe7a4310da96a58f752
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
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    48
# Download site for source
1042
d0172f4fafac 7001277 Update SourceForge & X.Org URLs for source downloads
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 999
diff changeset
    49
SOURCE_URL=$(SF_DOWNLOADS_URL)/dejavu/dejavu/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    50
SOURCE_URL_SET=yes
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    52
# Patches to apply to source after unpacking, in order
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    53
SOURCE_PATCHES=		# None
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    54
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 365
diff changeset
    55
# What to install
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    56
MODULE_ADD_INSTALL_TARGETS=install_fonts_conf 
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    57
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    58
# Directory to install to
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    59
TTF_SUBDIR=dejavu
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    60
TTF_SUBDIR_SET=yes
365
7b1fa8e8728b 6673505 Update deja vu fonts to 2.24
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 361
diff changeset
    61
FONTCONF_DEST_DIR=$(PROTODIR)/etc/fonts
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    62
355
a3a81e9c227d 6672824 Copyright/license notices from X.Org software should be included in SVR4 package copyrights
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 222
diff changeset
    63
# License file
a3a81e9c227d 6672824 Copyright/license notices from X.Org software should be included in SVR4 package copyrights
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 222
diff changeset
    64
LICENSE_FILE=LICENSE
a3a81e9c227d 6672824 Copyright/license notices from X.Org software should be included in SVR4 package copyrights
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 222
diff changeset
    65
LICENSE_FILE_SET=yes
a3a81e9c227d 6672824 Copyright/license notices from X.Org software should be included in SVR4 package copyrights
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 222
diff changeset
    66
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    67
TTF_FONT_FILES= \
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    68
	README \
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    69
	$(LICENSE_FILE) \
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    70
	ttf/*.ttf
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    71
935
f812f9863e75 6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
    72
# Subdir of $(SOURCE_DIR) containing *.ttf files
f812f9863e75 6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
    73
TTF_SOURCE_SUBDIR=ttf/
f812f9863e75 6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
    74
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    75
### Include common rulesets
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    76
include ../Makefile.ttf
222
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    77
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    78
### Rules specific to this directory:
73975f82276f 6470670 Include DejaVu fonts in Solaris
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    79
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    80
install_fonts_conf: $(SOURCE_TARGETS)
561
3c2df35483af 6756343 Split FSWxorg-fonts into smaller packages & integrate to Nevada gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 540
diff changeset
    81
	mkdir -p $(FONTCONF_DEST_DIR)/conf.avail \
365
7b1fa8e8728b 6673505 Update deja vu fonts to 2.24
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 361
diff changeset
    82
		$(FONTCONF_DEST_DIR)/conf.d
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 837
diff changeset
    83
	@( cd $(SOURCE_DIR)/fontconfig ; $(START_CMD_ECHO) ; \
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    84
	  for f in *.conf ; do \
365
7b1fa8e8728b 6673505 Update deja vu fonts to 2.24
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 361
diff changeset
    85
		rm -f $(FONTCONF_DEST_DIR)/conf.avail/$$f \
7b1fa8e8728b 6673505 Update deja vu fonts to 2.24
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 361
diff changeset
    86
			$(FONTCONF_DEST_DIR)/conf.d/$$f ; \
7b1fa8e8728b 6673505 Update deja vu fonts to 2.24
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 361
diff changeset
    87
		cp -p $$f $(FONTCONF_DEST_DIR)/conf.avail/ ; \
7b1fa8e8728b 6673505 Update deja vu fonts to 2.24
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 361
diff changeset
    88
		ln -s ../conf.avail/$$f $(FONTCONF_DEST_DIR)/conf.d/ ; \
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    89
	  done )
561
3c2df35483af 6756343 Split FSWxorg-fonts into smaller packages & integrate to Nevada gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 540
diff changeset
    90
3c2df35483af 6756343 Split FSWxorg-fonts into smaller packages & integrate to Nevada gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 540
diff changeset
    91