aboutsummaryrefslogtreecommitdiff
path: root/www/threejs/Makefile
blob: 107a617d78e156f53c9ffbe8c2a834ed0ba108de (plain) (blame)
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
PORTNAME=	three.js
PORTVERSION=	162
DISTVERSIONPREFIX=	r
CATEGORIES=	www

MAINTAINER=	thierry@FreeBSD.org
COMMENT=	JavaScript 3D library
WWW=		https://threejs.org/

LICENSE=	MIT

NO_BUILD=	yes
NO_ARCH=	yes
WWWDIR=		${PREFIX}/www/${PORTNAME:C/\.//}

USE_GITHUB=	yes
GH_ACCOUNT=	mrdoob

OPTIONS_DEFINE=	DOCS EXAMPLES
PORTDOCS=	*
PORTEXAMPLES=	*

do-install:
	${MKDIR} ${STAGEDIR}${WWWDIR}
	cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}

do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

do-install-EXAMPLES-on:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

do-test:
	@${ECHO_CMD} "Tests skipped: they require npm and too many node packages."

.include <bsd.port.mk>