2022-07-19 16:40:35 +00:00
|
|
|
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
|
2020-06-08 22:06:06 +00:00
|
|
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
|
|
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
2024-02-26 12:16:20 +01:00
|
|
|
# Contributor: doitwithnotepad <doitwithnotepad@proton.me>
|
2013-10-05 21:28:11 +00:00
|
|
|
pkgname=jemalloc
|
2022-07-19 16:40:35 +00:00
|
|
|
pkgver=5.3.0
|
2024-09-04 21:48:56 +02:00
|
|
|
pkgrel=6
|
2020-06-08 22:06:06 +00:00
|
|
|
pkgdesc="general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support"
|
|
|
|
url="http://jemalloc.net"
|
|
|
|
arch="all"
|
2022-07-19 16:40:35 +00:00
|
|
|
license="BSD-2-Clause"
|
2024-02-26 12:16:20 +01:00
|
|
|
makedepends="autoconf"
|
2023-05-27 01:53:53 +00:00
|
|
|
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
|
2024-08-15 11:12:26 +00:00
|
|
|
source="https://github.com/jemalloc/jemalloc/releases/download/$pkgver/jemalloc-$pkgver.tar.bz2
|
2024-09-04 21:48:56 +02:00
|
|
|
musl-exception-specification-errors.patch
|
|
|
|
pkgconf.patch
|
|
|
|
"
|
2023-05-22 03:07:17 +00:00
|
|
|
|
2013-10-05 21:28:11 +00:00
|
|
|
build() {
|
2020-06-08 22:06:06 +00:00
|
|
|
local _pgs
|
|
|
|
case "$CARCH" in
|
|
|
|
x86|x86_64) _pgs=12 ;;
|
|
|
|
ppc64le) export CPPFLAGS="$CPPFLAGS -maltivec -mabi=altivec" && _pgs=16 ;;
|
|
|
|
*) _pgs=16 ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo "$pkgver" > VERSION
|
2024-02-26 12:16:20 +01:00
|
|
|
./autogen.sh \
|
2020-06-08 22:06:06 +00:00
|
|
|
--enable-xmalloc \
|
2022-07-28 06:36:39 +00:00
|
|
|
--prefix=/usr \
|
2013-10-05 21:28:11 +00:00
|
|
|
--localstatedir=/var \
|
2020-06-08 22:06:06 +00:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-lg-page="$_pgs" \
|
|
|
|
--with-lg-hugepage=21
|
2022-07-28 06:45:47 +00:00
|
|
|
make all dist
|
2018-05-20 15:31:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2020-06-08 22:06:06 +00:00
|
|
|
make tests
|
2013-10-05 21:28:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-07-28 06:36:39 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2013-10-05 21:28:11 +00:00
|
|
|
}
|
2022-07-19 16:40:35 +00:00
|
|
|
|
|
|
|
sha512sums="
|
|
|
|
22907bb052096e2caffb6e4e23548aecc5cc9283dce476896a2b1127eee64170e3562fa2e7db9571298814a7a2c7df6e8d1fbe152bd3f3b0c1abec22a2de34b1 jemalloc-5.3.0.tar.bz2
|
2024-08-15 11:18:46 +00:00
|
|
|
7f52287019a02eef434ecd9f07b4f9bdb5349eced1c09f57db0c6c394d173e8deee20b646431264494a0b985eec3208889547cdd48cd7de6844f2b64c441e34b musl-exception-specification-errors.patch
|
2024-09-04 21:48:56 +02:00
|
|
|
04688e1afb8380a61d55292527550b6f26706bed7ec7aeafa3958d52a4d407584aca215bc209e0dd353850756207a0c6bb906643499571be2b34586640314e1f pkgconf.patch
|
2022-07-19 16:40:35 +00:00
|
|
|
"
|