File:  [cvs.NetBSD.org] / pkgsrc / net / guacamole-server / Makefile
Revision 1.28: download - view: text, annotated - select for diffs
Tue Aug 18 17:58:11 2020 UTC (4 years, 3 months ago) by leot
Branches: MAIN
CVS tags: HEAD
*: revbump for libsndfile

# $NetBSD: Makefile,v 1.28 2020/08/18 17:58:11 leot Exp $

DISTNAME=	guacamole-server-1.0.0
PKGREVISION=	8
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"

CVSweb <webmaster@jp.NetBSD.org>