summaryrefslogtreecommitdiff
path: root/archivers/draco/Makefile
blob: 64b0dab056118e2a6226724a2048822f98909cba (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
PORTNAME=	draco
DISTVERSION=	1.5.2
CATEGORIES=	archivers
PKGNAMESUFFIX=	-3d-compression

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Library for compressing and decompressing 3D meshes and point clouds
WWW=		https://google.github.io/draco/

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cmake:testing compiler:c++11-lang
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	google
GH_TUPLE=	google:googletest:16f637f:googletest/third_party/googletest # tests require the googletest source tree for some reason, see https://github.com/google/draco/issues/731

CMAKE_ON=		BUILD_SHARED_LIBS
CMAKE_TESTING_ON=	DRACO_TESTS
CMAKE_TESTING_TARGET=	draco_tests draco_factory_tests

post-test:
	@cd ${BUILD_WRKSRC} && \
		./draco_tests && \
		./draco_factory_tests

.include <bsd.port.mk>