# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD: branches/RELENG_9_2_0/security/fpm/Makefile 315433 2013-03-28 03:28:30Z eadler $

PORTNAME=	fpm
PORTVERSION=	0.60
PORTREVISION=	8
CATEGORIES=	security
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Figaro's Password Manager, an app to securely store your passwords

USES=        pathfix
USE_GNOME=	gnomeprefix gnomelibs
GNU_CONFIGURE=	yes
#CONFIGURE_ARGS+=	--without-included-gettext
LDFLAGS+=	-L${LOCALBASE}/lib
CFLAGS+=	-I${LOCALBASE}/include

MAN1=		fpm.1
PORTDOCS=	AUTHORS ChangeLog README TODO
PLIST_FILES=	bin/fpm share/pixmaps/fpm/logo.xpm
PLIST_DIRS=	share/pixmaps/fpm

pre-build:
	${REINPLACE_CMD} -E -e "s@encrypt\(@bfishencrypt\(@g" ${WRKSRC}/src/blowfish.c

post-install:
.if !defined(NOPORTDOCS)
	${INSTALL} -d -o root -g wheel -m 0755 ${PREFIX}/share/doc/fpm
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/fpm
.endfor
.endif
	@${ECHO} "========================================================================="
	@${ECHO} "Make sure you set up a few IRQ's for random generation with rndcontrol before"
	@${ECHO} "expecting password generation to work well."
	@${ECHO} "========================================================================="

.include <bsd.port.mk>
