1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/graphics/ansilove/Makefile
Dmitry Marakasov 325660a1c3 - Fix test
2019-02-12 16:37:51 +00:00

45 lines
963 B
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= ansilove
PORTVERSION= 4.0.0
CATEGORIES= graphics textproc
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= ANSi / ASCII art to PNG converter
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libansilove.so:graphics/libansilove
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 \
${BUILD_WRKSRC}/${PORTNAME} -o "${WRKSRC}/$$f.png" "$$f"; \
${FILE} "${WRKSRC}/$$f.png" | ${GREP} -q 'PNG'; \
done
.include <bsd.port.mk>