summaryrefslogtreecommitdiff
path: root/security/gtkpasman/Makefile
blob: 357d07f34aac4e92750efec4818eef20942ce50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Created by: Philippe Rocques <phil@teaser.fr>
# $FreeBSD$

PORTNAME=	gtkpasman
PORTVERSION=	0.12.1
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	rm@FreeBSD.org
COMMENT=	GTK+ passwords manager for system and network administrators

RUN_DEPENDS+=	gpgv2:security/gnupg

USES=		desktop-file-utils gettext gmake pkgconfig tar:xz
USE_GNOME=	gtk20 intltool
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-gtk2
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

SUB_FILES=	pkg-message

PORTDOCS=	*
PLIST_FILES=	bin/gtkpasman share/applications/gtkpasman.desktop

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|-Werror||g' ${WRKSRC}/src/Makefile.*

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/gtkpasman ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/data/gtkpasman.desktop \
		${STAGEDIR}${PREFIX}/share/applications
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/data/gpasman4.sample ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>