summaryrefslogtreecommitdiffstats
path: root/net/remmina/Makefile
blob: 302ddd31dc8aa98fa0cdaf1c879454a1150b1e07 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$

PORTNAME=	remmina
DISTVERSIONPREFIX=v
DISTVERSION=	1.2.0-rcgit.16
PORTREVISION=	1
CATEGORIES=	net gnome

MAINTAINER=	woodsb02@FreeBSD.org
COMMENT=	GTK+ Remote Desktop Client

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITHUB=	yes
GH_ACCOUNT=	FreeRDP
GH_PROJECT=	Remmina

USES=		cmake:outsource gettext localbase:ldflags pathfix pkgconfig
USE_GNOME=	atk cairo gdkpixbuf2 glib20 gtk30 pango
USE_XORG=	ice sm x11 xext
PATHFIX_WRKSRC=		${WRKSRC}/remmina
INSTALLS_ICONS=	yes
CMAKE_ARGS=	--build=build \
		-DWITH_APPINDICATOR:BOOL=false

OPTIONS_DEFINE=		AVAHI GCRYPT NLS SSH SURVEY TERM
OPTIONS_DEFAULT=	AVAHI GCRYPT SSH TERM
OPTIONS_SUB=		yes

AVAHI_DESC=		Build with Avahi support
GCRYPT_DESC=		Build with libgcrypt support for password encryption
SSH_DESC=		Build with SSH tunneling support
SURVEY_DESC=		Enable user survey to allow developers to understand usage
TERM_DESC=		Build with terminal support

AVAHI_LIB_DEPENDS=	libavahi-client.so:net/avahi-app \
			libavahi-ui-gtk3.so:net/avahi-gtk3
AVAHI_CMAKE_BOOL=	WITH_AVAHI

GCRYPT_LIB_DEPENDS=	libgcrypt.so:security/libgcrypt
GCRYPT_CMAKE_BOOL=	WITH_GCRYPT

NLS_CMAKE_BOOL=		WITH_TRANSLATIONS

SSH_LIB_DEPENDS=	libssh_threads.so:security/libssh
SSH_LDFLAGS=		-fstack-protector
SSH_CMAKE_BOOL=		WITH_LIBSSH

SURVEY_LIB_DEPENDS=	libwebkit2gtk-4.0.so:www/webkit2-gtk3
SURVEY_CMAKE_BOOL=	WITH_SURVEY

TERM_USE=		gnome=vte3
TERM_CMAKE_BOOL=	WITH_VTE

.include <bsd.port.pre.mk>

# utimensat(5) only available in FreeBSD from 10.3-RELEASE
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1002506
EXTRA_PATCHES=	${FILESDIR}/extrapatch-remmina_src_remmina__file.c
.endif

post-patch:
	# do not build plugins and locales , they are provided by separated ports
	${REINPLACE_CMD} -e's|add_subdirectory(remmina-plugins)||' \
		-e 's,FreeBSD,FreeBSD|DragonFly,' ${WRKSRC}/CMakeLists.txt
	${REINPLACE_CMD} -e's|add_subdirectory(remmina-plugins-gnome)||' \
		${WRKSRC}/CMakeLists.txt
	${REINPLACE_CMD} -e's|add_subdirectory(external_tools)||' \
		-e 's,FreeBSD,FreeBSD|DragonFly,' \
		${WRKSRC}/remmina/CMakeLists.txt

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud