commit a2fefc7ff7f81aa94eb0769a5da1d15b8066742e Author: Danny Rawlins <contact@romster.me> Date: Sun Oct 31 13:08:00 2021 +1100 jemalloc: initial import diff --git a/jemalloc/.footprint b/jemalloc/.footprint new file mode 100644 index 000000000..b59883e3d --- /dev/null +++ b/jemalloc/.footprint @@ -0,0 +1,19 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/jemalloc-config +-rwxr-xr-x root/root usr/bin/jemalloc.sh +-rwxr-xr-x root/root usr/bin/jeprof +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/jemalloc/ +-rw-r--r-- root/root usr/include/jemalloc/jemalloc.h +drwxr-xr-x root/root usr/lib/ +-rwxr-xr-x root/root usr/lib/libjemalloc.a +lrwxrwxrwx root/root usr/lib/libjemalloc.so -> libjemalloc.so.2 +-rwxr-xr-x root/root usr/lib/libjemalloc.so.2 +-rwxr-xr-x root/root usr/lib/libjemalloc_pic.a +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/jemalloc.pc +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man3/ +-rw-r--r-- root/root usr/share/man/man3/jemalloc.3.gz diff --git a/jemalloc/.signature b/jemalloc/.signature new file mode 100644 index 000000000..9604de1f9 --- /dev/null +++ b/jemalloc/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF32kPVRbtq65pxP2cSaov796H6BiKr93bOZbktp8bVIxsESRBvlAFm1AlmJDP8Ki9cKP8FrKuk1Hby+iIzwZPJgI= +SHA256 (Pkgfile) = 1204aaed1b31ddc7b992f4f160c546a0c6f5f032edcdc669b6744d06610dc83f +SHA256 (.footprint) = e62079d57ef855c39cbf10c48a7585f4829b643f6424c26d2c530b433833e088 +SHA256 (jemalloc-5.2.1.tar.bz2) = 34330e5ce276099e2e8950d9335db5a875689a4c6a56751ef3b1d8c537f887f6 diff --git a/jemalloc/Pkgfile b/jemalloc/Pkgfile new file mode 100644 index 000000000..52ecf2970 --- /dev/null +++ b/jemalloc/Pkgfile @@ -0,0 +1,24 @@ +# Description: General-purpose scalable concurrent allocator +# URL: http://jemalloc.net/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Optional: clang lld + +name=jemalloc +version=5.2.1 +release=1 +source=(https://github.com/$name/$name/releases/download/$version/$name-$version.tar...) + +build() { + cd $name-$version + + export CFLAGS+=' -O3' + prt-get isinst clang lld && LDFLAGS+=' -fuse-ld=lld -flto=thin' + prt-get isinst clang && export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib || \ + export CC=gcc CXX=g++ + + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + + rm -r $PKG/usr/share/doc +}