open-src/font/bitstream-vera/Makefile
changeset 837 ee480af8e87c
parent 810 6f94d3da0552
child 907 3c35d611cdaa
equal deleted inserted replaced
836:2904a8ef7bc6 837:ee480af8e87c
    28 # Except as contained in this notice, the name of a copyright holder
    28 # Except as contained in this notice, the name of a copyright holder
    29 # shall not be used in advertising or otherwise to promote the sale, use
    29 # shall not be used in advertising or otherwise to promote the sale, use
    30 # or other dealings in this Software without prior written authorization
    30 # or other dealings in this Software without prior written authorization
    31 # of the copyright holder.
    31 # of the copyright holder.
    32 #
    32 #
    33 # ident	"@(#)Makefile	1.8	09/10/13 SMI"
    33 # ident	"@(#)Makefile	1.9	09/11/23 SMI"
    34 #
    34 #
    35 
    35 
    36 # Package name used in tarballs
    36 # Package name used in tarballs
    37 MODULE_NAME=ttf-bitstream-vera
    37 MODULE_NAME=ttf-bitstream-vera
    38 
    38 
    44 SOURCE_URL_SET=yes
    44 SOURCE_URL_SET=yes
    45 
    45 
    46 # Patches to apply to source after unpacking, in order
    46 # Patches to apply to source after unpacking, in order
    47 SOURCE_PATCHES=		# None
    47 SOURCE_PATCHES=		# None
    48 
    48 
    49 # No configure script to run
       
    50 CONFIGURE_TARGETS=
       
    51 CONFIGURE_TARGETS_SET=yes
       
    52 
       
    53 # What to build
       
    54 BUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
       
    55 BUILD_TARGETS_SET=yes
       
    56 
       
    57 # What to install
       
    58 INSTALL_TARGETS=install_veradir install_ttfdir
       
    59 INSTALL_TARGETS_SET=yes
       
    60 
       
    61 # Directory to install to
    49 # Directory to install to
    62 FONT_DEST_DIR=$(PROTODIR)$(X11_TRUETYPE_DIR)
    50 TTF_SUBDIR=bitstream-vera
       
    51 TTF_SUBDIR_SET=yes
    63 
    52 
    64 # License file
    53 # License file
    65 LICENSE_FILE=COPYRIGHT.TXT
    54 LICENSE_FILE=COPYRIGHT.TXT
    66 LICENSE_FILE_SET=yes
    55 LICENSE_FILE_SET=yes
    67 
    56 
    68 ### Include common rulesets
    57 TTF_FONT_FILES= \
    69 include ../Makefile.inc
    58 	COPYRIGHT.TXT	\
    70 
       
    71 ### Rules specific to this directory:
       
    72 
       
    73 VERA_FONT_FILES= \
       
    74 	Vera.ttf	\
    59 	Vera.ttf	\
    75 	VeraBI.ttf	\
    60 	VeraBI.ttf	\
    76 	VeraBd.ttf	\
    61 	VeraBd.ttf	\
    77 	VeraIt.ttf	\
    62 	VeraIt.ttf	\
    78 	VeraMoBI.ttf	\
    63 	VeraMoBI.ttf	\
    80 	VeraMoIt.ttf	\
    65 	VeraMoIt.ttf	\
    81 	VeraMono.ttf	\
    66 	VeraMono.ttf	\
    82 	VeraSe.ttf	\
    67 	VeraSe.ttf	\
    83 	VeraSeBd.ttf
    68 	VeraSeBd.ttf
    84 
    69 
    85 $(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
    70 ### Include common rulesets
    86 	(cd $(SOURCE_DIR) && $(MKFONTSCALE) .)
    71 include ../Makefile.ttf
    87 
    72 
    88 install_vera: $(BUILD_TARGETS)
       
    89 	mkdir -p $(FONT_DEST_DIR)
       
    90 	-( cd $(FONT_DEST_DIR) ; rm -f $(VERA_FONT_FILES) VeraFontsCopyright.txt )
       
    91 	( cd $(SOURCE_DIR) ; cp -p $(VERA_FONT_FILES) $(FONT_DEST_DIR) )
       
    92 	cp -p $(SOURCE_DIR)/COPYRIGHT.TXT $(FONT_DEST_DIR)/VeraFontsCopyright.txt 
       
    93 	touch $(FONT_DEST_DIR)/fonts.scale
       
    94 	chmod +w $(FONT_DEST_DIR)/fonts.scale
       
    95 	../merge-fonts.scale.pl -i $(FONT_DEST_DIR)/fonts.scale \
       
    96 		-i $(SOURCE_DIR)/fonts.scale -o $(FONT_DEST_DIR)/fonts.scale
       
    97 	(cd $(FONT_DEST_DIR) && $(MKFONTDIR) . )
       
    98 
       
    99 # Install under both .../TTF & .../vera for building both SUNW* & FSW*
       
   100 # font packages for now
       
   101 
       
   102 install_veradir::$(BUILD_TARGETS)
       
   103 	$(MAKE) $(MAKEFLAGS) \
       
   104 		FONT_DEST_DIR=$(PROTODIR)$(X11_FONT_DIR)/vera install_vera
       
   105 
       
   106 install_ttfdir::$(BUILD_TARGETS)
       
   107 	$(MAKE) $(MAKEFLAGS) \
       
   108 		FONT_DEST_DIR=$(PROTODIR)$(X11_TRUETYPE_DIR) install_vera