aboutsummaryrefslogtreecommitdiffstats
path: root/x11-servers/Xfstt/Makefile
blob: b4990285ef752ca1f9343fe3b73d297f94b1391f (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
41
42
43
# Created by: jabley@clear.co.nz
# $FreeBSD$

PORTNAME=   xfstt
PORTVERSION=    1.9.2
CATEGORIES= x11-servers
MASTER_SITES=   http://archive.hadrons.org/software/xfstt/

MAINTAINER= ports@FreeBSD.org
COMMENT=    TrueType font server for X11

LICENSE=    LGPL20+
LICENSE_FILE=   ${WRKSRC}/COPYING.LIB

USES=       pkgconfig tar:xz
USE_XORG=   fontsproto xproto
USE_RC_SUBR=    xfstt
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --localstatedir=/var --disable-nls

TTFONTDIR=  ${PREFIX}/share/fonts/TrueType

SUB_FILES=  pkg-message

OPTIONS_DEFINE= DOCS

post-patch:
.for file in INSTALL doc/Makefile.in src/Makefile.in
    @${REINPLACE_CMD} -e 's|%%TTFONTDIR%%|${TTFONTDIR}|g' ${WRKSRC}/${file}
.endfor

post-install:
    ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${FILESDIR}/xfstt.in \
        > ${WRKSRC}/xfstt
    ${INSTALL_SCRIPT} ${WRKSRC}/xfstt ${STAGEDIR}${PREFIX}/etc/rc.d/

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for _file in INSTALL THANKS
    ${INSTALL_DATA} ${WRKSRC}/${_file} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>