Update x11-servers/Xfstt to version 1.9.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 CATEGORIES=     x11-servers
7 MASTER_SITES=   http://archive.hadrons.org/software/xfstt/
8 MASTER_SITE_SUBDIR=     ${PORTNAME}
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}/lib/X11/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}${TTFONTDIR}
35         ${MKDIR} ${STAGEDIR}${DOCSDIR}
36 .for _file in INSTALL THANKS
37         ${INSTALL_DATA} ${WRKSRC}/${_file} ${STAGEDIR}${DOCSDIR}
38 .endfor
39
40 .include <bsd.port.mk>