summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorfcambus <fcambus@pkgsrc.org>2021-07-27 09:29:41 +0000
committerfcambus <fcambus@pkgsrc.org>2021-07-27 09:29:41 +0000
commitdd0921ec0378dc7f5c112b3da0efccaaafda23d9 (patch)
tree488524eff2d38dfba0a1709c6d6d74d8d0ebc869 /devel
parentbaa33abfd449178ed3ae0319db91e361662bbe57 (diff)
downloadpkgsrc-dd0921ec0378dc7f5c112b3da0efccaaafda23d9.tar.gz
devel/mimalloc: import mimalloc-2.0.2.
mimalloc (pronounced "me-malloc") is a general purpose allocator with excellent performance characteristics. Initially developed by Daan Leijen for the run-time systems of the Koka and Lean languages. mimalloc is a drop-in replacement for malloc and can be used in other programs without code changes.
Diffstat (limited to 'devel')
-rw-r--r--devel/mimalloc/DESCR6
-rw-r--r--devel/mimalloc/Makefile19
-rw-r--r--devel/mimalloc/PLIST11
-rw-r--r--devel/mimalloc/buildlink3.mk12
-rw-r--r--devel/mimalloc/distinfo6
5 files changed, 54 insertions, 0 deletions
diff --git a/devel/mimalloc/DESCR b/devel/mimalloc/DESCR
new file mode 100644
index 00000000000..b7eecc19488
--- /dev/null
+++ b/devel/mimalloc/DESCR
@@ -0,0 +1,6 @@
+mimalloc (pronounced "me-malloc") is a general purpose allocator with
+excellent performance characteristics. Initially developed by Daan Leijen
+for the run-time systems of the Koka and Lean languages.
+
+mimalloc is a drop-in replacement for malloc and can be used in other
+programs without code changes.
diff --git a/devel/mimalloc/Makefile b/devel/mimalloc/Makefile
new file mode 100644
index 00000000000..a10a82e9c11
--- /dev/null
+++ b/devel/mimalloc/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2021/07/27 09:29:41 fcambus Exp $
+
+DISTNAME= mimalloc-2.0.2
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=microsoft/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= fcambus@NetBSD.org
+HOMEPAGE= https://github.com/microsoft/mimalloc/
+COMMENT= General-purpose allocator with excellent performance characteristics
+LICENSE= mit
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+
+post-install:
+ ${RM} -f ${DESTDIR}${PREFIX}/lib/mimalloc-2.0/mimalloc.o
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/mimalloc/PLIST b/devel/mimalloc/PLIST
new file mode 100644
index 00000000000..a6476a8615b
--- /dev/null
+++ b/devel/mimalloc/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2021/07/27 09:29:41 fcambus Exp $
+include/mimalloc-2.0/mimalloc-new-delete.h
+include/mimalloc-2.0/mimalloc-override.h
+include/mimalloc-2.0/mimalloc.h
+lib/mimalloc-2.0/libmimalloc.a
+lib/mimalloc-2.0/libmimalloc.so
+lib/mimalloc-2.0/libmimalloc.so.2.0
+share/mimalloc-2.0/cmake/mimalloc-config-version.cmake
+share/mimalloc-2.0/cmake/mimalloc-config.cmake
+share/mimalloc-2.0/cmake/mimalloc-release.cmake
+share/mimalloc-2.0/cmake/mimalloc.cmake
diff --git a/devel/mimalloc/buildlink3.mk b/devel/mimalloc/buildlink3.mk
new file mode 100644
index 00000000000..261ae7c846e
--- /dev/null
+++ b/devel/mimalloc/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/07/27 09:29:41 fcambus Exp $
+
+BUILDLINK_TREE+= mimalloc
+
+.if !defined(MIMALLOC_BUILDLINK3_MK)
+MIMALLOC_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.mimalloc+= mimalloc>=2.0.2
+BUILDLINK_PKGSRCDIR.mimalloc?= ../../devel/mimalloc
+.endif # MIMALLOC_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -mimalloc
diff --git a/devel/mimalloc/distinfo b/devel/mimalloc/distinfo
new file mode 100644
index 00000000000..06cebed0481
--- /dev/null
+++ b/devel/mimalloc/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/07/27 09:29:41 fcambus Exp $
+
+SHA1 (mimalloc-2.0.2.tar.gz) = 3b7babb08cbabae0142c04d8c09b4d0abce038dc
+RMD160 (mimalloc-2.0.2.tar.gz) = 4c47b2378b87425d1a82981155e77427a63e6b43
+SHA512 (mimalloc-2.0.2.tar.gz) = d6f1749a6df86346220fc190a3fd6aa67deff5439b26846c33ff95e91ce5fea73837ee39348dd432db3592575298e6e87856329d0236d2c6959abd8bf7756cdc
+Size (mimalloc-2.0.2.tar.gz) = 910758 bytes