summaryrefslogtreecommitdiff
path: root/textproc/php-wddx/Makefile
blob: d9b3a4ff8c88b85507aed2a51145dae2eea62410 (plain)
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
# $NetBSD: Makefile,v 1.12 2006/11/06 21:37:37 jdolecek Exp $

MODNAME=		wddx
CATEGORIES+=		textproc
COMMENT=		PHP extension for WDDX support

CONFLICTS=	php-wddx-[0-9]*

CONFIGURE_ARGS+=	--enable-${MODNAME}=shared,${BUILDLINK_DIR}

USE_PHP_EXT_PATCHES=	# defined

# appease some PHP build assumpsions
CFLAGS+=	-I${BUILDLINK_DIR}/include/libxml2 \
		-I${BUILDLINK_DIR}/include/php/ext/date/lib
		

.include "../../lang/php/phpversion.mk"

# link against libxml2 on PHP5
.if ${PKG_PHP_VERSION} == 5
CONFIGURE_ARGS+=	--with-libxml-dir=${BUILDLINK_DIR}
.include "../../textproc/libxml2/buildlink3.mk"
.else
.include "../../textproc/expat/buildlink3.mk"
.endif

.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"