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 2016 Aurelien Larcher
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= dejavu-fonts-ttf
19 COMPONENT_VERSION
= 2.37
20 COMPONENT_SUMMARY
= The DejaVu fonts
21 COMPONENT_PROJECT_URL
= http
://dejavu-fonts.org
/
22 COMPONENT_FMRI
= system
/font
/truetype
/dejavu
23 COMPONENT_CLASSIFICATION
= System
/Fonts
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
26 COMPONENT_ARCHIVE_URL
= \
27 http
://sourceforge.net
/projects
/dejavu
/files
/dejavu
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
28 COMPONENT_ARCHIVE_HASH
= \
29 sha256
:fa9ca4d13871dd122f61258a80d01751d603b4d3ee14095d65453b4e846e17d7
30 COMPONENT_LICENSE
= Bitstream Vera Fonts License
32 include $(WS_TOP
)/make-rules
/prep.mk
33 include $(WS_TOP
)/make-rules
/justmake.mk
34 include $(WS_TOP
)/make-rules
/ips.mk
36 FONT_CONF_DIR
=/etc
/fonts
/conf.avail
37 FONT_TTF_DIR
=/usr
/share
/fonts
/TrueType
38 THIS_FONT_DIR
=$(FONT_TTF_DIR
)/dejavu
40 COMPONENT_BUILD_ACTION
= cd
$(@D
) ; mkfontscale
; mkfontdir
42 COMPONENT_INSTALL_ACTION
= cd
$(@D
) && \
43 rm -rf
$(PROTO_DIR
)$(THIS_FONT_DIR
) && mkdir
-p
$(PROTO_DIR
)$(THIS_FONT_DIR
) && \
44 $(INSTALL
) -c
-m
0444 ttf
/*.ttf fonts.
dir fonts.scale
$(PROTO_DIR
)$(THIS_FONT_DIR
); \
45 rm -rf
$(PROTO_DIR
)$(FONT_CONF_DIR
) && mkdir
-p
$(PROTO_DIR
)$(FONT_CONF_DIR
) && \
46 $(INSTALL
) -c
-m
0444 fontconfig
/*.conf
$(PROTO_DIR
)$(FONT_CONF_DIR
)
50 install: $(INSTALL_32
)
54 REQUIRED_PACKAGES
+= x11
/mkfontdir
55 REQUIRED_PACKAGES
+= x11
/mkfontscale