PORTNAME=	mysqlphp2postgres
PORTVERSION=	0.95
CATEGORIES=	www
MASTER_SITES=	http://downloads.mikekohn.net/mp2p/ \
		http://www.heim2.tu-clausthal.de/~upp/mysqlphp2postgres/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Convert MySQL calls in a PHP page into PostgreSQL calls
WWW=		http://mp2p.mikekohn.net/

ALL_TARGET=	default
PLIST_FILES=	bin/mysqlphp2postgres

post-patch:
	@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-O2*|${CFLAGS}|' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>
