View | Details | Raw Unified | Return to bug 253110 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-3 / +17 lines)
Lines 14-19 Link Here
14
		opencl>=0:devel/opencl
14
		opencl>=0:devel/opencl
15
RUN_DEPENDS=	opencl>=0:devel/opencl
15
RUN_DEPENDS=	opencl>=0:devel/opencl
16
LIB_DEPENDS=	\
16
LIB_DEPENDS=	\
17
		liblapacke.so:math/lapacke\
17
		libIlmImf.so:graphics/openexr \
18
		libIlmImf.so:graphics/openexr \
18
		libavcodec.so:multimedia/ffmpeg \
19
		libavcodec.so:multimedia/ffmpeg \
19
		libfreetype.so:print/freetype2 \
20
		libfreetype.so:print/freetype2 \
Lines 22-28 Link Here
22
		libgphoto2.so:graphics/libgphoto2 \
23
		libgphoto2.so:graphics/libgphoto2 \
23
		libharfbuzz.so:print/harfbuzz \
24
		libharfbuzz.so:print/harfbuzz \
24
		libhdf5.so:science/hdf5 \
25
		libhdf5.so:science/hdf5 \
25
		libopenblas.so:math/openblas \
26
		libpng16.so:graphics/png \
26
		libpng16.so:graphics/png \
27
		libtbb.so:devel/tbb \
27
		libtbb.so:devel/tbb \
28
		libtiff.so:graphics/tiff \
28
		libtiff.so:graphics/tiff \
Lines 57-63 Link Here
57
		OPENCV_ENABLE_NONFREE
57
		OPENCV_ENABLE_NONFREE
58
CMAKE_OFF=	OPENCV_GENERATE_SETUPVARS \
58
CMAKE_OFF=	OPENCV_GENERATE_SETUPVARS \
59
		BUILD_opencv_python2 \
59
		BUILD_opencv_python2 \
60
		BUILD_TESTS
60
		BUILD_TESTS \
61
		WITH_IPP
61
CMAKE_ARGS=	-DOPENCV_EXTRA_MODULES_PATH="${WRKSRC}/contrib/modules" \
62
CMAKE_ARGS=	-DOPENCV_EXTRA_MODULES_PATH="${WRKSRC}/contrib/modules" \
62
		-DOPENCV_PYTHON3_INSTALL_PATH=${PYTHON_SITELIBDIR} \
63
		-DOPENCV_PYTHON3_INSTALL_PATH=${PYTHON_SITELIBDIR} \
63
		-DVULKAN_INCLUDE_DIRS=${LOCALBASE}/include
64
		-DVULKAN_INCLUDE_DIRS=${LOCALBASE}/include
Lines 65-73 Link Here
65
DATADIR=	${PREFIX}/share/${PORTNAME}4
66
DATADIR=	${PREFIX}/share/${PORTNAME}4
66
67
67
OPTIONS_DEFINE=		PYTHON JAVA
68
OPTIONS_DEFINE=		PYTHON JAVA
68
OPTIONS_DEFAULT=	PYTHON
69
OPTIONS_DEFAULT=	PYTHON OPENBLAS
69
OPTIONS_SUB=		yes
70
OPTIONS_SUB=		yes
71
OPTIONS_SINGLE=		BLAS
72
OPTIONS_SINGLE_BLAS=	ATLAS OPENBLAS
70
73
74
ATLAS_DESC=         	ATLAS blas implementation
75
OPENBLAS_DESC=		OpenBLAS blas implementation
76
77
71
JAVA_CMAKE_BOOL=	BUILD_openv_java
78
JAVA_CMAKE_BOOL=	BUILD_openv_java
72
JAVA_BUILD_DEPENDS=	ant:devel/apache-ant
79
JAVA_BUILD_DEPENDS=	ant:devel/apache-ant
73
80
Lines 77-82 Link Here
77
PYTHON_USE_PYTHON=	noflavors
84
PYTHON_USE_PYTHON=	noflavors
78
PYTHON_CMAKE_BOOL=	BUILD_opencv_python3
85
PYTHON_CMAKE_BOOL=	BUILD_opencv_python3
79
86
87
ATLAS_LIB_DEPENDS=	libatlas.so:math/atlas
88
OPENBLAS_LIB_DEPENDS=	libopenblas.so:math/openblas
89
90
80
post-extract:
91
post-extract:
81
	${MV} ${WRKSRC_contrib} ${WRKSRC}/contrib
92
	${MV} ${WRKSRC_contrib} ${WRKSRC}/contrib
82
	${MKDIR} ${BUILD_WRKSRC}/3rdparty/ade
93
	${MKDIR} ${BUILD_WRKSRC}/3rdparty/ade
Lines 84-88 Link Here
84
	${MKDIR} ${WRKSRC}/contrib/modules/xfeatures2d/src
95
	${MKDIR} ${WRKSRC}/contrib/modules/xfeatures2d/src
85
	${MV} ${WRKSRC_extra_mod_3rdparty_boost_descr}/* ${WRKSRC}/contrib/modules/xfeatures2d/src
96
	${MV} ${WRKSRC_extra_mod_3rdparty_boost_descr}/* ${WRKSRC}/contrib/modules/xfeatures2d/src
86
	${MV} ${WRKSRC_extra_mod_3rdparty_vgg_descr}/* ${WRKSRC}/contrib/modules/xfeatures2d/src
97
	${MV} ${WRKSRC_extra_mod_3rdparty_vgg_descr}/* ${WRKSRC}/contrib/modules/xfeatures2d/src
98
post-patch:
99
	${REINPLACE_CMD} -e 's|/usr/lib/atlas-base|{PREFIX}/lib|g' ${WRKSRC}/cmake/OpenCVFindAtlas.cmake
100
	${REINPLACE_CMD} -e 's|/usr/include/atlas|{PREFIX}/include|g' ${WRKSRC}/cmake/OpenCVFindAtlas.cmake
87
101
88
.include <bsd.port.mk>
102
.include <bsd.port.mk>

Return to bug 253110