[notify] libsrtp: build now depends on meson/ninja

This commit is contained in:
Tim Biermann 2021-08-15 16:15:30 +02:00
parent ccfa38f260
commit a8f20d8ea0
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 20 additions and 15 deletions

View File

@ -6,6 +6,7 @@ drwxr-xr-x root/root usr/include/srtp2/
-rw-r--r-- root/root usr/include/srtp2/crypto_types.h
-rw-r--r-- root/root usr/include/srtp2/srtp.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libsrtp2.a
lrwxrwxrwx root/root usr/lib/libsrtp2.so -> libsrtp2.so.1
-rwxr-xr-x root/root usr/lib/libsrtp2.so.1
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/libsrtp2.pc

View File

@ -1,6 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3/qb6I9fKArOW0eEtjZoGUsI6w0xTwyS3DxqK0CbvJ3ncy8vm2bGePVQ7bq/UjQsVdELF+tmeegVcBPEN+aayQ0=
SHA256 (Pkgfile) = 2e114f4ba35486a0cf5dcb26f4096b75a9941fdae272ba77215955e30c8ebe1f
SHA256 (.footprint) = 91295a1aca3241912bd2cf2fb57bdf10b3f3d53025e35c879a35d70ca34f09a3
RWSagIOpLGJF37vH3Ol1EDAgUxTILBbNGUuJcoIea3udUwYv8xVFTe0Nc7mhR+/FN2mWD4kJl+FmMdx5gJe0zvJipLSTEeBkUQQ=
SHA256 (Pkgfile) = c765a67d36308190264b80fbb088cafef35e155af4f362b292e1ae920cdbeec3
SHA256 (.footprint) = e5352f5862a3e8dc5a07da90d156d5d4d54345fcf06b76b25d3a3cc556da7ee8
SHA256 (libsrtp-2.4.0.tar.gz) = 713c5c1dc740707422307f39834c0b0fbb76769168d87e92c438a3cca8233d3d
SHA256 (libsrtp-2.3.0-shared-fix.patch) = d996cb9eae1f8d40b2394ebc937616470ae2d67bd075578a4d473e7c2b918358

View File

@ -1,20 +1,25 @@
# Description: Secure Realtime transport protocol library
# URL: https://github.com/cisco/libsrtp
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: meson ninja
# Optional: clang
name=libsrtp
version=2.4.0
release=1
source=(https://github.com/cisco/libsrtp/archive/v$version/$name-$version.tar.gz
libsrtp-2.3.0-shared-fix.patch)
release=2
source=(https://github.com/cisco/libsrtp/archive/v$version/$name-$version.tar.gz)
build() {
cd $name-$version
patch -p1 -i $SRC/libsrtp-2.3.0-shared-fix.patch
CFLAGS+=' -fcommon' \
./configure \
prt-get isinst clang && PKGMK_SRTP+=' -D fuzzer=enabled'
meson setup $name-$version build $PKGMK_SRTP \
--prefix=/usr \
--enable-openssl
make
make DESTDIR=$PKG install
--buildtype=plain \
--wrap-mode nodownload \
--auto-features disabled \
-D b_lto=true \
-D b_pie=true \
-D crypto-library=openssl \
-D doc=disabled
meson compile -C build
DESTDIR=$PKG meson install -C build
}