aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/php-facedetect/Makefile
blob: 11dad0f92561c0e4d4bd9033c88b34f0ac255ada (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$

PORTNAME=   facedetect
PORTVERSION=    1.1
PORTREVISION=   2
CATEGORIES= graphics
MASTER_SITES=   https://github.com/infusion/PHP-Facedetect/tarball/${GITVERSION}/
PKGNAMEPREFIX=  php-
DISTNAME=   infusion-PHP-Facedetect-${GITVERSION}

MAINTAINER= mm@FreeBSD.org
COMMENT=    Face detection extension for PHP using OpenCV library

LICENSE=    PHP30

LIB_DEPENDS=    libopencv_objdetect.so:${PORTSDIR}/graphics/opencv

GITVERSION= 4b1dfe1

CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
LIBS+=      -lopencv_core

USE_PHP=    yes
USE_PHPIZE= yes
USE_PHPEXT= yes

CONFIGURE_ARGS+=    --with-facedetect
CONFIGURE_ENV+=     LIBS="${LIBS}"

NO_STAGE=   yes
.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
USE_GCC=    any
.endif

.include <bsd.port.post.mk>