aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/profont/Makefile
blob: dae806ddc7f9cf0b61fed3f536da2a15638f4318 (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
# New ports collection makefile for:   profont-x11
# Date Created:                         25 Sep 2008
# Whom:                                 Manuel Giraud <manuel.giraud@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   profont
PORTVERSION=    400
CATEGORIES= x11-fonts
MASTER_SITES=   http://www.tobiasjung.net/dl/
DISTNAME=   ${PORTNAME}-x11

MAINTAINER= manuel.giraud@gmail.com
COMMENT=    Profont - The ultimate programming font.

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

FONTDIR=    lib/X11/fonts/${PORTNAME}
PLIST_SUB+= FONTDIR=${FONTDIR}

do-build:
    ${GZIP_CMD} ${WRKSRC}/*.pcf

do-install:
    ${MKDIR} ${LOCALBASE}/${FONTDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${LOCALBASE}/${FONTDIR}

post-install:
    @cd ${LOCALBASE}/${FONTDIR}; mkfontdir
    @${CP} ${LOCALBASE}/${FONTDIR}/fonts.dir ${LOCALBASE}/${FONTDIR}/fonts.scale || true
    @command fc-cache -f -v ${LOCALBASE}/${FONTDIR} || true

.include <bsd.port.mk>