aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/fntsample/Makefile
blob: c60d953c801b9735bc4c674909d59078ee97ef56 (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
# New ports collection makefile for:    fntsample
# Date created:     22 January 2007
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   fntsample
PORTVERSION=    2.4
CATEGORIES= x11-fonts
MASTER_SITES=   SF http://unicode.org/Public/5.0.0/ucd/:unidata
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} Blocks.txt:unidata
EXTRACT_ONLY=   ${DISTFILES:M*gz}

MAINTAINER= infofarmer@FreeBSD.org
COMMENT=    Show Unicode coverage of a font

LIB_DEPENDS=    cairo.2:${PORTSDIR}/graphics/cairo \
        freetype.9:${PORTSDIR}/print/freetype2
RUN_DEPENDS=    pdfoutline:${PORTSDIR}/textproc/pdfoutline

USE_GNOME=  glib20 pkgconfig
USE_PERL5_RUN=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man
PLIST_FILES=    bin/${PORTNAME}
MAN1=       ${PORTNAME}.1

post-extract:
    @${CP} ${_DISTDIR}/Blocks.txt ${WRKSRC}/

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/share/unicode|${WRKSRC}|' ${WRKSRC}/configure

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
    @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/

.include <bsd.port.mk>