blob: d6f182e91fa0d81e8def75f5b8db51bd4b6882f0 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $NetBSD: Makefile,v 1.81 2018/11/14 22:21:43 kleink Exp $
DISTNAME= opencv-3.4.1
PKGREVISION= 4
CATEGORIES= graphics devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=opencv/}
EXTRACT_SUFX= .zip
MAINTAINER= anthony.mallet@laas.fr
HOMEPAGE= https://opencv.org/
COMMENT= Library for computer vision problems
LICENSE= modified-bsd
USE_CMAKE= yes
USE_LANGUAGES= c c++11
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake pkg-config
INSTALLATION_DIRS+= share/doc/opencv/papers
INSTALLATION_DIRS+= share/doc/opencv/ref/pics
INSTALLATION_DIRS+= share/OpenCV/haarcascades
PKGCONFIG_OVERRIDE+= build/unix-install/opencv.pc
PKGCONFIG_OVERRIDE_STAGE= post-configure
PY_PATCHPLIST= yes
REPLACE_PYTHON+= samples/python/*.py
# includes configure output and paths to gmake etc.
CHECK_WRKREF_SKIP= ${PREFIX}/lib/libopencv_core.*
.include "options.mk"
CMAKE_ARGS+= -DPYTHON_EXECUTABLE:FILEPATH=${PYTHONBIN}
CMAKE_ARGS+= -DZLIB_ROOT=${BUILDLINK_PREFIX.zlib}
CMAKE_ARGS.SunOS+= -DENABLE_PRECOMPILED_HEADERS=NO
CMAKE_ARGS.SunOS+= -DOPENCV_PYTHON_SKIP_LINKER_EXCLUDE_LIBS=YES
CMAKE_ARGS+= -DWITH_EIGEN=NO
CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}
# jasper uses SIZE_MAX and friends in its headers.
CXXFLAGS+= -D__STDC_LIMIT_MACROS
CONFIGURE_DIRS+= build
CMAKE_ARG_PATH= ${WRKSRC}
pre-configure:
${MKDIR} -p ${WRKSRC}/build
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/jasper/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../graphics/openexr/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../math/py-numpy/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|