openbsd-ports/fonts/ibm-plex/Makefile
2022-03-11 19:00:15 +00:00

41 lines
1011 B
Makefile

COMMENT = IBM's corporate type family
CATEGORIES = fonts
V = 6.0.0
PKGNAME = ibm-plex-$V
# SIL OFL 1.1
PERMIT_PACKAGE = Yes
MASTER_SITES = https://github.com/IBM/plex/releases/download/v$V/
DISTFILES = OpenType.zip \
TrueType.zip
DIST_SUBDIR = ibm-plex-$V
HOMEPAGE = https://www.ibm.com/plex/
MODULES = font
NO_BUILD = Yes
NO_TEST = Yes
FONTDIR = ${PREFIX}/share/fonts/ibm-plex
DOCDIR = ${PREFIX}/share/doc/ibm-plex
do-install:
${INSTALL_DATA_DIR} ${FONTDIR}
${INSTALL_DATA} ${WRKDIST}/OpenType/*/*.otf ${FONTDIR}
${INSTALL_DATA} ${WRKDIST}/TrueType/*/*.ttf ${FONTDIR}
# currently JP fonts only have hinted/unhinted directory,
# this package use hinted font following Noto fonts.
${INSTALL_DATA} ${WRKDIST}/OpenType/IBM-Plex-Sans-JP/hinted/*.otf ${FONTDIR}
${INSTALL_DATA} ${WRKDIST}/TrueType/IBM-Plex-Sans-JP/hinted/*.ttf ${FONTDIR}
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKDIST}/OpenType/IBM-Plex-Sans/license.txt ${DOCDIR}
.include <bsd.port.mk>