1 ############################################################################### |
1 ############################################################################### |
2 # |
2 # |
3 # Bitstream Vera Fonts Makefile |
3 # Bitstream Vera Fonts Makefile |
4 # |
4 # |
5 # Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
5 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
6 # Use subject to license terms. |
6 # Use subject to license terms. |
7 # |
7 # |
8 # Permission is hereby granted, free of charge, to any person obtaining a |
8 # Permission is hereby granted, free of charge, to any person obtaining a |
9 # copy of this software and associated documentation files (the |
9 # copy of this software and associated documentation files (the |
10 # "Software"), to deal in the Software without restriction, including |
10 # "Software"), to deal in the Software without restriction, including |
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 # @(#)Makefile 1.4 08/03/07 |
33 # @(#)Makefile 1.5 08/08/08 |
34 # |
34 # |
35 |
35 |
36 PWD:sh=pwd |
36 # Package name used in tarballs |
37 TOP=$(PWD)/../.. |
37 MODULE_NAME=ttf-bitstream-vera |
38 |
38 |
39 # Version number (used in path names) |
39 # Version number (used in path names) |
40 VERSION=1.10 |
40 MODULE_VERSION=1.10 |
41 |
|
42 # Source tarball |
|
43 SOURCE_TARBALL_NAME=ttf-bitstream-vera-$(VERSION).tar.bz2 |
|
44 |
41 |
45 # Download site for source |
42 # Download site for source |
46 SOURCE_URL=http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/$(VERSION)/ttf-bitstream-vera-$(VERSION).tar.bz2 |
43 SOURCE_URL=http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME) |
47 SOURCE_URL_SET=yes |
44 SOURCE_URL_SET=yes |
48 |
45 |
49 # Patches to apply to source after unpacking, in order |
46 # Patches to apply to source after unpacking, in order |
50 SOURCE_PATCHES= # None |
47 SOURCE_PATCHES= # None |
51 |
48 |
52 # Directory created by unpacking source |
|
53 SOURCE_DIR=$(BUILD_DIR)/ttf-bitstream-vera-$(VERSION) |
|
54 |
|
55 # What to build |
49 # What to build |
56 BUILD_TARGETS=$(SOURCE_DIR)/fonts.scale |
50 BUILD_TARGETS=$(SOURCE_DIR)/fonts.scale |
|
51 BUILD_TARGETS_SET=yes |
|
52 |
|
53 # What to install |
|
54 INSTALL_TARGETS=install_vera |
|
55 INSTALL_TARGETS_SET=yes |
57 |
56 |
58 # Directory to install to |
57 # Directory to install to |
59 DEST_DIR=$(PROTODIR)$(TRUETYPE_DIR) |
58 DEST_DIR=$(PROTODIR)$(TRUETYPE_DIR) |
60 |
59 |
61 # License file |
60 # License file |
62 LICENSE_FILE=COPYRIGHT.TXT |
61 LICENSE_FILE=COPYRIGHT.TXT |
63 LICENSE_FILE_SET=yes |
62 LICENSE_FILE_SET=yes |
64 |
63 |
65 ### Include common rulesets |
64 ### Include common rulesets |
66 include $(TOP)/common/Makefile.inc |
65 include ../Makefile.inc |
67 |
66 |
68 ### Rules specific to this directory: |
67 ### Rules specific to this directory: |
69 |
68 |
70 VERA_FONT_FILES= \ |
69 VERA_FONT_FILES= \ |
71 Vera.ttf \ |
70 Vera.ttf \ |
77 VeraMoIt.ttf \ |
76 VeraMoIt.ttf \ |
78 VeraMono.ttf \ |
77 VeraMono.ttf \ |
79 VeraSe.ttf \ |
78 VeraSe.ttf \ |
80 VeraSeBd.ttf |
79 VeraSeBd.ttf |
81 |
80 |
82 build_gen: $(BUILD_TARGETS) |
|
83 |
|
84 $(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET) |
81 $(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET) |
85 (cd $(SOURCE_DIR) && \ |
82 (cd $(SOURCE_DIR) && \ |
86 LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \ |
83 LD_LIBRARY_PATH=$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \ |
87 $(PROTODIR)$(X11_DIR)/bin/mkfontscale . ) |
84 $(PROTODIR)$(X11_DIR)/bin/mkfontscale . ) |
88 |
85 |
89 install_gen:: $(BUILD_TARGETS) |
86 install_vera: $(BUILD_TARGETS) |
90 mkdir -p $(DEST_DIR) |
87 mkdir -p $(DEST_DIR) |
91 -( cd $(DEST_DIR) ; rm -f $(VERA_FONT_FILES) VeraFontsCopyright.txt ) |
88 -( cd $(DEST_DIR) ; rm -f $(VERA_FONT_FILES) VeraFontsCopyright.txt ) |
92 ( cd $(SOURCE_DIR) ; cp -p $(VERA_FONT_FILES) $(DEST_DIR) ) |
89 ( cd $(SOURCE_DIR) ; cp -p $(VERA_FONT_FILES) $(DEST_DIR) ) |
93 cp -p $(SOURCE_DIR)/COPYRIGHT.TXT $(DEST_DIR)/VeraFontsCopyright.txt |
90 cp -p $(SOURCE_DIR)/COPYRIGHT.TXT $(DEST_DIR)/VeraFontsCopyright.txt |
94 touch $(DEST_DIR)/fonts.scale |
91 touch $(DEST_DIR)/fonts.scale |