Import Dlib 19.7
$ pkg/DESCR Dlib is a modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++ to solve real world problems. It is used in both industry and academia in a wide range of domains including robotics, embedded devices, mobile phones, and large high performance computing environments. a few tweaks an ok landry@
This commit is contained in:
parent
2ca795a38d
commit
f95d82322e
56
devel/dlib/Makefile
Normal file
56
devel/dlib/Makefile
Normal file
@ -0,0 +1,56 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2017/10/23 14:43:38 rsadowski Exp $
|
||||
|
||||
COMMENT = C++ toolkit for machine learning and data analysis
|
||||
|
||||
DISTNAME = dlib-19.7
|
||||
|
||||
SHARED_LIBS += dlib 0.0 # 19.7
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
HOMEPAGE = http://dlib.net/
|
||||
|
||||
MAINTAINER = Rafael Sadowski <rsadowski@openbsd.org>
|
||||
|
||||
# MIT-like (Boost)
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} ICE SM X11 Xext gif jpeg m png sqlite3
|
||||
WANTLIB += z
|
||||
|
||||
MASTER_SITES = http://dlib.net/files/
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
MODULES = devel/cmake
|
||||
|
||||
COMPILER = base-clang ports-clang ports-gcc
|
||||
|
||||
LIB_DEPENDS = graphics/jpeg \
|
||||
graphics/png \
|
||||
graphics/giflib \
|
||||
databases/sqlite3
|
||||
|
||||
# XXX Disable searching for blas (cblas lacks)
|
||||
# Check after math/blas update or OpenBLAS import
|
||||
CONFIGURE_ARGS = -DDLIB_USE_BLAS:Bool=OFF \
|
||||
-DDLIB_USE_LAPACK:Bool=OFF \
|
||||
-DDLIB_USE_MKL_FFT:Bool=OFF
|
||||
|
||||
TEST_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
|
||||
|
||||
pre-test:
|
||||
test -d ${WRKBUILD}/dlib/test || mkdir ${WRKBUILD}/dlib/test \
|
||||
&& cd ${WRKBUILD}/dlib/test && \
|
||||
${SETENV} CC="${CC}" CFLAGS="${CFLAGS}" \
|
||||
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
||||
${CONFIGURE_ENV} ${LOCALBASE}/bin/cmake \
|
||||
-DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY:Bool=True \
|
||||
-G ${_MODCMAKE_GEN} ${CONFIGURE_ARGS} ${WRKSRC}/dlib/test
|
||||
cd ${WRKBUILD}/dlib/test && exec ${SETENV} ${MAKE_ENV} \
|
||||
${NINJA} ${NINJA_FLAGS} ${ALL_TARGET}
|
||||
|
||||
do-test:
|
||||
cd ${WRKBUILD}/dlib/test && ./dtest --runall
|
||||
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/dlib/distinfo
Normal file
2
devel/dlib/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (dlib-19.7.tar.bz2) = gl2+ReDTeaTlWEwpGLHgyzfp7XVld2b9eytPPgX4ktY=
|
||||
SIZE (dlib-19.7.tar.bz2) = 9336154
|
14
devel/dlib/patches/patch-examples_CMakeLists_txt
Normal file
14
devel/dlib/patches/patch-examples_CMakeLists_txt
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-examples_CMakeLists_txt,v 1.1.1.1 2017/10/23 14:43:38 rsadowski Exp $
|
||||
thread-local storage is not supported
|
||||
Index: examples/CMakeLists.txt
|
||||
--- examples/CMakeLists.txt.orig
|
||||
+++ examples/CMakeLists.txt
|
||||
@@ -112,7 +112,7 @@ endmacro()
|
||||
# to compile the rest of dlib.
|
||||
if (NOT USING_OLD_VISUAL_STUDIO_COMPILER)
|
||||
add_example(dnn_metric_learning_ex)
|
||||
- add_gui_example(dnn_face_recognition_ex)
|
||||
+ #add_gui_example(dnn_face_recognition_ex)
|
||||
add_example(dnn_introduction_ex)
|
||||
add_example(dnn_introduction2_ex)
|
||||
add_example(dnn_inception_ex)
|
5
devel/dlib/pkg/DESCR
Normal file
5
devel/dlib/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
Dlib is a modern C++ toolkit containing machine learning algorithms and tools
|
||||
for creating complex software in C++ to solve real world problems. It is used
|
||||
in both industry and academia in a wide range of domains including robotics,
|
||||
embedded devices, mobile phones, and large high performance computing
|
||||
environments.
|
1087
devel/dlib/pkg/PLIST
Normal file
1087
devel/dlib/pkg/PLIST
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user