summaryrefslogtreecommitdiff
path: root/www/novnc-websockify/Makefile
blob: 2079a4e2c6114c0f60d4ca040b67f2228679df4d (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

PORTNAME=	websockify
DISTVERSIONPREFIX=	v
DISTVERSION=	0.9.0
CATEGORIES=	www

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Websockify implementation for noVNC

LICENSE=	LGPL3
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	novnc>0:www/novnc \
		${PYNUMPY}

USES=		python shebangfix python

SHEBANG_FILES=	run

USE_GITHUB=	yes
GH_ACCOUNT=	novnc
GH_PROJECT=	websockify

NO_BUILD=	yes
NO_ARCH=	yes
TARGET_DIR=	${PREFIX}/libexec/novnc/utils/websockify

do-install:
	@${MKDIR} ${STAGEDIR}${TARGET_DIR}
	cd ${WRKSRC} && ${RM} .gitignore .gitmodules .travis.yml
	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${TARGET_DIR}
	@${CHMOD} +x ${STAGEDIR}${TARGET_DIR}/run
	@${CHMOD} +x ${STAGEDIR}${TARGET_DIR}/rebind

.include <bsd.port.mk>