# $FreeBSD: tags/RELEASE_10_1_0/graphics/ttygif/Makefile 364980 2014-08-15 15:30:24Z marino $

PORTNAME=	ttygif
PORTVERSION=	1.0.8
CATEGORIES=	graphics

MAINTAINER=	olivier@cochard.me
COMMENT=	Converts a ttyrec file into animated gif

LICENSE=	MIT

RUN_DEPENDS=	convert:${PORTSDIR}/graphics/ImageMagick

GH_ACCOUNT=	icholy
GH_COMMIT=	ea0b493

USES=		tar:bzip2 gmake

USE_GITHUB=	yes

PLIST_FILES=	bin/${PORTNAME} \
		bin/concat

post-patch:
	@${REINPLACE_CMD} 's:\#\!/bin/bash:\#\!/bin/sh:' ${WRKSRC}/concat.sh
	@${REINPLACE_CMD} 's:gcc:${CC}:' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
	${INSTALL_SCRIPT} ${WRKSRC}/concat.sh ${STAGEDIR}${PREFIX}/bin/concat

.include <bsd.port.mk>
