1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/chinese/ttfm/Makefile
Baptiste Daroussin a5da770e67 Make fonts repecting XDG
Xorg is now looking in ${LOCALBASE}/share/fonts by default
Xorg now accepts symlinks in etc/X11/fontpath.d (as decribed in Xserver(1))
Large cleanup on lots of font ports
All fonts are now properly dynamically generating fonts.dir and fonts.scale
instead of sometime overwriting existing ones)
All fonts are generating fontconfig's cache
Improve consistency in fonts ports
2015-03-21 23:05:19 +00:00

42 lines
1.1 KiB
Makefile

# Created by: Jing-Tang Keith Jang <keith@FreeBSD.org>
# $FreeBSD$
PORTNAME= ttfm
PORTVERSION= 0.9.5
PORTREVISION= 6
CATEGORIES= chinese print
MASTER_SITES= LOCAL/rafan/chinese
MAINTAINER= ports@FreeBSD.org
COMMENT= Big5/GB enhanced TrueType Font Manager
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
MAKE_ARGS= FREETYPE_BASE=${LOCALBASE:Q} CC="${CC}"
PORTDOCS= README USAGE
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' \
-e 's,%%PREFIX%%,${PREFIX},' \
${WRKSRC}/modules/gscjk.ttfm \
${WRKSRC}/modules/xttfm.ttfm \
${WRKSRC}/ttfm.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ttfinfo ${STAGEDIR}${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/ttfm.sh ${STAGEDIR}${PREFIX}/bin/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}/
.endfor
${INSTALL_MAN} ${WRKSRC}/ttfm.sh.1 ${STAGEDIR}${MANPREFIX}/man/man1/
@${MKDIR} ${STAGEDIR}${DATADIR}
.for module in gscjk.ttfm xttfm.ttfm
${INSTALL_SCRIPT} ${WRKSRC}/modules/${module} ${STAGEDIR}${DATADIR}/
.endfor
.include <bsd.port.mk>