aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pecl-ev/Makefile
blob: 6fb3e682c62a7b58fa0f35fc2ea01749dda9804e (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
# Created by: John Chen <johnpupu@gmail.com>
# $FreeBSD$

PORTNAME=   ev
PORTVERSION=    0.2.2
CATEGORIES= devel
MASTER_SITES=   http://pecl.php.net/get/
PKGNAMEPREFIX=  pecl-
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    PECL

MAINTAINER= johnpupu@gmail.com
COMMENT=    Libev extension for PHP

LICENSE=    PHP301

USE_PHP_BUILD=  yes
USE_PHPIZE= yes
USE_PHPEXT= yes
PHP_MODNAME=    ev
IGNORE_WITH_PHP=4 52 53

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/include/php/ext/sockets/php_sockets.h)
USE_PHP=    sockets
CONFIGURE_ARGS+=    --enable-ev-sockets
.else
USE_PHP=    yes
CONFIGURE_ARGS+=    --disable-ev-sockets
.endif

.include <bsd.port.post.mk>