# Created by: Rashid N. Achilov <shelton@granch.ru>
# $FreeBSD: tags/RELEASE_10_1_0/devel/libphish/Makefile 355596 2014-05-28 08:26:45Z amdmi3 $

PORTNAME=	libphish
PORTVERSION=	0.1.0
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	http://download.berlios.de/opdb/ \
		http://download2.berlios.de/opdb/ \

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Cross-platform library to interact with the Open Phishing Database

BUILD_DEPENDS=	xmlwf:${PORTSDIR}/textproc/expat2

USES=		tar:bzip2 libtool
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

CPPFLAGS+=	-I${LOCALBASE}/include -DFreeBSD
LDFLAGS+=	-L${LOCALBASE}/lib

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
