# Created by: Ultima # $FreeBSD: head/net/guacamole-server/Makefile 412348 2016-04-01 14:17:44Z mat $ PORTNAME= guacamole-server PORTVERSION= 0.9.9 PORTREVISION= 1 CATEGORIES= net MAINTAINER= ultima1252@gmail.com COMMENT= HTML5 Clientless Remote Desktop LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libossp-uuid.so:misc/ossp-uuid \ libpng.so:graphics/png \ libcairo.so:graphics/cairo \ libjpeg.so:graphics/jpeg-turbo CONFLICTS_BUILD=pulseaudio-*+jack_* ffmpeg-*+jack_* USE_GITHUB= yes GH_ACCOUNT= glyptodon USES= autoreconf libtool localbase pkgconfig shebangfix SHEBANG_FILES= ${WRKSRC}/src/protocols/rdp/keymaps/generate.pl GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-guacd-conf=${PREFIX}/etc/guacd/guacd.conf USE_LDCONFIG= yes MAKE_JOBS_UNSAFE= yes USERS= guacamole GROUPS= guacamole USE_RC_SUBR= guacd SUB_LIST+= GUACD_USER=${USERS} \ GUACD_GROUP=${GROUPS} OPTIONS_DEFINE= RDP SSH VNC VORBIS PULSEAUDIO OPTIONS_DEFAULT= SSH OPTIONS_SUB= yes PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_DESC?= VNC audio support (Experimental) RDP_LIB_DEPENDS= libfreerdp.so:net/freerdp RDP_DESC?= RDP Protocal Support SSH_LIB_DEPENDS= libpango-1.0.so:x11-toolkits/pango \ libssh2.so:security/libssh2 SSH_DESC?= SSH Support VNC_LIB_DEPENDS= libvncserver.so:net/libvncserver VNC_DESC?= VNC Protocol Support VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis VORBIS_DESC?= Ogg Vorbis for compression .include post-patch: @${REINPLACE_CMD} 's|/etc/ssl|${PREFIX}/etc/ssl|g ; \ s|/etc/guacamole|${PREFIX}/etc/guacd|g' \ ${WRKSRC}/src/guacd/man/guacd.conf.5 post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libguac.so.* .if ${PORT_OPTIONS:MSSH} @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libguac-client-ssh.so.* .endif .if ${PORT_OPTIONS:MRDP} @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/freerdp/guacsnd-client.so @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/freerdp/guacdr-client.so @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/freerdp/guacsvc-client.so @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libguac-client-rdp.so.* .endif .if ${PORT_OPTIONS:MVNC} @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libguac-client-vnc.so.* .endif .include