Update x11-servers/Xfstt to version 1.9.1_1
[dports.git] / x11-servers / Xfstt / Makefile
1 # Created by: jabley@clear.co.nz
2 # $FreeBSD$
3
4 PORTNAME=       xfstt
5 PORTVERSION=    1.9.1
6 PORTREVISION=   1
7 CATEGORIES=     x11-servers
8 MASTER_SITES=   http://archive.hadrons.org/software/xfstt/
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        TrueType font server for X11
12
13 OPTIONS_DEFINE= DOCS
14
15 USES=           tar:xz pkgconfig
16 USE_XORG=       fontsproto xproto
17 USE_RC_SUBR=    xfstt
18 GNU_CONFIGURE=  yes
19 CONFIGURE_ARGS= --localstatedir=/var --disable-nls
20
21 TTFONTDIR=      ${PREFIX}/share/fonts/TrueType
22
23 SUB_FILES=      pkg-message
24
25 post-patch:
26 .for file in INSTALL doc/Makefile.in src/Makefile.in
27         ${REINPLACE_CMD} -e 's|%%TTFONTDIR%%|${TTFONTDIR}|g' ${WRKSRC}/${file}
28 .endfor
29
30 post-install:
31         ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${FILESDIR}/xfstt.in \
32                 > ${WRKSRC}/xfstt
33         ${INSTALL_SCRIPT} ${WRKSRC}/xfstt ${STAGEDIR}${PREFIX}/etc/rc.d/
34         ${MKDIR} ${STAGEDIR}${DOCSDIR}
35 .for _file in INSTALL THANKS
36         ${INSTALL_DATA} ${WRKSRC}/${_file} ${STAGEDIR}${DOCSDIR}
37 .endfor
38
39 .include <bsd.port.mk>