424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye###############################################################################
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye#
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Deja Vu Fonts Makefile
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye#
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye#
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Permission is hereby granted, free of charge, to any person obtaining a
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# copy of this software and associated documentation files (the "Software"),
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# to deal in the Software without restriction, including without limitation
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# the rights to use, copy, modify, merge, publish, distribute, sublicense,
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco# and/or sell copies of the Software, and to permit persons to whom the
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Software is furnished to do so, subject to the following conditions:
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye#
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# The above copyright notice and this permission notice (including the next
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# paragraph) shall be included in all copies or substantial portions of the
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Software.
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye#
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders Hatlen# DEALINGS IN THE SOFTWARE.
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye#
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye#
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Package name used in tarballs
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeMODULE_NAME=dejavu-fonts-ttf
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Package metadata
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeUPSTREAM = DejaVu fonts
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeUPSTREAM_URL = http://dejavu-fonts.org/
980d346f8cb17af1bca5def7cdbea8531881009aKnut Anders HatlenUPSTREAM_SET = yes
980d346f8cb17af1bca5def7cdbea8531881009aKnut Anders HatlenGIT_URL = https://github.com/dejavu-fonts/dejavu-fonts.git
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeGIT_URL_SET = yes
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeMODULE_LICENSE = Bitstream Vera Fonts License
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders HatlenMODULE_LICENSE_SET = yes
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders HatlenMODULE_DESC = the DejaVu fonts
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders HatlenORACLE_TPNO = 30836
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders Hatlen
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders Hatlen# Version number (used in path names)
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders HatlenMODULE_VERSION=2.37
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Checksums for upstream tarball
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeTARBALL_MD5 = d0efec10b9f110a32e9b8f796e21782c
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeTARBALL_SHA1 = 7fa15e7b9676fc3915338c41e76ad454c344fff5
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeTARBALL_SHA256 = fa9ca4d13871dd122f61258a80d01751d603b4d3ee14095d65453b4e846e17d7
980d346f8cb17af1bca5def7cdbea8531881009aKnut Anders Hatlen
980d346f8cb17af1bca5def7cdbea8531881009aKnut Anders Hatlen# Download site for source
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders HatlenSOURCE_URL=$(SF_DOWNLOADS_URL)/dejavu/dejavu/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders HatlenSOURCE_URL_SET=yes
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders Hatlen
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders Hatlen# Patches to apply to source after unpacking, in order
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeSOURCE_PATCHES= # None
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye
# 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 )