#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2025 Marcel Telka
#

BUILD_STYLE = configure
FONT_TYPE = X11

include ../../../make-rules/shared-macros.mk

COMPONENT_NAME =		font-winitzki-cyrillic
COMPONENT_VERSION =		1.0.4
COMPONENT_SUMMARY =		Cyrillic bitmap fonts from X.Org Foundation
COMPONENT_ARCHIVE_EXTENSION =	.tar.xz
COMPONENT_ARCHIVE_HASH =	sha256:3b6d82122dc14776e3afcd877833a7834e1f900c53fc1c7bb2d67c781cfa97a8
COMPONENT_LICENSE =		MIT
COMPONENT_LICENSE_FILE =	COPYING

include $(WS_MAKE_RULES)/font.mk

FONT_SUBDIR = winitzki-cyrillic

CONFIGURE_OPTIONS += --with-fontdir=$(USRSHAREX11FONTSDIR)/$(FONT_SUBDIR)

COMPONENT_POST_INSTALL_ACTION += \
	$(call create-symlinks,$(USRSHAREX11FONTSDIR)/$(FONT_SUBDIR),$(ETCDIR)/X11/fontpath.d) ; \
	$(MV) $(PROTOETCDIR)/X11/fontpath.d/$(FONT_SUBDIR) \
	      $(PROTOETCDIR)/X11/fontpath.d/$(FONT_SUBDIR):pri=75 ;

# Auto-generated dependencies
