mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
83 lines
2.3 KiB
Makefile
83 lines
2.3 KiB
Makefile
# Created by: Michael Hsin <mhsin@mhsin.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= terminus-font
|
|
PORTVERSION= 4.39
|
|
CATEGORIES= x11-fonts
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S|%SUBDIR%|${PORTNAME:tl}/${PORTNAME}-${PORTVERSION}|}
|
|
|
|
MAINTAINER= zeising@FreeBSD.org
|
|
COMMENT= Terminus Font - a clean fixed width font
|
|
|
|
BUILD_DEPENDS= mkitalic:${PORTSDIR}/x11-fonts/mkbold-mkitalic \
|
|
bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
|
|
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
|
|
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
|
|
|
|
USES= gmake perl5
|
|
USE_PERL5= build
|
|
|
|
OPTIONS_DEFINE= AO2 DV1 GE2 GQ2 IJ1 KA2 HI2 LL2 TD1
|
|
AO2_DESC= Variant of letter 'a'
|
|
DV1_DESC= Variant of cyrillic letters 'de' and 've'
|
|
GE2_DESC= Variant of cyrillic letter 'ge'
|
|
GQ2_DESC= Variant of grave accent and apostrophe
|
|
IJ1_DESC= Variant of cyrillic letters 'i' and 'short i'
|
|
KA2_DESC= Variant of cyrillic letter 'ka'
|
|
HI2_DESC= Higher uppercase letters, for size 18
|
|
LL2_DESC= Variant with more distinctive 'l' (ell)
|
|
TD1_DESC= Variant with centered '~'
|
|
|
|
SUB_LIST= FONTDIR="${PREFIX}/${FONTDIR}"
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
ALL_TARGET= pcf
|
|
FONTDIR= lib/X11/fonts/${PORTNAME}
|
|
PLIST_SUB+= FONTDIR=${FONTDIR}
|
|
|
|
post-extract:
|
|
.if ${PORT_OPTIONS:MAO2}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/ao2.diff
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDV1} && !${PORT_OPTIONS:MHI2}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/dv1.diff
|
|
.endif
|
|
.if ${PORT_OPTIONS:MGE2}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/ge2.diff
|
|
.endif
|
|
.if ${PORT_OPTIONS:MGQ2}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/gq2.diff
|
|
.endif
|
|
.if ${PORT_OPTIONS:MIJ1}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/ij1.diff
|
|
.endif
|
|
.if ${PORT_OPTIONS:MKA2} && !${PORT_OPTIONS:MHI2}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/ka2.diff
|
|
.endif
|
|
.if ${PORT_OPTIONS:MHI2}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/hi2.diff
|
|
.if ${PORT_OPTIONS:MDV1}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/hi2-dv1.diff
|
|
.endif
|
|
.if ${PORT_OPTIONS:MKA2}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/hi2-ka2.diff
|
|
.endif
|
|
.endif
|
|
.if ${PORT_OPTIONS:MLL2}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/ll2.diff
|
|
.endif
|
|
.if ${PORT_OPTIONS:MTD1}
|
|
cd ${WRKSRC} && ${PATCH} -p1 -i alt/td1.diff
|
|
.endif
|
|
|
|
post-build:
|
|
@${GZIP_CMD} ${WRKSRC}/*.pcf
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${FONTDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${STAGEDIR}${PREFIX}/${FONTDIR}
|
|
|
|
.include <bsd.port.mk>
|