# Created by: ijliao
# $FreeBSD: tags/RELEASE_10_0_0/devel/datadraw/Makefile 327722 2013-09-20 17:03:26Z bapt $

PORTNAME=	datadraw
PORTVERSION=	3.1.1
CATEGORIES=	devel
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}${PORTVERSION}
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Feature rich persistent database generator

LICENSE=	GPLv2

HAS_CONFIGURE=	yes
USE_GMAKE=	yes
ALL_TARGET=	# empty

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${OSVERSION} < 1000013
USES+=		bison
.else
post-patch:
	${REINPLACE_CMD} -e "s/bison/byacc/g" ${WRKSRC}/configure
.endif

.if ${PORT_OPTIONS:MDOCS}
PORTDOCS=	*

post-install:
	@${MKDIR} ${DOCSDIR}
	${CP} -R ${WRKSRC}/www/* ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/manual.pdf ${DOCSDIR}
.endif

.include <bsd.port.mk>
