1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/chinese/ttfm/Makefile
Tobias C. Berner 85892130a8 chinese/ttfm: prepare for freetype2 update
- freetype2 will no longer ship freetype-config (which was a pkg-config
  wrapper) in the near future -- use pkg-config to gather the required
  flags.

PR:		251512
2021-08-06 11:48:47 +02:00

47 lines
1.1 KiB
Makefile

# Created by: Jing-Tang Keith Jang <keith@FreeBSD.org>
PORTNAME= ttfm
PORTVERSION= 0.9.5
PORTREVISION= 7
CATEGORIES= chinese print
MASTER_SITES= LOCAL/rafan/chinese
MAINTAINER= ports@FreeBSD.org
COMMENT= Big5/GB enhanced TrueType Font Manager
LICENSE= MIT
LIB_DEPENDS= libfreetype.so:print/freetype2
USES= pkgconfig
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/
${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
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}/
.endfor
.include <bsd.port.mk>