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