Added tdlib and etc.

This commit is contained in:
Mid Favila 2021-05-20 00:33:40 +00:00
parent a88ea873b4
commit 6b021a6344
36 changed files with 212 additions and 4 deletions

31
ports/binutils-lto/build Executable file
View File

@ -0,0 +1,31 @@
#!/bin/sh -e
cat > makeinfo <<EOF
#!/bin/sh
printf 'makeinfo (GNU texinfo) 5.2\n'
EOF
chmod +x makeinfo
export PATH=$PATH:$PWD
./configure \
--prefix=/usr \
--with-lib-path=/usr/lib:/usr/local/lib \
--enable-targets="$(cc -dumpmachine)" \
--enable-deterministic-archives \
--enable-gold \
--enable-lto \
--enable-ld=default \
--enable-plugins \
--disable-multilib \
--disable-werror \
--disable-gdb \
--disable-nls \
--disable-readline \
--disable-gprof \
--with-mmap \
--with-system-zlib
make configure-host
make tooldir=/usr
make DESTDIR="$1" tooldir=/usr install

View File

@ -0,0 +1 @@
../../kiss-repo/core/binutils/checksums

1
ports/binutils-lto/depends Symbolic link
View File

@ -0,0 +1 @@
../../kiss-repo/core/binutils/depends

1
ports/binutils-lto/sources Symbolic link
View File

@ -0,0 +1 @@
../../kiss-repo/core/binutils/sources

1
ports/binutils-lto/version Symbolic link
View File

@ -0,0 +1 @@
../../kiss-repo/core/binutils/version

3
ports/fetsh/build Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh -e
install -Dm755 fet.sh "$1/usr/bin/fet.sh"

1
ports/fetsh/checksums Normal file
View File

@ -0,0 +1 @@
274a0f21f38f93b5a05d7eac3412920d18fb47b575411b1907f929915056aaa0

1
ports/fetsh/sources Normal file
View File

@ -0,0 +1 @@
https://github.com/6gk/fet.sh/archive/v1.8.tar.gz

1
ports/fetsh/version Normal file
View File

@ -0,0 +1 @@
1.8 1

31
ports/ffmpeg-lto/build Executable file
View File

@ -0,0 +1,31 @@
#!/bin/sh -e
./configure \
--cc="${CC:-cc}" \
--cxx="${CXX:-c++}" \
--prefix=/usr \
--enable-lto \
--enable-shared \
--enable-gpl \
--enable-version3 \
--enable-nonfree \
--enable-libass \
--enable-libmp3lame \
--enable-libopus \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-libxvid \
--enable-libwebp \
--enable-libdrm \
--x86asmexe=nasm \
--disable-debug \
--disable-libxml2 \
--enable-ffplay \
--disable-static
make
make DESTDIR="$1" install
rm -rf "$1/usr/share/ffmpeg/examples"

1
ports/ffmpeg-lto/checksums Symbolic link
View File

@ -0,0 +1 @@
../ffmpeg/checksums

1
ports/ffmpeg-lto/depends Symbolic link
View File

@ -0,0 +1 @@
../ffmpeg/depends

1
ports/ffmpeg-lto/sources Symbolic link
View File

@ -0,0 +1 @@
../ffmpeg/sources

1
ports/ffmpeg-lto/version Symbolic link
View File

@ -0,0 +1 @@
../ffmpeg/version

70
ports/gcc-pgo-lto/build Executable file
View File

@ -0,0 +1,70 @@
#!/bin/sh -e
# Make sure gmp is built with generic options.
cp gcc/gmp/configfsf.guess gcc/gmp/config.guess
cp gcc/gmp/configfsf.sub gcc/gmp/config.sub
# Use lib not lib64 by default.
sed -i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64
sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h
# Build must happen outside of gcc source.
mkdir -p gcc-build
cd gcc-build
export libat_cv_have_ifunc=no
../gcc/configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-multilib \
--disable-symvers \
--disable-libmpx \
--disable-libmudflap \
--disable-libsanitizer \
--disable-werror \
--disable-fixed-point \
--disable-libstdcxx-pch \
--disable-nls \
--enable-checking=release \
--enable-__cxa_atexit \
--enable-default-pie \
--enable-default-ssp \
--enable-shared \
--enable-threads \
--enable-tls \
--enable-languages=c,c++ \
--without-included-gettext \
--with-system-zlib \
--with-isl \
--with-build-config=bootstrap-lto \
--build="$(cc -dumpmachine)" \
--enable-bootstrap
make \
BOOT_CFLAGS="${CFLAGS}" \
STAGE1_CFLAGS="-O2 -pipe -march=native" \
profiledbootstrap
make DESTDIR="$1" install
# Save 35MB.
find "$1" -name libgtkpeer.a -exec rm -f {} +
find "$1" -name libgjsmalsa.a -exec rm -f {} +
find "$1" -name libgij.a -exec rm -f {} +
# Some legacy programs will expect cc
ln -s gcc "$1/usr/bin/cc"
# POSIX compliance.
install -Dm755 ../c99 "$1/usr/bin/c99"
# Symlink for LTO.
{
mkdir -p "$1/usr/lib/bfd-plugins"
ln -s "/usr/lib/gcc/$(cc -dumpmachine)/$2/liblto_plugin.so" \
"$1/usr/lib/bfd-plugins/liblto_plugin.so"
}

View File

@ -0,0 +1,6 @@
4c4a6fb8a8396059241c2e674b85b351c26a5d678274007f076957afa1cc9ddf
fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
5efc53efaef151301f4e7dde3856b66812d8153dede24fab17673f801c8698f2
765614b3396d70bca3fa0ae4a813632486c6dca320e2bd13c8c39dca52be4a4c

1
ports/gcc-pgo-lto/depends Symbolic link
View File

@ -0,0 +1 @@
../../kiss-repo/core/gcc/depends

1
ports/gcc-pgo-lto/files/c99 Symbolic link
View File

@ -0,0 +1 @@
/var/db/kiss/repos/grepo/core/gcc/files/c99

View File

@ -0,0 +1,6 @@
https://gcc.gnu.org/pub/gcc/releases/gcc-11.1.0/gcc-11.1.0.tar.xz gcc
https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz gcc/gmp
https://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.xz gcc/mpfr
https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz gcc/mpc
http://isl.gforge.inria.fr/isl-0.23.tar.xz gcc/isl
files/c99

View File

@ -0,0 +1 @@
11.1.0 1

View File

@ -1,3 +0,0 @@
#!/bin/sh -e
rm /usr/bin/mtm

13
ports/tdlib-purple/build Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh -e
mkdir build
cd build
cmake \
-DTd_DIR=/usr/lib/cmake/Td \
-DNoVoip=True \
-DNoTranslation=True \
-DNoLottie=True ..
make
make DESTDIR="$1" install

View File

@ -0,0 +1 @@
72b6d10749e5f234b51f3fdeabb69d58a18a80e70e698e87fe45e6246f496d1b

View File

@ -0,0 +1,2 @@
cmake build
tdlib

View File

@ -0,0 +1 @@
https://github.com/ars3niy/tdlib-purple/archive/refs/tags/v0.7.8.tar.gz

View File

@ -0,0 +1 @@
0.78 1

10
ports/tdlib/build Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh -e
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr
make
make DESTDIR="$1" install

1
ports/tdlib/checksums Normal file
View File

@ -0,0 +1 @@
9dce57a96f9d4bac8f99aab13ef5cbf6fed04b234a5d22dfa7ef7dce06ea43f8

1
ports/tdlib/depends Normal file
View File

@ -0,0 +1 @@
cmake make

1
ports/tdlib/sources Normal file
View File

@ -0,0 +1 @@
https://github.com/tdlib/td/archive/refs/tags/v1.6.0.tar.gz

1
ports/tdlib/version Normal file
View File

@ -0,0 +1 @@
1.7.0 1

View File

@ -1,7 +1,7 @@
#!/bin/sh -e
# Patch Clock.c to compile with other Xaws
sed -e 's/XpmReadFileToPixmap(dpy, RootWindowOfScreen(screen), name, &pmap,//g' clock.c.new | sed -e 's/&shapemask, NULL);//g' > Clock.c.new ; mv Clock.c.new Clock.c
sed -e 's/XpmReadFileToPixmap(dpy, RootWindowOfScreen(screen), name, &pmap,//g' Clock.c | sed -e 's/&shapemask, NULL);//g' > Clock.c.new ; mv Clock.c.new Clock.c
./configure \
--prefix=/usr

15
ports/zstd-lto/build Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh -e
(
cd programs
make zstd-pgo
make DESTDIR="$1" PREFIX=/usr install
)
(
cd lib
make
make DESTDIR="$1" PREFIX=/usr install
)

1
ports/zstd-lto/checksums Symbolic link
View File

@ -0,0 +1 @@
../../kiss-repo/extra/zstd/checksums

1
ports/zstd-lto/sources Symbolic link
View File

@ -0,0 +1 @@
../../kiss-repo/extra/zstd/sources

1
ports/zstd-lto/version Symbolic link
View File

@ -0,0 +1 @@
../../kiss-repo/extra/zstd/version