# New ports collection makefile for:	php5-cconv
# Date created:		2011-04-28
# Whom:			Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
#
# $FreeBSD: branches/RELEASE_8_4_0/chinese/php5-cconv/Makefile 302233 2012-08-07 11:47:14Z sunpoet $
#

PORTNAME=	cconv
PORTVERSION=	0.6.4
CATEGORIES=	chinese converters
MASTER_SITES=	GOOGLE_CODE
PKGNAMEPREFIX=	php5-
DISTNAME=	${PORTNAME}-php-${PORTVERSION}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	PHP wrapper for chinese/cconv

LIB_DEPENDS=	cconv:${PORTSDIR}/chinese/cconv

CONFIGURE_ARGS=	--with-cconv-dir=${LOCALBASE}
USE_PHP=	yes
USE_PHPEXT=	yes

post-patch:
	@${REINPLACE_CMD} -e 's| function_entry| zend_function_entry|' ${WRKSRC}/php_cconv.c

.include <bsd.port.mk>
