2022-08-28 04:34:12 +02:00
|
|
|
PORTNAME= dwave-preprocessing
|
2023-06-18 20:52:44 +02:00
|
|
|
DISTVERSION= 0.5.4
|
2022-08-28 04:34:12 +02:00
|
|
|
CATEGORIES= science # quantum-computing
|
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= DWave: Preprocessing tools to aid in solving binary quadratic models
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/dwavesystems/dwave-preprocessing
|
2022-08-28 04:34:12 +02:00
|
|
|
|
|
|
|
LICENSE= APACHE20
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
RUN_DEPENDS= dimod>0:science/dimod
|
2023-06-18 20:52:44 +02:00
|
|
|
TEST_DEPENDS= catch>0:devel/catch \
|
|
|
|
spdlog>0:devel/spdlog
|
2022-08-28 04:34:12 +02:00
|
|
|
|
|
|
|
USES= compiler:c++11-lang pkgconfig
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= dwavesystems
|
|
|
|
|
2023-06-18 20:52:44 +02:00
|
|
|
CXXFLAGS+= `pkg-config --cflags catch2 spdlog`
|
|
|
|
LDFLAGS+= `pkg-config --libs catch2 spdlog`
|
|
|
|
|
2022-08-28 04:34:12 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_ARCH= yes
|
|
|
|
|
|
|
|
PLIST_FILES= include/dwave-preprocessing/fix_variables.hpp \
|
|
|
|
include/dwave-preprocessing/helper_data_structures.hpp \
|
|
|
|
include/dwave-preprocessing/helper_graph_algorithms.hpp \
|
|
|
|
include/dwave-preprocessing/implication_network.hpp \
|
|
|
|
include/dwave-preprocessing/mapping_policy.hpp \
|
|
|
|
include/dwave-preprocessing/posiform_info.hpp \
|
|
|
|
include/dwave-preprocessing/push_relabel.hpp
|
|
|
|
|
|
|
|
BINARY_ALIAS= git=true
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC}/dwave/preprocessing/include && \
|
|
|
|
${COPYTREE_SHARE} dwave-preprocessing ${STAGEDIR}${PREFIX}/include
|
|
|
|
|
2023-06-18 20:52:44 +02:00
|
|
|
do-test: # tests fail to link, see https://github.com/dwavesystems/dwave-preprocessing/issues/119
|
2022-08-28 04:34:12 +02:00
|
|
|
@cd ${WRKSRC}/testscpp && ${SETENV} ${MAKE_ENV} ${MAKE} DIMOD="-I${LOCALBASE}/include"
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|