summaryrefslogtreecommitdiff
path: root/security/openconnect-gui/Makefile
blob: fd2b69d5e4b9ab07297f5c8b5f9588f8cb3fc98e (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
# Created by: Piotr Kubaj <pkubaj@anongoth.pl>
# $FreeBSD$

PORTNAME=	openconnect-gui
PORTVERSION=	1.4.1
PORTREVISION=	1
DISTVERSIONPREFIX=v
CATEGORIES=	security

MAINTAINER=	pkubaj@anongoth.pl
COMMENT=	Graphical OpenConnect client

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

BUILD_DEPENDS=	openconnect:security/openconnect
LIB_DEPENDS=	libgnutls.so:security/gnutls
RUN_DEPENDS=	openconnect:security/openconnect \
		vpnc-scripts>=0:sysutils/vpnc-scripts

USE_GITHUB=	yes
GH_ACCOUNT=	${PORTNAME:C/-gui//}

USES=		cmake:insource pkgconfig qt:5
USE_QT=		buildtools_build concurrent core gui network qmake_build widgets
CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
PLIST_FILES=	bin/openconnect-gui

do-install:
	${MV} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>