1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/graphics/ansilove/Makefile
Dmitry Marakasov a455eea6e7 - Update to 3.0.8
- Tweak test so one can examine the results
2017-12-23 21:21:59 +00:00

45 lines
942 B
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= ansilove
PORTVERSION= 3.0.8
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}/
do-test:
@cd ${WRKSRC}/examples/ && for f in *; do \
${WRKSRC}/${PORTNAME} -o "${WRKSRC}/$$f.png" "$$f"; \
${FILE} "${WRKSRC}/$$f.png" | ${GREP} -q 'PNG'; \
done
.include <bsd.port.mk>