summaryrefslogtreecommitdiffstats
path: root/x11-fonts/cantarell-fonts/Makefile
blob: 8189e60a1cbf504565524302a4610e4f857e0f4e (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
# New ports collection makefile for:   cantarell-fonts
# Date Created:         2 Feb 2011
# Whom:             Koop Mast <kwm@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   cantarell-fonts
PORTVERSION=    0.0.5
CATEGORIES= x11-fonts gnome
MASTER_SITES=   GNOME

MAINTAINER= kwm@FreeBSD.org
COMMENT=    Cantarell, a Humanist sans-serif font family

LIB_DEPENDS=    fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig

USE_GNOME=  pkgconfig
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
FONTSDIR=   share/fonts/cantarell
PLIST_SUB=  FONTSDIR=${FONTSDIR}

post-patch:
    @${REINPLACE_CMD} -e 's|(datadir)/fontconfig/conf.avail/|(prefix)/etc/fonts/conf.avail/|g' \
        ${WRKSRC}/fontconfig/Makefile.in

post-install:
    @${LOCALBASE}/bin/fc-cache -f -v ${PREFIX}/${FONTSDIR}

.include <bsd.port.mk>