open-src/font/deja-vu/Makefile
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Mon, 06 Mar 2017 15:06:15 -0800
changeset 1698 442d649bad81
parent 1653 9fcb30a2102b
permissions -rw-r--r--
21767820 Cannot set anymore display resolution to 1280x1024

###############################################################################
#
# Deja Vu Fonts Makefile
#
# Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
#

# Package name used in tarballs
MODULE_NAME=dejavu-fonts-ttf

# Package metadata
UPSTREAM	= DejaVu fonts
UPSTREAM_URL	= http://dejavu-fonts.org/
UPSTREAM_SET	= yes
GIT_URL		= https://github.com/dejavu-fonts/dejavu-fonts.git
GIT_URL_SET	= yes

MODULE_LICENSE          = Bitstream Vera Fonts License
MODULE_LICENSE_SET      = yes
MODULE_DESC		= the DejaVu fonts
ORACLE_TPNO		= 30836

# Version number (used in path names)
MODULE_VERSION=2.37

# Checksums for upstream tarball
TARBALL_MD5  = d0efec10b9f110a32e9b8f796e21782c
TARBALL_SHA1 = 7fa15e7b9676fc3915338c41e76ad454c344fff5
TARBALL_SHA256 = fa9ca4d13871dd122f61258a80d01751d603b4d3ee14095d65453b4e846e17d7

# Download site for source
SOURCE_URL=$(SF_DOWNLOADS_URL)/dejavu/dejavu/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
SOURCE_URL_SET=yes

# Patches to apply to source after unpacking, in order
SOURCE_PATCHES=		# None

# What to install
MODULE_ADD_INSTALL_TARGETS=install_fonts_conf 

# Directory to install to
TTF_SUBDIR=dejavu
TTF_SUBDIR_SET=yes
FONTCONF_DEST_DIR=$(PROTODIR)/etc/fonts

# License file
LICENSE_FILE=LICENSE
LICENSE_FILE_SET=yes

TTF_FONT_FILES= \
	README \
	$(LICENSE_FILE) \
	ttf/*.ttf

# Subdir of $(SOURCE_DIR) containing *.ttf files
TTF_SOURCE_SUBDIR=ttf/

### Include common rulesets
include ../Makefile.ttf

### Rules specific to this directory:
$(SOURCE_DIR)/README: $(SOURCE_TARGETS)
	grep -v travis-ci.org $(SOURCE_DIR)/README.md > $@

install_fonts_conf: $(SOURCE_TARGETS)
	mkdir -p $(FONTCONF_DEST_DIR)/conf.avail \
		$(FONTCONF_DEST_DIR)/conf.d
	@( cd $(SOURCE_DIR)/fontconfig ; $(START_CMD_ECHO) ; \
	  for f in *.conf ; do \
		rm -f $(FONTCONF_DEST_DIR)/conf.avail/$$f \
			$(FONTCONF_DEST_DIR)/conf.d/$$f ; \
		cp -p $$f $(FONTCONF_DEST_DIR)/conf.avail/ ; \
		ln -s ../conf.avail/$$f $(FONTCONF_DEST_DIR)/conf.d/ ; \
	  done )