Tweak x11-servers/Xfstt version 1.6_3
[dports.git] / x11-servers / Xfstt / Makefile
1 # Created by: jabley@clear.co.nz
2 # $FreeBSD: x11-servers/Xfstt/Makefile 340722 2014-01-22 17:00:46Z mat $
3
4 PORTNAME=       xfstt
5 PORTVERSION=    1.6
6 PORTREVISION=   3
7 CATEGORIES=     x11-servers
8 MASTER_SITES=   ${MASTER_SITE_BERLIOS}
9 MASTER_SITE_SUBDIR=     ${PORTNAME}
10
11 MAINTAINER=     ports@FreeBSD.org
12 COMMENT=        A TrueType font server for X11
13
14 USE_XORG=       fontsproto xproto
15 GNU_CONFIGURE=  yes
16 CONFIGURE_ARGS= --localstatedir=/var --disable-nls
17
18 MAN1=           xfstt.1x
19
20 TTFONTDIR=      ${PREFIX}/lib/X11/fonts/TrueType
21
22 SUB_FILES=      pkg-message
23
24 NO_STAGE=       yes
25 post-patch:
26 .for file in INSTALL doc/xfstt.1x src/Makefile.in
27         @${REINPLACE_CMD} -e 's|%%TTFONTDIR%%|${TTFONTDIR}|g' ${WRKSRC}/${file}
28 .endfor
29         @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${FILESDIR}/xfstt.sh \
30                 > ${WRKSRC}/xfstt.sh
31
32 post-install:
33         ${INSTALL_SCRIPT} ${WRKSRC}/xfstt.sh ${PREFIX}/etc/rc.d
34         @${MKDIR} ${TTFONTDIR}
35 .if !defined(NOPORTDOCS)
36         @${MKDIR} ${DOCSDIR}
37 .for _file in CHANGES INSTALL THANKS
38         ${INSTALL_DATA} ${WRKSRC}/${_file} ${DOCSDIR}
39 .endfor
40 .endif
41         @${CAT} ${PKGMESSAGE}
42
43 .include <bsd.port.mk>