1# Created by: Michael Hsin <mhsin@mhsin.org> 2 3PORTNAME= terminus-font 4PORTVERSION= 4.49.1 5PORTREVISION= 1 6CATEGORIES= x11-fonts 7MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}-${PORTVERSION} 8 9MAINTAINER= ports@MidnightBSD.org 10COMMENT= Terminus Font - a clean fixed width font 11 12LICENSE= OFL11 13 14BUILD_DEPENDS= bdftopcf:x11-fonts/bdftopcf 15 16USES= gmake fonts python:build,3.5+ shebangfix 17NO_ARCH= yes 18 19SHEBANG_FILES= bin/*.py 20 21OPTIONS_DEFINE= AO2 DV1 GE2 GQ2 IJ1 KA2 HI2 LL2 TD1 22AO2_DESC= Variant of letter 'a' 23DV1_DESC= Variant of cyrillic letters 'de' and 've' 24GE2_DESC= Variant of cyrillic letter 'ge' 25GQ2_DESC= Variant of grave accent and apostrophe 26IJ1_DESC= Variant of cyrillic letters 'i' and 'short i' 27KA2_DESC= Variant of cyrillic letter 'ka' 28HI2_DESC= Higher uppercase letters, for size 18 29LL2_DESC= Variant with more distinctive 'l' (ell) 30TD1_DESC= Variant with centered '~' 31 32SUB_FILES= pkg-message 33 34.include <bsd.mport.options.mk> 35 36ALL_TARGET= pcf pcf-8bit 37 38post-extract: 39.if ${PORT_OPTIONS:MAO2} 40 cd ${WRKSRC} && ${PATCH} -p1 -i alt/ao2.diff 41.endif 42.if ${PORT_OPTIONS:MDV1} && !${PORT_OPTIONS:MHI2} 43 cd ${WRKSRC} && ${PATCH} -p1 -i alt/dv1.diff 44.endif 45.if ${PORT_OPTIONS:MGE2} 46 cd ${WRKSRC} && ${PATCH} -p1 -i alt/ge2.diff 47.endif 48.if ${PORT_OPTIONS:MGQ2} 49 cd ${WRKSRC} && ${PATCH} -p1 -i alt/gq2.diff 50.endif 51.if ${PORT_OPTIONS:MIJ1} 52 cd ${WRKSRC} && ${PATCH} -p1 -i alt/ij1.diff 53.endif 54.if ${PORT_OPTIONS:MKA2} && !${PORT_OPTIONS:MHI2} 55 cd ${WRKSRC} && ${PATCH} -p1 -i alt/ka2.diff 56.endif 57.if ${PORT_OPTIONS:MHI2} 58 cd ${WRKSRC} && ${PATCH} -p1 -i alt/hi2.diff 59.if ${PORT_OPTIONS:MDV1} 60 cd ${WRKSRC} && ${PATCH} -p1 -i alt/hi2-dv1.diff 61.endif 62.if ${PORT_OPTIONS:MKA2} 63 cd ${WRKSRC} && ${PATCH} -p1 -i alt/hi2-ka2.diff 64.endif 65.endif 66.if ${PORT_OPTIONS:MLL2} 67 cd ${WRKSRC} && ${PATCH} -p1 -i alt/ll2.diff 68.endif 69.if ${PORT_OPTIONS:MTD1} 70 cd ${WRKSRC} && ${PATCH} -p1 -i alt/td1.diff 71.endif 72 73post-patch: 74 ${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|g' ${WRKSRC}/Makefile 75 76post-build: 77 @${GZIP_CMD} ${WRKSRC}/*.pcf 78 79do-install: 80 @${MKDIR} ${FONTSDIR} 81 ${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${FONTSDIR} 82 83.include <bsd.port.mk> 84