Skip to content

Commit

Permalink
New package: mimalloc-2.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
wangp authored and Sapein committed Apr 30, 2023
1 parent c5b3bf0 commit b33e1d9
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/shlibs
Expand Up @@ -4252,3 +4252,4 @@ libdate-tz.so.3 chrono-date-3.0.1_1
libayatana-ido3-0.4.so.0 ayatana-ido-0.9.2_1
libayatana-indicator3.so.7 libayatana-indicator-0.9.3_1
libayatana-appindicator3.so.1 libayatana-appindicator-0.5.91_1
libmimalloc.so.2 mimalloc-2.0.6_1
1 change: 1 addition & 0 deletions srcpkgs/mimalloc-devel
14 changes: 14 additions & 0 deletions srcpkgs/mimalloc/patches/secure-basename.patch
@@ -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")
33 changes: 33 additions & 0 deletions srcpkgs/mimalloc/template
@@ -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
}
}

0 comments on commit b33e1d9

Please sign in to comment.