mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-03 16:40:25 +00:00
78 lines
2.6 KiB
Bash
78 lines
2.6 KiB
Bash
#! /bin/bash
|
|
|
|
# libev
|
|
# Source: http://dist.schmorp.de/libev/Attic/libev-4.33.tar.gz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: NONE
|
|
# Recommended: NONE
|
|
# Optional: NONE
|
|
# LTO: Tested with LLVM
|
|
|
|
patch -Np1 -i ../patches/libev-alpine/libev-4.11-Add-pkgconfig-support.patch &&
|
|
libtoolize --force && aclocal -I m4 && autoheader &&
|
|
autoconf && automake --add-missing &&
|
|
|
|
# If optimizing, use these flags
|
|
export CFLAGS="-march=native -mtune=native -pipe "
|
|
export CFLAGS+="-O3 -ffat-lto-objects -flto=4 -fstack-protector-strong "
|
|
export CFLAGS+="-fzero-call-used-regs=used "
|
|
export LDFLAGS="-flto=4 -Wl,-O2 -Wl,--as-needed "
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc $BUILDTRUPLE &&
|
|
read -p "Compile?" && make -j2 &&
|
|
|
|
sudo -S make DESTDIR=$BUILD install &&
|
|
sudo -S rm -v ${BUILD}/usr/include/event.h &&
|
|
sudo -S mkdir -pv /BMAN/install
|
|
sudo -S mkdir -pv /BMAN/usr
|
|
sudo -S mv $BUILD/usr/share /BMAN/usr/
|
|
|
|
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
# HOW TO EDIT THIS FILE:
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
libev: libev (a high-performance event loop/model)
|
|
libev:
|
|
libev: Libev is modelled (very loosely) after libevent and the Event perl
|
|
libev: module, but is faster, scales better and is more correct, and also
|
|
libev: more featureful. And also smaller. Yay.
|
|
libev:
|
|
libev: Website: <http://software.schmorp.de/pkg/libev.html>
|
|
libev:
|
|
libev:
|
|
libev:
|
|
libev:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/libev-4.33-$(uname -m)-mlfs.txz &&
|
|
|
|
cd /BMAN
|
|
cat > /tmp/slack-desc << "EOF"
|
|
libev-doc: Manuals for libev (a high-performance event loop/model)
|
|
libev-doc:
|
|
libev-doc: Libev is modelled (very loosely) after libevent and the Event perl
|
|
libev-doc: module, but is faster, scales better and is more correct, and also
|
|
libev-doc: more featureful. And also smaller. Yay.
|
|
libev-doc:
|
|
libev-doc: Website: <http://software.schmorp.de/pkg/libev.html>
|
|
libev-doc:
|
|
libev-doc:
|
|
libev-doc:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/
|
|
sudo -S makepkg -l y -c n $PKGS/libev-doc-4.33-noarch-mlfs.txz
|
|
sudo -S rm -rf /BMAN/*
|
|
sudo -S rm -rf ${BUILD}/*
|