aboutsummaryrefslogtreecommitdiff
path: root/math/cimod/Makefile
blob: 050ba9b8a58fb589e6ebebea0ec884f133e397cd (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=	cimod
DISTVERSIONPREFIX=	v
DISTVERSION=	1.4.49
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	C++ header-only library for a binary quadratic models
WWW=		https://github.com/OpenJij/cimod

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	nlohmann-json>0:devel/nlohmann-json
RUN_DEPENDS=	nlohmann-json>0:devel/nlohmann-json
TEST_DEPENDS=	googletest>0:devel/googletest

USES=		cmake:testing compiler:c++17-lang eigen:3,build,run

USE_GITHUB=	yes
GH_ACCOUNT=	OpenJij

CMAKE_ON=	CIMOD_INSTALL # doesn't do anything, see https://github.com/OpenJij/cimod/issues/103
CMAKE_OFF=	CIMOD_TEST CIMOD_DOCS
CMAKE_TESTING_ON=	CIMOD_TEST

NO_ARCH=	yes

do-install: # see https://github.com/OpenJij/cimod/issues/103
	cd ${WRKSRC}/include && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PREFIX}/include

.include <bsd.port.mk>