aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/fntsample/Makefile
blob: 8853c94813929e73289b7edc7d276cc60e760c85 (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.8
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

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

USE_GNOME=  glib20 pkgconfig pango
USE_PERL5_RUN=  yes
GNU_CONFIGURE=  yes
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>