# ex:ts=8
# Ports collection makefile for:	dbf
# Date created:			Apr 3, 2003
# Whom:				ijliao
#
# $FreeBSD: ports/databases/dbf/Makefile,v 1.14 2009/11/16 07:52:46 bsam Exp $
#

PORTNAME=	dbf
PORTVERSION=	0.8.3.1
CATEGORIES=	databases
MASTER_SITES=	BERLIOS
DISTNAME=	${PORTNAME}-${PORTVERSION}.src

MAINTAINER=	bsam@FreeBSD.org
COMMENT=	Show and convert the content of dBASE III, IV, and 5.0 files

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/src

PLIST_FILES=	bin/dbf
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${PREFIX}"

post-patch:
.for file in endian.h tables.h
	@${REINPLACE_CMD} -e '/typedef u_int/d' ${WRKSRC}/${file}
.endfor

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

.include <bsd.port.mk>
