mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
textproc/sentencepiece: Add GPERFTOOLS option
This commit is contained in:
parent
d600b318f0
commit
f3aaf3992b
1 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
PORTNAME= sentencepiece
|
PORTNAME= sentencepiece
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
DISTVERSION= 0.2.0
|
DISTVERSION= 0.2.0
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= textproc # machine-learning
|
CATEGORIES= textproc # machine-learning
|
||||||
|
|
||||||
MAINTAINER= yuri@FreeBSD.org
|
MAINTAINER= yuri@FreeBSD.org
|
||||||
|
@ -10,8 +11,6 @@ WWW= https://github.com/google/sentencepiece
|
||||||
LICENSE= APACHE20
|
LICENSE= APACHE20
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
LIB_DEPENDS= libtcmalloc_minimal.so:devel/google-perftools
|
|
||||||
|
|
||||||
USES= cmake:testing compiler:c++17-lang
|
USES= cmake:testing compiler:c++17-lang
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
|
|
||||||
|
@ -20,4 +19,9 @@ GH_ACCOUNT= google
|
||||||
|
|
||||||
CMAKE_TESTING_ON= SPM_BUILD_TEST
|
CMAKE_TESTING_ON= SPM_BUILD_TEST
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= GPERFTOOLS # this seems to cause this error in llama-cpp's convert_hf_to_gguf.py: Attempt to free invalid pointer 0x1ef160aa2f80, see https://github.com/google/sentencepiece/issues/1105
|
||||||
|
|
||||||
|
GPERFTOOLS_CMAKE_BOOL= SPM_ENABLE_TCMALLOC
|
||||||
|
GPERFTOOLS_LIB_DEPENDS= libtcmalloc.so:devel/google-perftools
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue