PKGNAMEPREFIX=	postgresql-
PORTNAME=	libpgeasy
PORTVERSION=	3.0.4
PORTREVISION=	3
CATEGORIES=	databases
MASTER_SITES=	PGSQL/projects/gborg/pgeasy/stable
DIST_SUBDIR=	postgresql

MAINTAINER=	pgsql@FreeBSD.org
COMMENT=	Easy-to-use C interface to PostgreSQL
WWW=		https://www.postgresql.org/docs/7.2/static/pgeasy.html

OPTIONS_DEFINE=	DOCS EXAMPLES

USES+=		gmake libtool pgsql
USE_LDCONFIG=	YES
GNU_CONFIGURE=	YES
DOCSDIR=	${PREFIX}/share/doc/postgresql/${PORTNAME}
EXAMPLESDIR=	${PREFIX}/share/examples/postgresql/${PORTNAME}
INSTALL_TARGET=	install-strip

post-install:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/libpgeasy.html ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
