open-src/font/Makefile.inc
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Mon, 22 Feb 2016 16:57:16 -0800
changeset 1610 77a2e608a1ff
parent 1479 4a76cf532c2c
permissions -rw-r--r--
22807351 X gate makefiles no longer need to carry around $(X11_DIR) baggage
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
# -*- Makefile -*- rules common to most X.Org font modules
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
1610
77a2e608a1ff 22807351 X gate makefiles no longer need to carry around $(X11_DIR) baggage
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1479
diff changeset
     3
# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
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: 907
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: 907
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: 907
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: 907
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: 907
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: 907
diff changeset
    11
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
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: 907
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: 907
diff changeset
    14
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    15
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
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: 907
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: 907
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: 907
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: 907
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: 907
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: 907
diff changeset
    22
# DEALINGS IN THE SOFTWARE.
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
#
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
#
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
156
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 98
diff changeset
    26
### Makefile settings/rules common to all X.Org font modules
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
PWD:sh=pwd
967
efbd0ee6805d 6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    29
TOP=$(PWD)/../../..
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    31
MODTYPE=font
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    32
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    33
### Include common definitions
967
efbd0ee6805d 6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    34
include $(TOP)/open-src/common/Makefile.init
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    35
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    36
# Default package name for font packages
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    37
MODTYPE_PKGHIER_DEFAULT         = $(MODTYPE_PKGHIER_SET:yes=$(POUND_SIGN))
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    38
$(MODTYPE_PKGHIER_DEFAULT)	MODTYPE_PKGHIER=system/font
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    39
MODTYPE_PKGHIER_SET=yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    40
MODULE_PKGTAIL_DEFAULT		= $(MODULE_PKGTAIL_SET:yes=$(POUND_SIGN))
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    41
$(MODULE_PKGTAIL_DEFAULT)	MODULE_PKGTAIL:sh=basename $(pwd)
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    42
MODULE_PKGTAIL_SET	      	= yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    43
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    44
# Package classification
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    45
MODULE_PKGCLASS_DEFAULT		= $(MODULE_PKGCLASS_SET:yes=$(POUND_SIGN))
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    46
$(MODULE_PKGCLASS_DEFAULT)	MODULE_PKGCLASS=System/Fonts
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    47
MODULE_PKGCLASS_SET		= yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    48
1356
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1288
diff changeset
    49
# Default module description for packages in this area
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1288
diff changeset
    50
MODTYPE_DESC = the $(MODULE_NAME:font-%=%) fonts
73c3eb360de2 16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1288
diff changeset
    51
1392
fa8ecde31cf5 17251350 X needs more TPNO's
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1356
diff changeset
    52
# Default TPNO & license text for X.Org fonts
1395
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    53
UPSTREAM_DEFAULT	= $(UPSTREAM_SET:yes=$(POUND_SIGN))	
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    54
$(UPSTREAM_DEFAULT)	ORACLE_TPNO = $(ORACLE_TPNO_xorg_fonts)
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    55
$(UPSTREAM_DEFAULT)	ORACLE_TPNO_SET = yes
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    56
$(UPSTREAM_DEFAULT)	XORG_FONT_LICENSE  = ../X11-font-license.txt
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    57
$(UPSTREAM_DEFAULT) 	ADD_LICENSE_HEADER = ../X11-font-license-add.txt
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    58
$(UPSTREAM_DEFAULT)	LICENSE_APPEND = $(ADD_LICENSE_FILES)
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    59
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    60
# If font makefile contains AUTO_ADD_LICENSE = no, we just display the X.Org
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    61
# font license, as there is no other attribution notice required for the 
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    62
# package.  Otherwise we display the X11 license, plus a header and the 
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    63
# package's own COPYING file.
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    64
ADD_LICENSE_YES  = $(AUTO_ADD_LICENSE:no=$(POUND_SIGN)) 
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    65
$(ADD_LICENSE_YES) ADD_LICENSE_NO = $(POUND_SIGN)
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    66
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    67
$(UPSTREAM_DEFAULT)$(ADD_LICENSE_YES)	MODULE_LICENSE_PREPEND  = $(XORG_FONT_LICENSE)
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    68
$(UPSTREAM_DEFAULT)$(ADD_LICENSE_YES)	MODULE_LICENSE_PREPEND += $(ADD_LICENSE_HEADER)
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    69
$(UPSTREAM_DEFAULT)$(ADD_LICENSE_NO)	LICENSE_FILE = $(XORG_FONT_LICENSE)
491325df357b 17251350 X needs more TPNO's (fix font licenses)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    70
$(UPSTREAM_DEFAULT)$(ADD_LICENSE_NO)	LICENSE_FILE_SET = yes
1392
fa8ecde31cf5 17251350 X needs more TPNO's
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1356
diff changeset
    71
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    72
# Most font modules have no man pages
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    73
MODTYPE_SUNTOUCH_MAN_FLAGS= 
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    74
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    75
# No common dependencies
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    76
MODTYPE_CONFIGURE_DEPS=
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    77
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
    78
# Set default installation path for fonts
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
    79
MODTYPE_CONFIG_OPTS = --with-fontrootdir="$(X11_FONT_DIR)"
963
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    80
MODTYPE_CONFIG_OPTS += $(MODULE_FONTDIR:%=--with-fontdir="%")
837
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
    81
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
    82
# Disable compression of pcf fonts
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
    83
MODTYPE_CONFIG_OPTS += --without-compression
ee480af8e87c 6896574 Font repackaging and upgrade to X11R7.5 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
    84
1288
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    85
# Avoid races between modules that install to the same directory by not 
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    86
# running mkfontdir at build time, but waiting for later (either in the
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    87
# sun-aliases module or during packaging in generate_font_metadata.pl).
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    88
MODTYPE_CONFIG_OPTS += MKFONTDIR=/usr/bin/true
cbb688257dda 7170130 X gate builds sometimes lose mkfontdir races
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    89
1425
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1395
diff changeset
    90
# Most font modules have nothing to build, but font-util builds some programs
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1395
diff changeset
    91
MODTYPE_CFLAGS=$(PROG_CFLAGS)
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1395
diff changeset
    92
MODTYPE_CPPFLAGS=$(PROG_CPPFLAGS)
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1395
diff changeset
    93
MODTYPE_CXXFLAGS=$(PROG_CXXFLAGS)
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1395
diff changeset
    94
MODTYPE_LDFLAGS=$(PROG_LDFLAGS)
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    95
MODTYPE_LD_OPTIONS=
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    96
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 156
diff changeset
    97
# Paths to find mkfontscale, fc-cache & the libraries they need in build area
1610
77a2e608a1ff 22807351 X gate makefiles no longer need to carry around $(X11_DIR) baggage
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1479
diff changeset
    98
FONT_UTILS_PATH=$(PROTODIR)/usr/bin
77a2e608a1ff 22807351 X gate makefiles no longer need to carry around $(X11_DIR) baggage
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1479
diff changeset
    99
FONT_LIBS_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(LIBSUBDIR_64):$(PROTODIR)/usr/lib$(LIBSUBDIR_64)
306
008074c76022 6658871 Xorg modularization: Type 1 fonts
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 156
diff changeset
   100
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   101
# Additional environment variable options to GNU autoconf configure script
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   102
MODTYPE_CONFIG_ENV = PATH="$(FONT_UTILS_PATH):$$PATH" \
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   103
	LD_LIBRARY_PATH="$(FONT_LIBS_PATH)"
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   104
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   105
# Environment variable options needed when building
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   106
MODTYPE_BUILD_ENV = PATH="$(FONT_UTILS_PATH):$$PATH" \
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   107
	LD_LIBRARY_PATH="$(FONT_LIBS_PATH)"
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   108
963
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   109
# Need to install links in fontpath.d directory
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   110
MODTYPE_ADD_INSTALL_TARGETS = install_fontpath_links
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   111
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   112
### Include common rulesets
967
efbd0ee6805d 6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
   113
include $(TOP)/open-src/common/Makefile.inc
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   114
963
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   115
# Can't use Makefile substitutions or dependencies on the links themselves
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   116
#  due to the : characters & shell math expansion in the link names
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   117
# Ignores errors since /usr/bin/ln -sf can fail due to race conditions
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   118
#  when parallel makes try making the same symlink at the same time
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   119
install_fontpath_links: $(PROTODIR)$(X11_FONT_CATALOGUE)
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   120
	@for l in $(FONTPATH_LINKS) ; do \
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   121
	    if [[ ! -L $(PROTODIR)$(X11_FONT_CATALOGUE)/$$l ]] ; then \
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   122
		( $(START_CMD_ECHO) ; ln -sf ../../..$(MODULE_FONTDIR) \
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   123
		  $(PROTODIR)$(X11_FONT_CATALOGUE)/$$l || true ); \
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   124
	    fi \
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   125
	done
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   126
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   127
$(PROTODIR)$(X11_FONT_CATALOGUE):
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   128
	mkdir -p $@