freebsd-ports/graphics/ansilove/Makefile

45 lines
942 B
Makefile
Raw Normal View History

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= ansilove
2018-06-26 15:16:07 +02:00
PORTVERSION= 3.0.9
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 \
${WRKSRC}/${PORTNAME} -o "${WRKSRC}/$$f.png" "$$f"; \
${FILE} "${WRKSRC}/$$f.png" | ${GREP} -q 'PNG'; \
2017-04-17 21:00:17 +02:00
done
.include <bsd.port.mk>