2020-02-14 06:00:46 +00:00
# $FreeBSD$
PORTNAME = vxl
DISTVERSIONPREFIX = v
DISTVERSION = 2.0.2-629
DISTVERSIONSUFFIX = -g9f915deec4
CATEGORIES = misc science
MAINTAINER = yuri@FreeBSD.org
COMMENT = C++ libraries for computer vision and image understanding
LIB_DEPENDS = libpng16.so:graphics/png \
libtiff.so:graphics/tiff
USES = cmake compiler:c++11-lang jpeg
USE_GITHUB = yes
USE_LDCONFIG = yes
CONFLICTS_BUILD = openjpeg15
CMAKE_ON = BUILD_SHARED_LIBS
CMAKE_OFF = BUILD_TESTING
do-test :
@cd ${ BUILD_WRKSRC } && \
${ SETENV } ${ CONFIGURE_ENV } ${ CMAKE_BIN } ${ CMAKE_ARGS } -DBUILD_TESTING:BOOL= ON ${ CMAKE_SOURCE_PATH } && \
${ SETENV } ${ MAKE_ENV } ${ MAKE_CMD } ${ MAKE_ARGS } ${ ALL_TARGET } && \
${ SETENV } ${ MAKE_ENV } ${ MAKE_CMD } ${ MAKE_ARGS } test
2020-02-15 11:35:36 +00:00
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f ${ARCH} = = "amd64" || ${ ARCH } = = "i386"
PLIST_SUB += X86 = ""
2020-02-23 17:55:10 +00:00
CMAKE_ON += VIL_CONFIG_ENABLE_SSE2_ROUNDING # the automatic SSE2 test fails on i386: Performing Try-Run Test VXL_HAS_SSE2_HARDWARE_SUPPORT - Test Compilation Failed
2020-02-15 11:35:36 +00:00
. e l s e
PLIST_SUB += X86 = "@comment "
2020-02-23 17:55:10 +00:00
CMAKE_OFF += VIL_CONFIG_ENABLE_SSE2_ROUNDING
2020-02-15 11:35:36 +00:00
. e n d i f
. i n c l u d e < b s d . p o r t . p o s t . m k >