open-src/font/Makefile.bdf
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Wed Aug 10 21:49:25 2016 -0700 (2016-08-10)
changeset 1653 9fcb30a2102b
parent 1043 16f3a9b8588b
permissions -rw-r--r--
24443559 Update deja-vu fonts to version 2.37
Alan@837
     1
# -*- Makefile -*- rules common to most X.Org bdf/pcf font modules
Alan@837
     2
#
Alan@1171
     3
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
Alan@837
     4
#
Alan@837
     5
# Permission is hereby granted, free of charge, to any person obtaining a
Alan@919
     6
# copy of this software and associated documentation files (the "Software"),
Alan@919
     7
# to deal in the Software without restriction, including without limitation
Alan@919
     8
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
Alan@919
     9
# and/or sell copies of the Software, and to permit persons to whom the
Alan@919
    10
# Software is furnished to do so, subject to the following conditions:
Alan@919
    11
#
Alan@919
    12
# The above copyright notice and this permission notice (including the next
Alan@919
    13
# paragraph) shall be included in all copies or substantial portions of the
Alan@919
    14
# Software.
Alan@919
    15
#
Alan@919
    16
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Alan@919
    17
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Alan@919
    18
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
Alan@919
    19
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Alan@919
    20
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
Alan@919
    21
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
Alan@919
    22
# DEALINGS IN THE SOFTWARE.
Alan@837
    23
#
Alan@837
    24
#
Alan@837
    25
Alan@837
    26
### Makefile settings/rules common to most bdf/pcf X.Org font modules
Alan@837
    27
Alan@837
    28
PWD:sh=pwd
Alan@967
    29
TOP=$(PWD)/../../..
Alan@837
    30
Alan@837
    31
MODTYPE=font
Alan@837
    32
Alan@837
    33
### Include common definitions
Alan@967
    34
include $(TOP)/open-src/common/Makefile.init
Alan@837
    35
Alan@970
    36
# Default package name for bitmap font packages
Alan@970
    37
MODTYPE_PKGHIER 		= system/font/xorg
Alan@970
    38
MODTYPE_PKGHIER_SET 		= yes
Alan@970
    39
MODULE_PKGTAIL_DEFAULT          = $(MODULE_PKGTAIL_SET:yes=$(POUND_SIGN))
Alan@970
    40
$(MODULE_PKGTAIL_DEFAULT)	MODULE_PKGTAIL = $(BUILD_TYPE:core=xorg-core)
Alan@970
    41
$(MODULE_PKGTAIL_DEFAULT)	MODULE_PKGTAIL_SET = yes
Alan@837
    42
Alan@837
    43
# All the encodings defined in font-util/fontutil.m4.in
Alan@837
    44
ALL_ENCODINGS = \
Alan@837
    45
	iso8859-1  iso8859-2  iso8859-3  iso8859-4  iso8859-5  \
Alan@837
    46
	iso8859-6  iso8859-7  iso8859-8  iso8859-9  iso8859-10 \
Alan@837
    47
	iso8859-11 iso8859-12 iso8859-13 iso8859-14 iso8859-15 \
Alan@837
    48
	iso8859-16 jisx0201   koi8-r
Alan@837
    49
Alan@837
    50
# Encodings we split out into separate subdirs for packaging
Alan@963
    51
ALL_BDF_SUBDIR_ENCODINGS = \
Alan@837
    52
	iso8859-1       \
Alan@837
    53
	iso8859-2       \
Alan@837
    54
        iso8859-3       \
Alan@837
    55
        iso8859-4       \
Alan@837
    56
        iso8859-9       \
Alan@837
    57
        iso8859-10      \
Alan@837
    58
        iso8859-13      \
Alan@837
    59
        iso8859-14      \
Alan@1171
    60
        iso8859-15
Alan@837
    61
Alan@963
    62
misc_BDF_SUBDIR_ENCODINGS = \
Alan@963
    63
	$(ALL_BDF_SUBDIR_ENCODINGS) \
Alan@963
    64
        iso8859-5       \
Alan@963
    65
        iso8859-7       \
Alan@963
    66
        iso8859-8	\
Alan@1171
    67
        iso8859-11      \
Alan@1171
    68
        iso8859-16
Alan@963
    69
100dpi_BDF_SUBDIR_ENCODINGS = $(ALL_BDF_SUBDIR_ENCODINGS)
Alan@963
    70
75dpi_BDF_SUBDIR_ENCODINGS = $(ALL_BDF_SUBDIR_ENCODINGS)
Alan@963
    71
BDF_SUBDIR_ENCODINGS = $($(FONTSUBDIR)_BDF_SUBDIR_ENCODINGS)
Alan@963
    72
Alan@837
    73
BUILD_TYPES = core $(BDF_SUBDIR_ENCODINGS)
Alan@837
    74
BUILD_TYPES_SET = yes
Alan@837
    75
Alan@837
    76
core_ENCODING_CONFIG_OPTS = $(BDF_SUBDIR_ENCODINGS:%=--disable-%)
Alan@837
    77
Alan@1043
    78
 iso8859-1_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-1
Alan@1043
    79
 iso8859-2_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-2
Alan@1043
    80
 iso8859-3_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-3
Alan@1043
    81
 iso8859-4_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-4
Alan@1043
    82
 iso8859-5_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-5
Alan@1043
    83
 iso8859-7_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-7
Alan@1043
    84
 iso8859-8_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-8
Alan@1043
    85
 iso8859-9_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-9
Alan@1043
    86
iso8859-10_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-10
Alan@1043
    87
iso8859-11_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-11
Alan@1043
    88
iso8859-13_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-13
Alan@1043
    89
iso8859-14_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-14
Alan@1043
    90
iso8859-15_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-15
Alan@1043
    91
iso8859-16_ENCODING_CONFIG_OPTS = --disable-all-encodings --enable-iso8859-16
Alan@837
    92
Alan@963
    93
Alan@963
    94
ENCODED_FONTSUBDIR = $(FONTSUBDIR)-$(BUILD_TYPE:iso%=ISO%)
Alan@963
    95
BDF_SUBDIR = $(ENCODED_FONTSUBDIR:%-core=%)
Alan@963
    96
MODULE_FONTDIR = $(X11_FONT_DIR)/$(BDF_SUBDIR)
Alan@837
    97
Alan@837
    98
MODULE_CONFIG_OPTS = $($(BUILD_TYPE)_ENCODING_CONFIG_OPTS) \
Alan@837
    99
	--with-fontdir="$(MODULE_FONTDIR)"
Alan@837
   100
Alan@963
   101
# Font path entries
Alan@963
   102
iso8859-1_PRIORITY 	= 0
Alan@963
   103
iso8859-2_PRIORITY 	= 1
Alan@963
   104
iso8859-3_PRIORITY 	= 1
Alan@963
   105
iso8859-4_PRIORITY 	= 1
Alan@963
   106
iso8859-5_PRIORITY 	= 1
Alan@963
   107
iso8859-6_PRIORITY 	= 1
Alan@963
   108
iso8859-7_PRIORITY 	= 1
Alan@963
   109
iso8859-8_PRIORITY 	= 1
Alan@963
   110
iso8859-9_PRIORITY 	= 1
Alan@963
   111
iso8859-10_PRIORITY 	= 1
Alan@963
   112
iso8859-11_PRIORITY 	= 1
Alan@963
   113
iso8859-12_PRIORITY 	= 1
Alan@963
   114
iso8859-13_PRIORITY 	= 1
Alan@963
   115
iso8859-14_PRIORITY 	= 1
Alan@963
   116
iso8859-15_PRIORITY 	= 1
Alan@963
   117
iso8859-16_PRIORITY 	= 1
Alan@963
   118
core_PRIORITY		= 2
Alan@963
   119
Alan@963
   120
misc_PRIORITY		= 15
Alan@963
   121
100dpi_PRIORITY		= 20
Alan@963
   122
75dpi_PRIORITY		= 25
Alan@963
   123
Alan@963
   124
unscaled_PRIORITY = 0 + $($(BUILD_TYPE)_PRIORITY) + $($(FONTSUBDIR)_PRIORITY)
Alan@963
   125
scaled_PRIORITY	  = 70 + $(unscaled_PRIORITY)
Alan@963
   126
Alan@963
   127
# Use of $(( )) causes ksh93 to evaluate the arithmetic expression
Alan@963
   128
FONTPATH_LINKS = $(BDF_SUBDIR):unscaled:pri=$$(( $(unscaled_PRIORITY) ))
Alan@963
   129
FONTPATH_LINKS += $(BDF_SUBDIR):pri=$$(( $(scaled_PRIORITY) ))
Alan@963
   130
Alan@837
   131
core_INSTALL_CORE_FONTS=yes
Alan@837
   132
# All other build types are left unset for "no"
Alan@837
   133
MODTYPE_MAKEFLAGS_DEFAULT=$($(BUILD_TYPE)_INSTALL_CORE_FONTS:yes=$(POUND_SIGN))
Alan@837
   134
$(MODTYPE_MAKEFLAGS_DEFAULT)	MODTYPE_MAKEFLAGS=PCF_FILES=""
Alan@837
   135
Alan@837
   136
MODULE_ADD_INSTALL_TARGETS = install_license
Alan@837
   137
Alan@970
   138
# Special rules for pkg manifest generation
Alan@970
   139
MANIFEST_TARGETS=$(BUILD_TYPES:%=manifest_%)
Alan@970
   140
MANIFEST_TARGETS_SET=yes
Alan@970
   141
Alan@837
   142
### Include common rulesets
Alan@837
   143
include ../Makefile.inc
Alan@837
   144
Alan@837
   145
# Clean up old directories when we switch to the new rules
Alan@910
   146
clean: clean_32
Alan@837
   147
Alan@922
   148
clean_32:
Alan@922
   149
	-rm -rf build_32
Alan@837
   150
Alan@837
   151
configure_$(BUILD_TYPE): $(UNPACK_TARGET)
Alan@837
   152
build_$(BUILD_TYPE): configure_$(BUILD_TYPE)
Alan@837
   153
install_$(BUILD_TYPE): build_$(BUILD_TYPE)
Alan@970
   154
Alan@970
   155
manifest_%: 
Alan@970
   156
	/usr/xpg4/bin/make $(MAKEFLAGS) manifest-per-type \
Alan@970
   157
		BUILD_TYPES="$(@:manifest_%=%)" \
Alan@970
   158
		MODULE_PKGTAIL="$(@:manifest_%=%)" MODULE_PKGTAIL_SET="yes"