PORTNAME=	facedetect
PORTVERSION=	0.1
DISTVERSIONPREFIX=	v
PORTREVISION=	8
CATEGORIES=	graphics

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Simple face detector for batch processing
WWW=		https://www.thregr.org/~wavexx/software/facedetect/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING.txt

RUN_DEPENDS=	opencv>0:graphics/opencv

USES=		python:run shebangfix
USE_GITHUB=	yes
GH_ACCOUNT=	wavexx

SHEBANG_FILES=	facedetect

NO_ARCH=	yes
NO_BUILD=	yes

PLIST_FILES=	bin/facedetect

post-patch:
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
		${WRKSRC}/${PORTNAME}

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>
