- Fix LICENSE

- Add LICENSE_FILE
- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2017-03-17 09:01:54 +00:00
parent 1ed4792c4b
commit 386af00734
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=436327

View File

@ -9,9 +9,8 @@ MASTER_SITES= http://archive.hadrons.org/software/xfstt/
MAINTAINER= ports@FreeBSD.org
COMMENT= TrueType font server for X11
LICENSE= GPLv2
OPTIONS_DEFINE= DOCS
LICENSE= LGPL20+
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
USES= pkgconfig tar:xz
USE_XORG= fontsproto xproto
@ -23,16 +22,20 @@ 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}
@${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/
${MKDIR} ${STAGEDIR}${DOCSDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for _file in INSTALL THANKS
${INSTALL_DATA} ${WRKSRC}/${_file} ${STAGEDIR}${DOCSDIR}
.endfor