aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/pecl-imlib2/Makefile
blob: c4a12b1b3fb0569d396693e1e6e5bce6c126467c (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
# Created by: Yen-Ming Lee <leeym@FreeBSD.org>
# $FreeBSD$

PORTNAME=   imlib2
PORTVERSION=    0.1.00
PORTREVISION=   4
CATEGORIES= graphics
MASTER_SITES=   http://pecl.php.net/get/
PKGNAMEPREFIX=  pecl-
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    PECL

MAINTAINER= leeym@FreeBSD.org
COMMENT=    A PECL extension if imlib2

USE_PHP=    yes
USE_PHPEXT= yes
DEFAULT_PHP_VER=53
IGNORE_WITH_PHP=5
USE_EFL=    imlib2

# libImlib2 may or may not depend on X, however,
# imlib2 extension doesn't need X related functions in libImlib2
CFLAGS+=    -DX_DISPLAY_MISSING

NO_STAGE=   yes
post-patch:
    @${REINPLACE_CMD} -e 's/-ldl//' ${WRKSRC}/config.m4
    @${REINPLACE_CMD} -e '/Xlib.h/d' ${WRKSRC}/php_imlib2.h

.include <bsd.port.mk>