Skip to content
Snippets Groups Projects
Commit 389389f7 authored by Duncan Bellamy's avatar Duncan Bellamy :speech_balloon: Committed by Milan P. Stanić
Browse files

unmaintained/jemalloc: fix cross compiling

parent 8efa6cf1
No related branches found
No related tags found
3 merge requests!11958community/rclone: upgrade to 1.52.3,!9763[3.12] community/znc: upgrade to 1.8.1,!9020unmaintained/jemalloc: fix cross compiling
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
pkgname=jemalloc
pkgver=5.1.0
pkgver=5.2.1
pkgrel=0
pkgdesc="A general purpose malloc(3) implementation"
url="http://jemalloc.net/"
arch="all !armv7"
license="BSD-2-Clause"
pkgdesc="general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support"
url="http://jemalloc.net"
arch="all"
license="custom"
makedepends="build-base autoconf libxslt docbook-xsl"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.bz2::https://github.com/$pkgname/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.bz2
jemalloc-no-pprof.patch
"
source="https://github.com/jemalloc/jemalloc/releases/download/$pkgver/jemalloc-$pkgver.tar.bz2"
build() {
cd "$builddir"
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
local _xslroot=$(find /usr/share/xml/docbook -iname "xsl-stylesheets-*")
autoconf
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-xmalloc \
--prefix="$pkgdir"/usr \
--localstatedir=/var \
--disable-syscall
make
--sysconfdir=/etc \
--with-xslroot="$_xslroot" \
--with-lg-page="$_pgs" \
--with-lg-hugepage=21
make all dist
}
check() {
cd "$builddir"
make check
make tests
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
make install
install -Dm644 "$builddir"/COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
sha512sums="d9abebe54d303ca931b8c31c1033f23ff5fb060f2377ec8386f4d79c352e65c78ed34f680c352dac14f7d7115d10245782d553d988bc13df2eb34a2f0942ef6f jemalloc-5.1.0.tar.bz2
1e59e6e3bd98be3be12a2619acf213445906c1f70d5e06fbfb98c1409c93486934ab53d58709a05e0c109e5ba9eab16d2110163e173de22ef2dc969d1cde9274 jemalloc-no-pprof.patch"
sha512sums="0bbb77564d767cef0c6fe1b97b705d368ddb360d55596945aea8c3ba5889fbce10479d85ad492c91d987caacdbbdccc706aa3688e321460069f00c05814fae02 jemalloc-5.2.1.tar.bz2"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment