fef24c891a
Reported by: portscout
41 lines
934 B
Makefile
41 lines
934 B
Makefile
PORTNAME= quantum++
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 7.0.1
|
|
CATEGORIES= misc devel
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= C++ header-only general purpose quantum computing library
|
|
WWW= https://github.com/softwareQinc/qpp
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
BUILD_DEPENDS= eigen5>0:math/eigen5
|
|
RUN_DEPENDS= eigen5>0:math/eigen5
|
|
TEST_DEPENDS= googletest>0:devel/googletest
|
|
|
|
USES= cmake:testing compiler:c++17-lang localbase:ldflags
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= softwareQinc
|
|
GH_PROJECT= qpp
|
|
|
|
CMAKE_TESTING_ON= QPP_ENABLE_TESTING
|
|
CMAKE_TESTING_TARGET= unit_tests
|
|
|
|
CXXFLAGS= -I${LOCALBASE}/include/eigen3
|
|
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
post-test: # run tests
|
|
@${BUILD_WRKSRC}/unit_tests/unit_tests
|
|
|
|
# tests as of 6.0:
|
|
# [==========] 457 tests from 325 test suites ran. (1585 ms total)
|
|
# [ PASSED ] 457 tests.
|
|
|
|
# tests as of 7.0: fail to compile, see https://github.com/softwareQinc/qpp/issues/197
|
|
|
|
.include <bsd.port.mk>
|