[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / php-xmlrpc

File: [cvs.NetBSD.org] / pkgsrc / net / php-xmlrpc / Makefile (download)

Revision 1.6, Fri Jun 2 18:27:57 2006 UTC (17 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.5: +3 -2 lines

Rename all PHP 4 packages to php4-*, all PHP 5 packages to php5-*,
all PEAR packages to php?-pear-* and all Apache packages to ap13-* or
ap2-* respectively. Add new variables to simplify the Makefile
handling. Add CONFLICTS on the old names. Reset revisions of bumped
packages. ap-php will now depend on the default Apache and PHP version.
All programs using it have an implicit option of the Apache version
as well.

OK from jlam@ and adrianp@.

# $NetBSD: Makefile,v 1.6 2006/06/02 18:27:57 joerg Exp $

MODNAME=		xmlrpc
COMMENT=		PHP extension for XML-RPC support

CONFLICTS=	php-xmlrpc-[0-9]

HOMEPAGE=		http://xmlrpc-epi.sourceforge.net/


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

.if ${PKG_PHP_VERSION} == 5
# the extension has been changed in PHP 5.1 to require libxml2; while
# there is some "compatibility" expat configure setting, it doesn't build
# with that
CONFIGURE_ARGS+=	--with-libxml-dir=${BUILDLINK_PREFIX.libxml2}
CONFIGURE_ARGS+=	--with-expat-dir=${BUILDLINK_PREFIX.expat}

.include "../../converters/libiconv/buildlink3.mk"

# This is necessary so that PHP would find either the libc iconv
# or use the packaged iconv, as appropriate; using
# --with-iconv=shared,${BUILDLINK_PREFIX.iconv} assumes libiconv exists
CHECK_BUILTIN.iconv:=   yes
.include "../../converters/libiconv/builtin.mk"
CHECK_BUILTIN.iconv:=   no

.if !empty(USE_BUILTIN.iconv:M[nN][oO]) || \
CONFIGURE_ARGS+=        --with-iconv-dir=shared,${BUILDLINK_PREFIX.iconv}
CONFIGURE_ARGS+=        --with-iconv-dir

.if ${PKG_PHP_VERSION} == 5
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"

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