science/dlib-cpp: Make the GUI support optional Without X11, dlib is built with DLIB_NO_GUI_SUPPORT and links no X11 library, so consumers of its numerical parts no longer pull in X11. The default stays on.9cf99b07da
Port details
science/dlib-cpp20.0.1
Machine learning framework written in C++
- Maintainer
- arrowd@FreeBSD.org
- Packages
- dlib-cpp 20.0.1
- Upstream
- up to date
- CPE
- none, CVEs only via VuXML
- WWW
- http://dlib.net
- Links
- cgit · VuXML
Unaddressed (0) · The CVE record lists this version as affected, no VuXML entry names the CVE
None. There is no CVE without a VuXML entry for this version.
VuXML only (0) · listed, port not fixed yet
None.
pkg audit reports nothing for this version.Fixed (0)
No VuXML entries for this package.
Commits (39)
science/dlib-cpp: Update to 20.0.1 Reported by: portscout!2e0f48d4ad
science/dlib-cpp: Fixup EXTRACT_AFTER_ARGS PR: 287377 Reported by: diizzy95b6df3294
science/dlib-cpp: Use more system dependencies PR: 2873771bc195e580
science/dlib-cpp: Update to 20.0 Reported by: portscout!1019edca09
science/dlib-cpp: Update to 19.24.9 Reported by: portscout!f6ed91fd42
science/dlib-cpp: Update to 19.24.8 Reported by: portscout!182a6e1783
science/dlib-cpp: add option to be built with the FFMPEG wrappers Sponsored by: Future Crew, LLC Pull Request: https://github.com/freebsd/freebsd-ports/pull/3348adfea7d5c
science/dlib-cpp: fix build with libc++ 19
As noted in the libc++ 19 release notes [1], std::char_traits<> is now
only provided for char, char8_t, char16_t, char32_t and wchar_t, and any
instantiation for other types will fail.
This causes science/dlib-cpp to fail to compile with clang 19 and libc++
19, resulting in errors similar to:
/usr/include/c++/v1/string:820:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned int>'
820 | static_assert(is_same<_CharT, typename traits_type::char_type>::value,
| ^
/wrkdirs/usr/ports/science/dlib-cpp/work/dlib-19.24.6/dlib/bigint/../unicode/unicode.h:718:19: note: in instantiation of template class 'std::basic_string<unsigned int>' requested here
718 | const ustring convert_to_utf32 (
| ^
/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
| ^
This can be fixed by defining `unichar` as `char32_t` instead of
`uint32` in `unicode.h`, and adding a serializer for `char32_t` to
`serialize.h`.
[1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals
PR: 282665
Approved by: arrowd (maintainer)
MFH: 2024Q41c818faba7science/dlib-cpp: Update to 19.24.6e142fcd94b
science/dlib-cpp: fix build with clang and libc++ 19
As noted in the libc++ 19 release notes [1], std::char_traits<> is now
only provided for char, char8_t, char16_t, char32_t and wchar_t, and any
instantiation for other types will fail.
This causes science/dlib-cpp to fail to compile with clang 19 and
libc++ 19, resulting in errors similar to:
/usr/include/c++/v1/string:820:42: error: implicit instantiation of undefined template 'std::char_traits<unsigned int>'
820 | static_assert(is_same<_CharT, typename traits_type::char_type>::value,
| ^
/wrkdirs/usr/ports/science/dlib-cpp/work/dlib-19.24/dlib/bigint/../unicode/unicode.h:496:26: note: in instantiation of template class 'std::basic_string<unsigned int>' requested here
496 | inline const ustring convert_utf8_to_utf32 (
| ^
/usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here
23 | struct _LIBCPP_TEMPLATE_VIS char_traits;
| ^
These can be fixed by using `char32_t` instead of `uint32_t` for the
`unichar` type.
Also, clang 19 now implements CWG 96 [1], which requires a template
argument list after a 'template' keyword, resulting in errors similar
to:
/wrkdirs/usr/ports/science/dlib-cpp/work/dlib-19.24/dlib/filtering/../global_optimization/find_max_global.h:61:130: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
61 | static auto go(T&& f, const matrix<double,0,1>& a) -> decltype(call_function_and_expand_args<max_unpack-1>::template go(std::forward<T>(f),a))
| ^
This can be fixed by adding `<>` after the `go` identifier.
[1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals
PR: 281975
Approved by: arrowd (maintainer)
MFH: 2024Q3e8b1dca337*/*: Bump jpeg-turbo users treewide New major version 3.0.0664a2fa1e5
Remove WWW entries moved into port Makefiles Commit b7f05445c00f has added WWW entries to port Makefiles based on WWW: lines in pkg-descr files. This commit removes the WWW: lines of moved-over URLs from these pkg-descr files. Approved by: portmgr (tcberner)fb16dfecae
Add WWW entries to port Makefiles It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)b7f05445c0
science/dlib-cpp: Update to 19.248db4dc3673
science/dlib-cpp: remove the patch that is now committed upstream and breaks the build on powerpc64lecff81a2669
One more small cleanup, forgotten yesterday. Reported by: lwhsucf118ccf87
science/dlib-cpp and science/py-dlib: Update to 19.22 Remove USE_GCC=yes as it seems to be implied by using blaslapack:openblas25feb0d686
Remove # $FreeBSD$ from Makefiles.305f148f48
science/dlib-cpp: fix build on powerpc64le clang doesn't implement vec_rsqrt.afaf37b033
science/dlib-cpp: Build shared library instead of static one. PR: 250815 Submitted by: yuri21ebe03c3a
science/dlib-cpp and science/py-dlib: Update to 19.21.7757f30c02
science/dlib-cpp and science/py-dlib: Update to 19.20 Reported by: portscout!2c8ff8a2cf
Bump 37 ports depending on math/openblas through USES=blaslapack:openblas because after the recent math/openblas update the library name changed in openblas84c4942d38
science/dlib-cpp and science/py-dlib: Update to 19.19.c410d6e8ce
Fix math/openblas and bump dependent ports * Fix build on i386 [1] * Fix science/code_saturne build with new openblas [2] * Avoid installing private headers [3] * Prevent build from optimizing for host by correcting build confg [4] * Bump portrevision of dependent ports [5] This is correcting issues from r523749 [1][2][4] and r515970 [3] PR: 231371 Reported by: build cluster [1] Reported by: Dima Pasechnik <dimpase+freebsd@gmail.com> [2] Reported by: many [5] Reviewed by: mat, bapt Approved by: implicit, since this is a build fixfb44dca45d
Add USES=xorg and USES=gl Add USES=xorg and USES=gl to a few remaining ports.cc36f3229d
Bump PORTREVISION for ports depending on the canonical version of GCC as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330ea8c8ec7da
Related to revision 499061 bump ports with USES=fortran to have them benefit from the improved situation where libgcc_s is only used when absolutely necessary. Suggested by: tijl879e75a659
Update science/dlib-cpp and science/py-dlib to 19.17. Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D1976137c76d7fcd
Fix build on gcc-based architectures: C++11 is required to use dlib, but the version of GCC you are using is too old and doesn't support C++11. You need GCC 4.8 or newer. Approved by: portmgr (tier-2 blanket)68fe12fc41
science/dlib-cpp and science/py-dlib: Update to 19.16. Try to fix build of science/py-dlib on ARM archs. Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D19307c1182d0c7d
Change cmake default behaviour to outsource. Ports that build out of source now simply can use "USES=cmake" instead of "USES=cmake:outsource". Ports that fail to build out of source now need to specify "USES=cmake:insource". I tried to only set insource where explictely needed. PR: 232038 Exp-run by: antoine707c6bf295
Bump PORTREVISION for ports depending on the canonical version of GCC defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590a9f015d155
Set MAINTAINER of mine ports to @FreeBSD.org email. Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D1664065273721b8
Bump PORTREVISION for ports depending on the canonical version of GCC in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which has now moved from GCC 6 to GCC 7 by default. This includes ports - featuring USE_GCC=yes or USE_GCC=any, - featuring USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and those - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x, c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib. PR: 22254209f9633cb6
Upgrade science/dlib-cpp and science/py-dlib to 19.13. Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D1558860d413d502
Add PY_FLAVOR to Python module dependencies. Sponsored by: Absolight8dcaabcd6e
New ports science/dlib-cpp and science/py-dlib (Python bindings for the former) Changed from the reviewed form: - fixed typo's - added support for suffixed Boost::Python - removed commented-out lines from patch Submitted by: arrowsvc (6yearold@gmail.com, new maintainer) Reviewed by: tcberner, adridg Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D1479835fbbebe34