open-src/font/sun-aliases/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Fri, 18 May 2012 15:15:58 -0700
changeset 1288 cbb688257dda
parent 970 272328fe1b4a
child 1356 73c3eb360de2
permissions -rw-r--r--
7170130 X gate builds sometimes lose mkfontdir races
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###############################################################################
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
1288
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
     3
# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
# 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: 851
diff changeset
     6
# 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: 851
diff changeset
     7
# 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: 851
diff changeset
     8
# 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: 851
diff changeset
     9
# 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: 851
diff changeset
    10
# 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: 851
diff changeset
    11
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    12
# 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: 851
diff changeset
    13
# 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: 851
diff changeset
    14
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    15
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    16
# 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: 851
diff changeset
    17
# 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: 851
diff changeset
    18
# 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: 851
diff changeset
    19
# 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: 851
diff changeset
    20
# 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: 851
diff changeset
    21
# 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: 851
diff changeset
    22
# DEALINGS IN THE SOFTWARE.
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
#
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 306
diff changeset
    25
MODULE_NAME=sun-aliases
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 306
diff changeset
    26
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    27
# Default package name for bitmap font packages
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    28
MODTYPE_PKGHIER=system/font/xorg
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    29
MODTYPE_PKGHIER_SET=yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    30
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    31
# No upstream sources for these files, since they're Solaris-specific
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 306
diff changeset
    32
MODULE_VERSION=NONE
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    33
SOURCE_TARBALL_NAME=NONE
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 306
diff changeset
    34
SOURCE_TARBALL_NAME_SET=yes
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 306
diff changeset
    35
935
f812f9863e75 6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
    36
SOURCE_TARGETS = 
f812f9863e75 6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
    37
SOURCE_TARGETS_SET=yes
f812f9863e75 6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
    38
810
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 715
diff changeset
    39
CONFIGURE_TARGETS = 
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 715
diff changeset
    40
CONFIGURE_TARGETS_SET=yes
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 715
diff changeset
    41
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 306
diff changeset
    42
BUILD_TARGETS = 
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 306
diff changeset
    43
BUILD_TARGETS_SET=yes
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 306
diff changeset
    44
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    45
INSTALL_TARGETS = install_aliases
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 306
diff changeset
    46
INSTALL_TARGETS_SET=yes
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    47
963
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    48
BUILD_TYPES = core ISO8859-1
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    49
BUILD_TYPES_SET = yes
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    50
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    51
# Special rules for pkg manifest generation
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    52
MANIFEST_TARGETS=$(BUILD_TYPES:%=manifest_%)
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    53
MANIFEST_TARGETS_SET=yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    54
MODULE_PKGTAIL_core = xorg-core
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    55
MODULE_PKGTAIL_ISO8859-1 = iso8859-1
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    56
MODULE_PKGTAIL = $(MODULE_PKGTAIL_$(BUILD_TYPES))
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    57
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    58
### Include common rulesets
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 306
diff changeset
    59
include ../Makefile.inc
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    60
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    61
DESTDIR=$(PROTODIR)
561
3c2df35483af 6756343 Split FSWxorg-fonts into smaller packages & integrate to Nevada gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
    62
INSTDIR=$(DESTDIR)$(X11_FONT_DIR)
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    63
963
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    64
ALIAS_DIRS_core = Type1 misc 75dpi 100dpi
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    65
ALIAS_DIRS_ISO8859-1 = misc-ISO8859-1 75dpi-ISO8859-1 100dpi-ISO8859-1
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 935
diff changeset
    66
ALIAS_DIRS = $(ALIAS_DIRS_$(BUILD_TYPE))
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    67
ALIAS_FILES = $(ALIAS_DIRS:%=$(INSTDIR)/%/fonts.alias)
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    68
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    69
install_aliases: $(ALIAS_FILES)
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    70
1288
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    71
$(ALIAS_DIRS:%=$(INSTDIR)/%):
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    72
	mkdir -p $@
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    73
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    74
$(INSTDIR)/%-ISO8859-1/fonts.alias.all: $(INSTDIR)/%/fonts.alias.all $(INSTDIR)/%-ISO8859-1
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    75
	-rm -f $@
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    76
	cp -pf $< $@
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    77
1288
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    78
$(INSTDIR)/%/fonts.alias.all: fonts.alias.% $(INSTDIR)/%
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    79
	-rm -f $@
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    80
	@if [[ -f $(@:.all=) ]] ; then \
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    81
		$(START_CMD_ECHO) ; \
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    82
		cat $(@:.all=) > $@ ; \
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    83
	fi
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    84
	cat $< >> $@
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 810
diff changeset
    85
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    86
$(INSTDIR)/%/fonts.alias: $(INSTDIR)/%/fonts.alias.all $(INSTDIR)/%/fonts.dir
1288
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    87
	(cd $(@D) ; \
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 837
diff changeset
    88
	 LD_LIBRARY_PATH="$(FONT_LIBS_PATH)" $(INSTALLALIAS) fonts.alias.all .)
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    89
1288
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    90
$(INSTDIR)/%/fonts.dir: $(INSTDIR)/%
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    91
	$(MKFONTDIR) $(@D)
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    92
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    93
manifest_%: 
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    94
	$(MAKE) $(MAKEFLAGS) manifest-per-type \
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    95
		BUILD_TYPES="$(@:manifest_%=%)" \
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    96
		ALIAS_DIRS='$(@:manifest_%=$$(ALIAS_DIRS_%))' \
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    97
		MODULE_PKGTAIL_SET="yes"