blob: 0698419832c767f92d8de1d2dcb7f1ff76a042c8 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
PORTNAME= spoa
DISTVERSION= 4.0.7
PORTREVISION= 2
CATEGORIES= biology
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ implementation of the partial order alignment (POA) algorithm
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bioparser>0:biology/bioparser \
${LOCALBASE}/include/biosoup/nucleic_acid.hpp:biology/biosoup \
cereal>0:devel/cereal \
simde>0:devel/simde
LIB_DEPENDS= libcpu_features.so:devel/cpu_features
RUN_DEPENDS= cereal>0:devel/cereal
TEST_DEPENDS= googletest>0:devel/googletest
USES= cmake compiler:c++11-lang localbase:ldflags
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= rvaser
CMAKE_ON= BUILD_SHARED_LIBS spoa_optimize_for_portability spoa_build_executable spoa_use_simde spoa_use_simde_nonvec spoa_use_simde_openmp
CMAKE_OFF= spoa_optimize_for_native
LDFLAGS+= -lz -lcpu_features
.include <bsd.port.options.mk>
.if ${ARCH} == amd64 || ${ARCH} == i386
CMAKE_ARGS+= -Dspoa_generate_dispatch:BOOL=ON
.endif
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -D${PORTNAME}_build_tests:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${BUILD_WRKSRC}/bin/${PORTNAME}_test
.include <bsd.port.mk>
|