aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/code2001/Makefile
blob: 120c798dfc3ba64d531f26df2e1b8acd4206df43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$

PORTNAME=   code2001
PORTVERSION=    0.919
CATEGORIES= x11-fonts
MASTER_SITES=   CENKES/myports/${DIST_SUBDIR}
DISTFILES=  CODE2001.ZIP
DIST_SUBDIR=    ${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Free Plane 1 Unicode-based Font

BUILD_DEPENDS=  mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale   \
        mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir   \
        fc-cache:${PORTSDIR}/x11-fonts/fontconfig

USE_ZIP=    yes
PLIST_SUB=  FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
FONTNAME=   ${PORTNAME}
FONTSDIR?=  ${PREFIX}/lib/X11/fonts/${FONTNAME}

MKFONTSCL_CMD=  ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD=  ${LOCALBASE}/bin/mkfontdir
FCCACHE_CMD=    ${LOCALBASE}/bin/fc-cache -f -v

post-extract:
    @${MKDIR} ${STAGEDIR}${WRKSRC}/
    @${MV} ${WRKDIR}/CODE2001.TTF ${WRKSRC}/${FONTNAME}.ttf

do-build:
    @cd ${WRKSRC}/ && ${MKFONTSCL_CMD} && ${MKFONTDIR_CMD}

do-install:
    @${INSTALL} -d ${STAGEDIR}${FONTSDIR}/
    @${INSTALL_DATA} ${WRKSRC}/* ${STAGEDIR}${FONTSDIR}/
    @${ECHO_MSG} "===> Running fc-cache"
    -${FCCACHE_CMD} ${STAGEDIR}${FONTSDIR}

.include <bsd.port.mk>