forked from void-linux/void-packages
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: void-linux#35283
- Loading branch information
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mimalloc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Set basename to always be 'mimalloc' for compatibility | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 2550f0d..9dff9e9 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -292,7 +292,7 @@ endif() | ||
|
||
set(mi_basename "mimalloc") | ||
if(MI_SECURE) | ||
- set(mi_basename "${mi_basename}-secure") | ||
+ set(mi_basename "${mi_basename}") | ||
endif() | ||
if(MI_VALGRIND) | ||
set(mi_basename "${mi_basename}-valgrind") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Template file for 'mimalloc' | ||
pkgname=mimalloc | ||
version=2.0.7 | ||
revision=1 | ||
build_style=cmake | ||
configure_args="$(vopt_bool secure MI_SECURE)" | ||
short_desc="General purpose allocator with excellent performance characteristics" | ||
maintainer="Peter Wang <novalazy@gmail.com>" | ||
license="MIT" | ||
homepage="https://github.com/microsoft/mimalloc" | ||
distfiles="${homepage}/archive/v${version}.tar.gz" | ||
checksum=f23aac6c73594e417af50cb38f1efed88ef1dc14a490f0eff07c7f7b079810a4 | ||
|
||
build_options="secure" | ||
desc_option_secure="Build mimalloc in secure mode" | ||
|
||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then | ||
makedepends+=" libatomic-devel" | ||
fi | ||
|
||
post_install() { | ||
vlicense LICENSE | ||
} | ||
|
||
mimalloc-devel_package() { | ||
depends="${sourcepkg}>=${version}_${revision}" | ||
short_desc+=" - development files" | ||
pkg_install() { | ||
vmove usr/include | ||
vmove usr/lib/cmake | ||
vmove usr/lib/mimalloc-2.0 | ||
} | ||
} |