mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-10 08:12:35 +02:00
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
|
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=jemalloc
|
|
pkgver=5.3.0
|
|
pkgrel=4
|
|
pkgdesc="general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support"
|
|
url="http://jemalloc.net"
|
|
arch="all"
|
|
license="BSD-2-Clause"
|
|
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
|
|
source="https://github.com/jemalloc/jemalloc/releases/download/$pkgver/jemalloc-$pkgver.tar.bz2"
|
|
|
|
build() {
|
|
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
|
|
./configure \
|
|
--enable-xmalloc \
|
|
--prefix=/usr \
|
|
--localstatedir=/var \
|
|
--sysconfdir=/etc \
|
|
--with-lg-page="$_pgs" \
|
|
--with-lg-hugepage=21
|
|
make all dist
|
|
}
|
|
|
|
check() {
|
|
make tests
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
22907bb052096e2caffb6e4e23548aecc5cc9283dce476896a2b1127eee64170e3562fa2e7db9571298814a7a2c7df6e8d1fbe152bd3f3b0c1abec22a2de34b1 jemalloc-5.3.0.tar.bz2
|
|
"
|