open-src/font/google-droid/Makefile
changeset 653 99e8cbe3eca5
child 810 6f94d3da0552
equal deleted inserted replaced
652:7c19098fdc31 653:99e8cbe3eca5
       
     1 ###############################################################################
       
     2 #
       
     3 # Droid Fonts Makefile
       
     4 #
       
     5 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
       
     6 # Use subject to license terms.
       
     7 #
       
     8 # Permission is hereby granted, free of charge, to any person obtaining a
       
     9 # copy of this software and associated documentation files (the
       
    10 # "Software"), to deal in the Software without restriction, including
       
    11 # without limitation the rights to use, copy, modify, merge, publish,
       
    12 # distribute, and/or sell copies of the Software, and to permit persons
       
    13 # to whom the Software is furnished to do so, provided that the above
       
    14 # copyright notice(s) and this permission notice appear in all copies of
       
    15 # the Software and that both the above copyright notice(s) and this
       
    16 # permission notice appear in supporting documentation.
       
    17 # 
       
    18 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
       
    19 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
       
    20 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
       
    21 # OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
       
    22 # HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
       
    23 # INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
       
    24 # FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
       
    25 # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
       
    26 # WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
       
    27 # 
       
    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
       
    30 # or other dealings in this Software without prior written authorization
       
    31 # of the copyright holder.
       
    32 #
       
    33 # @(#)Makefile	1.1	09/02/26 SMI
       
    34 #
       
    35 
       
    36 # Package name used in tarballs
       
    37 MODULE_NAME=google-droid-fonts
       
    38 
       
    39 # Version number (used in path names)
       
    40 MODULE_VERSION=1.00
       
    41 
       
    42 # Source tarball
       
    43 SOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
       
    44 SOURCE_TARBALL_NAME_SET=yes
       
    45 
       
    46 # Directory created when unpacking tarball
       
    47 SOURCE_DIRNAME=base
       
    48 SOURCE_DIRNAME_SET=yes
       
    49 
       
    50 # Download site for source
       
    51 SOURCE_URL='http://android.git.kernel.org/?p=platform/frameworks/base.git;a=snapshot;h=b2fdf4096d6f8fc4aaca49bd804f480ba7892856;sf=tgz'
       
    52 SOURCE_URL_SET=yes
       
    53 SOURCE_UNCOMPRESS=gzcat
       
    54 
       
    55 # Patches to apply to source after unpacking, in order
       
    56 SOURCE_PATCHES=		# None
       
    57 
       
    58 # What to build
       
    59 BUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
       
    60 BUILD_TARGETS_SET=yes
       
    61 
       
    62 # What to install
       
    63 INSTALL_TARGETS=install_droid
       
    64 INSTALL_TARGETS_SET=yes
       
    65 
       
    66 # License file
       
    67 LICENSE_FILE=NOTICE
       
    68 LICENSE_FILE_SET=yes
       
    69 
       
    70 ### Include common rulesets
       
    71 include ../Makefile.inc
       
    72 
       
    73 ### Rules specific to this directory:
       
    74 
       
    75 DROID_FONT_FILES= \
       
    76     DroidSans.ttf		\
       
    77     DroidSans-Bold.ttf		\
       
    78     DroidSerif-Regular.ttf	\
       
    79     DroidSerif-Bold.ttf		\
       
    80     DroidSerif-Italic.ttf	\
       
    81     DroidSerif-BoldItalic.ttf	\
       
    82     DroidSansMono.ttf		\
       
    83     DroidSansFallback.ttf
       
    84 
       
    85 $(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
       
    86 	(cd $(SOURCE_DIR) && $(MKFONTSCALE) . )
       
    87 
       
    88 FONT_DEST_DIR=$(PROTODIR)$(X11_FONT_DIR)/TrueType/google-droid
       
    89 
       
    90 install_droid:: $(BUILD_TARGETS)
       
    91 	-rm -rf $(FONT_DEST_DIR)
       
    92 	mkdir -p $(FONT_DEST_DIR)
       
    93 	( cd $(SOURCE_DIR) ; cp -p $(DROID_FONT_FILES) $(FONT_DEST_DIR)/ )
       
    94 	$(MKFONTSCALE) $(FONT_DEST_DIR)
       
    95 	$(MKFONTDIR) $(FONT_DEST_DIR)
       
    96 
       
    97 
       
    98