1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/japanese/font-udev-gothic-nf/Makefile
2023-01-01 10:52:41 +09:00

56 lines
1.4 KiB
Makefile

PORTNAME= udev-gothic-nf
PORTVERSION= 1.1.0
PORTREVISION= 0
CATEGORIES= japanese x11-fonts
MASTER_SITES= https://github.com/yuru7/udev-gothic/releases/download/v${PORTVERSION}/
PKGNAMEPREFIX= ja-font-
DISTNAME= UDEVGothic_NF_v${DISTVERSION}
MAINTAINER= ume@FreeBSD.org
COMMENT= UDEV Gothic (Nerd Fonts)
WWW= https://github.com/yuru7/udev-gothic
LICENSE= OFL11
USES= fonts:fc zip
NO_ARCH= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
OPTIONS_MULTI= FONT_FAMILY
OPTIONS_MULTI_FONT_FAMILY= UDEV_GOTHIC_NF UDEV_GOTHIC_NFLG \
UDEV_GOTHIC_35NF UDEV_GOTHIC_35NFLG
OPTIONS_DEFAULT= UDEV_GOTHIC_NF UDEV_GOTHIC_NFLG \
UDEV_GOTHIC_35NF UDEV_GOTHIC_35NFLG
UDEV_GOTHIC_NF_DESC= UDEVGothicNF
UDEV_GOTHIC_NFLG_DESC= UDEVGothicNFLG
UDEV_GOTHIC_35NF_DESC= UDEVGothic35NF
UDEV_GOTHIC_35NFLG_DESC= UDEVGothic35NFLG
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MUDEV_GOTHIC_NF}
FONT_FAMILY+= UDEVGothicNF
.endif
.if ${PORT_OPTIONS:MUDEV_GOTHIC_NFLG}
FONT_FAMILY+= UDEVGothicNFLG
.endif
.if ${PORT_OPTIONS:MUDEV_GOTHIC_35NF}
FONT_FAMILY+= UDEVGothic35NF
.endif
.if ${PORT_OPTIONS:MUDEV_GOTHIC_35NFLG}
FONT_FAMILY+= UDEVGothic35NFLG
.endif
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}
.for FAMILY in ${FONT_FAMILY}
. for STYLE in Bold BoldItalic Italic Regular
${INSTALL_DATA} ${WRKSRC}/${FAMILY}-${STYLE}.ttf \
${STAGEDIR}${FONTSDIR}
@${ECHO_CMD} ${FONTSDIR}/${FAMILY}-${STYLE}.ttf >> ${TMPPLIST}
. endfor
.endfor
.include <bsd.port.mk>