aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/pecl-phar/Makefile
blob: e700c5f977ef2cd2a83da86bb898d9c5715a32e3 (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
40
# New ports collection makefile for:    pecl-phar
# Date created:         6 Aug 2007
# Whom:             Ditesh Shashikant Gathani <ditesh@gathani.org>
#
# $FreeBSD$
#

PORTNAME=   phar
DISTVERSION=    2.0.0RC1
CATEGORIES= archivers pear
MASTER_SITES=   http://pecl.php.net/get/
PKGNAMEPREFIX=  pecl-
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    PECL

MAINTAINER= miwi@FreeBSD.org
COMMENT=    A PECL extension which allows running applications out of .phar files

USE_PHP=    hash spl pcre
USE_PHP_BUILD=  yes
USE_PHPEXT= yes
CFLAGS+=    "-I${LOCALBASE}/include"
LDFLAGS+=   "-L${LOCALBASE}/lib"

OPTIONS=    BZ2     "Enable bz2 compression support" off \
        ZLIB        "Enable gzip compression support" off

.include <bsd.port.pre.mk>

.if defined(WITH_BZ2) && !defined(WITHOUT_BZ2)
USE_PHP+=   bz2
.endif

.if defined(WITH_ZLIB) && !defined(WITHOUT_ZLIB)
USE_PHP+=   zlib
.endif

CONFIGURE_ARGS= --enable-phar

.include <bsd.port.post.mk>