summaryrefslogtreecommitdiff
path: root/science/zx/Makefile
blob: 0061dee5a10e0e3fe7f3ceee52281b8aeb2d3785 (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
PORTNAME=	zx
PORTVERSION=	g20221101
CATEGORIES=	science # quantum-computing

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	MQT ZX: A library for working with ZX-diagrams
WWW=		https://www.cda.cit.tum.de/research/quantum/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libgmp.so:math/gmp

USES=		cmake:testing compiler:c++17-lang python:test

USE_GITHUB=	yes
GH_ACCOUNT=	cda-tum
GH_TAGNAME=	b01ba5e
GH_TUPLE=	boostorg:config:2543ff1:boostorg_config/extern/boost/config \
		boostorg:multiprecision:be4b8e8:boostorg_multiprecision/extern/boost/multiprecision \
		google:googletest:3026483:googletest/extern/googletest

CMAKE_ON=	BUILD_SHARED_LIBS
CMAKE_OFF=	BUILD_ZX_TESTS
CMAKE_TESTING_ON=	BUILD_ZX_TESTS

do-install: # workaround for https://github.com/cda-tum/dd_package/issues/115
	cd ${WRKSRC}/include && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include
	${INSTALL_LIB} ${BUILD_WRKSRC}/src/libzx.so ${STAGEDIR}${PREFIX}/lib

.include <bsd.port.mk>