mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
097ad3dfde
PR: 227726 Approved by: ultima (maintainer)
87 lines
2.2 KiB
Makefile
87 lines
2.2 KiB
Makefile
# Created by: Richard Gallamore <ultima@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= guacamole-server
|
|
DISTVERSION= 0.9.14
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= ultima@FreeBSD.org
|
|
COMMENT= HTML5 Clientless Remote Desktop
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libossp-uuid.so:misc/ossp-uuid \
|
|
libpng.so:graphics/png
|
|
|
|
CONFLICTS_BUILD=pulseaudio-*+jack_* ffmpeg-*+jack_*
|
|
|
|
USES= autoreconf jpeg libtool localbase \
|
|
pkgconfig shebangfix
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= apache
|
|
|
|
USE_GNOME= cairo
|
|
USE_LDCONFIG= yes
|
|
USE_RC_SUBR= guacd
|
|
SHEBANG_FILES= ${WRKSRC}/src/protocols/rdp/keymaps/generate.pl
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-guacd-conf=${ETCDIR}/guacd.conf
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USERS= guacamole
|
|
GROUPS= guacamole
|
|
|
|
SUB_LIST= GUACD_USER=${USERS} \
|
|
GUACD_GROUP=${GROUPS}
|
|
|
|
OPTIONS_DEFINE= GUACENC NLS SSL WEBP
|
|
OPTIONS_DEFAULT= GUACENC PULSEAUDIO RDP SSH SSL VNC VORBIS WEBP
|
|
OPTIONS_GROUP= SP AUDIO
|
|
OPTIONS_GROUP_SP= RDP SSH VNC
|
|
OPTIONS_GROUP_AUDIO= VORBIS PULSEAUDIO
|
|
OPTIONS_SUB= yes
|
|
|
|
AUDIO_DESC= Audio Support
|
|
GUACENC_DESC= Video Encoding Utility
|
|
RDP_DESC= RDP protocol support
|
|
SP_DESC= Supported Protocols
|
|
VNC_DESC= VNC protocol support
|
|
|
|
GUACENC_CONFIGURE_ENABLE= guacenc
|
|
GUACENC_CONFIGURE_WITH= libavcodec libavutil libswscale
|
|
GUACENC_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
|
|
GUACENC_CFLAGS= -Wno-error=deprecated
|
|
NLS_USES= gettext-runtime
|
|
PULSEAUDIO_CONFIGURE_WITH= pulse
|
|
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
|
|
RDP_CONFIGURE_WITH= rdp
|
|
RDP_LIB_DEPENDS= libfreerdp1.so:net/freerdp1
|
|
SSH_CONFIGURE_WITH= pango ssh terminal
|
|
SSH_IMPLIES= SSL
|
|
SSH_LIB_DEPENDS= libssh2.so:security/libssh2
|
|
SSH_USE= GNOME=pango
|
|
SSL_CONFIGURE_WITH= ssl
|
|
SSL_USES= ssl
|
|
VNC_CONFIGURE_WITH= vnc
|
|
VNC_LIB_DEPENDS= libvncserver.so:net/libvncserver
|
|
VORBIS_CONFIGURE_WITH= vorbis
|
|
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis \
|
|
libogg.so:audio/libogg
|
|
WEBP_CONFIGURE_WITH= webp
|
|
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|/etc/ssl|${PREFIX}/etc/ssl|g ; \
|
|
s|/etc/guacamole|${ETCDIR}|g' \
|
|
${WRKSRC}/src/guacd/man/guacd.conf.5.in
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/guacd.conf.sample ${STAGEDIR}${ETCDIR}
|
|
|
|
.include <bsd.port.mk>
|