summaryrefslogtreecommitdiff
path: root/net/guacamole-server/Makefile
blob: 87c65a2d34020575edfa58d843ecd85e6702eecd (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
# $NetBSD: Makefile,v 1.30 2021/01/01 09:52:38 ryoon Exp $

DISTNAME=	guacamole-server-1.0.0
PKGREVISION=	10
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_APACHE:=guacamole/${PKGVERSION_NOREV}/source/}

MAINTAINER=	jperkin@joyent.com
HOMEPAGE=	https://guacamole.incubator.apache.org/
COMMENT=	Clientless remote desktop gateway
LICENSE=	apache-2.0

GNU_CONFIGURE=	yes
USE_LANGUAGES=	c99
USE_LIBTOOL=	yes
USE_TOOLS=	perl pkg-config

EGDIR=			${PREFIX}/share/examples/guacamole
PKG_SYSCONFSUBDIR=	guacamole
SMF_NAME=		guacamole

CONFIGURE_ARGS+=	--with-guacd-conf=${PKG_SYSCONFDIR}/guacd.conf
CONFIGURE_ARGS+=	--with-pango
CONFIGURE_ARGS+=	--with-pulse
CONFIGURE_ARGS+=	--with-rdp
CONFIGURE_ARGS+=	--with-ssh
CONFIGURE_ARGS+=	--with-ssl
CONFIGURE_ARGS+=	--with-telnet
CONFIGURE_ARGS+=	--with-terminal
CONFIGURE_ARGS+=	--with-vnc
CONFIGURE_ARGS+=	--with-vorbis
CONFIGURE_ARGS+=	--with-webp

CFLAGS.SunOS+=	-D__EXTENSIONS__	# getopt()

SUBST_CLASSES+=		manpath
SUBST_STAGE.manpath=	pre-configure
SUBST_FILES.manpath=	src/guacd/man/guacd.conf.5
SUBST_SED.manpath=	-e 's,/etc/guacamole,${PKG_SYSCONFDIR},g'

REPLACE_PERL+=		src/protocols/rdp/keymaps/generate.pl

INSTALLATION_DIRS=	share/examples/guacamole

CONF_FILES=	${EGDIR}/guacd.conf ${PKG_SYSCONFDIR}/guacd.conf

post-install:
	${INSTALL_DATA} ${FILESDIR}/guacd.conf \
	    ${DESTDIR}${PREFIX}/share/examples/guacamole/guacd.conf

.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/pulseaudio/buildlink3.mk"
.include "../../devel/ossp-uuid/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../net/freerdp/buildlink3.mk"
.include "../../net/libtelnet/buildlink3.mk"
.include "../../net/libvncserver/buildlink3.mk"
.include "../../security/libssh2/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"