2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2018,2021 Andreas Wacknitz
17 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_NAME
= fira-code-ttf
21 COMPONENT_SUMMARY
= Monospaced font with programming ligatures
22 COMPONENT_VERSION
= 6.2
23 COMPONENT_PROJECT_URL
= https
://github.com
/tonsky
/FiraCode
24 COMPONENT_FMRI
= system
/font
/truetype
/fira-code
25 COMPONENT_CLASSIFICATION
= System
/Fonts
26 COMPONENT_SRC_NAME
= Fira_Code
27 COMPONENT_SRC
= $(COMPONENT_SRC_NAME
)_v
$(COMPONENT_VERSION
)
28 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).zip
29 COMPONENT_ARCHIVE_URL
= https
://github.com
/tonsky
/FiraCode
/releases
/download
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
30 COMPONENT_ARCHIVE_HASH
= sha256
:0949915ba8eb24d89fd93d10a7ff623f42830d7c5ffc3ecbf960e4ecad3e3e79
31 COMPONENT_LICENSE
= FiraCode License
32 COMPONENT_LICENSE_FILE
= fira-code.license
34 TEST_TARGET
= $(NO_TESTS
)
35 include $(WS_MAKE_RULES
)/common.mk
37 # doesn't extract into its own directory, so pass -r dir to the unpack target
38 UNPACK_ARGS
+=-r
$(COMPONENT_SRC
)
40 FONT_TTF_DIR
=/usr
/share
/fonts
/TrueType
41 THIS_FONT_DIR
=$(FONT_TTF_DIR
)/fira-code
43 COMPONENT_BUILD_ACTION
= cd
$(@D
)/ttf
; mkfontscale
; mkfontdir
45 COMPONENT_INSTALL_ACTION
= cd
$(@D
) && \
46 rm -rf
$(PROTO_DIR
)$(THIS_FONT_DIR
) && mkdir
-p
$(PROTO_DIR
)$(THIS_FONT_DIR
) && \
47 $(INSTALL
) -c
-m
0444 ttf
/*.ttf ttf
/fonts.
dir ttf
/fonts.scale
$(PROTO_DIR
)$(THIS_FONT_DIR
);
49 REQUIRED_PACKAGES
+= x11
/mkfontdir
50 REQUIRED_PACKAGES
+= x11
/mkfontscale