2016-09-28 01:46:04 +02:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ansilove
|
2018-06-26 15:16:07 +02:00
|
|
|
PORTVERSION= 3.0.9
|
2016-09-28 01:46:04 +02:00
|
|
|
CATEGORIES= graphics textproc
|
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= ANSi / ASCII art to PNG converter
|
|
|
|
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
LIB_DEPENDS= libgd.so:graphics/gd
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
|
|
|
|
USES= cmake
|
|
|
|
|
|
|
|
PORTDOCS= AUTHORS ChangeLog README.md THANKS TODO
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
|
|
|
PLIST_FILES= bin/ansilove \
|
|
|
|
man/man1/ansilove.1.gz
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
|
|
|
post-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install-EXAMPLES-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}/
|
|
|
|
|
2017-04-17 21:00:17 +02:00
|
|
|
do-test:
|
|
|
|
@cd ${WRKSRC}/examples/ && for f in *; do \
|
2017-12-23 22:21:59 +01:00
|
|
|
${WRKSRC}/${PORTNAME} -o "${WRKSRC}/$$f.png" "$$f"; \
|
|
|
|
${FILE} "${WRKSRC}/$$f.png" | ${GREP} -q 'PNG'; \
|
2017-04-17 21:00:17 +02:00
|
|
|
done
|
|
|
|
|
2016-09-28 01:46:04 +02:00
|
|
|
.include <bsd.port.mk>
|