freebsd-ports/x11-servers/Xfstt/Makefile
Niclas Zeising 4c46ca73d8 Add USES=xorg USES=gl, ports categories x
Add USES=xorg and USES=gl to ports in categories starting with 'x'
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-07 18:36:55 +00:00

43 lines
997 B
Makefile

# Created by: jabley@clear.co.nz
# $FreeBSD$
PORTNAME= xfstt
PORTVERSION= 1.9.3
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 xorg
USE_XORG= xorgproto
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>