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

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

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

LICENSE=    PHP202

LIB_DEPENDS=    libImlib2.so:graphics/imlib2

USES=       php:ext tar:tgz
IGNORE_WITH_PHP=    70

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

post-patch:
    @${REINPLACE_CMD} -e 's/-ldl//' ${WRKSRC}/config.m4
    @${REINPLACE_CMD} -e 's,/usr/share,${LOCALBASE}/share,' ${WRKSRC}/imlib2.c

.include <bsd.port.mk>