diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2019-07-03 08:23:26 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-07-03 08:23:26 +0000 |
commit | 6e778523d40a1fbace7883193d124d36abe98a51 (patch) | |
tree | c2562892aa5155b58c90ca1f0530569362eae077 /testing/mediastreamer2/APKBUILD | |
parent | 8597a6fb66d795ded8a994d0521eb31d9cf8f702 (diff) | |
download | aports-6e778523d40a1fbace7883193d124d36abe98a51.tar.bz2 aports-6e778523d40a1fbace7883193d124d36abe98a51.tar.xz |
testing/mediastreamer2: new aport
Diffstat (limited to 'testing/mediastreamer2/APKBUILD')
-rw-r--r-- | testing/mediastreamer2/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/mediastreamer2/APKBUILD b/testing/mediastreamer2/APKBUILD new file mode 100644 index 0000000000..126fcf73a3 --- /dev/null +++ b/testing/mediastreamer2/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname="mediastreamer2" +_pkgname=${pkgname/2/} +pkgver="2.16.1" +pkgrel=0 +pkgdesc="A library written in C that allows you to create and run audio and video streams" +url="https://www.linphone.org/technical-corner/mediastreamer2/overview" +arch="all" +license="GPL-2.0-or-later" +options="!check" # no test available +makedepends="cmake gettext-dev ffmpeg-dev ortp-dev + libxv-dev speex-dev speexdsp-dev libsrtp-dev + v4l-utils-dev bctoolbox-dev mesa-dev glew-dev + opus-dev libpcap-dev spandsp-dev tiff-dev libtheora-dev + alsa-lib-dev python3-dev gsm-dev + libpcap-dev jpeg-dev" +subpackages="$pkgname-dev" +source="https://www.linphone.org/releases/sources/${_pkgname}/${_pkgname}-${pkgver}.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_MODULE_PATH=/usr/lib/cmake \ + -DCMAKE_SKIP_INSTALL_RPATH=ON \ + -DENABLE_STRICT=NO \ + -DENABLE_ALSA=YES \ + -DENABLE_STATIC=NO \ + -DENABLE_RESAMPLE=YES \ + -DENABLE_JPEG=YES \ + -DENABLE_PCAP=YES \ + -DENABLE_FFMPEG=YES \ + -DENABLE_SPEEX_CODEC=YES \ + -DENABLE_SPEEX_DSP=YES \ + -DENABLE_SHARED=YES . + make +} + +package() { + make DESTDIR="$pkgdir" install +} + +dev() { + default_dev + mkdir -p "$subpkgdir"/usr/lib/cmake/Mediastreamer2 + mv "$pkgdir"/usr/share/Mediastreamer2/cmake/* "$subpkgdir"/usr/lib/cmake/Mediastreamer2 + # Remove empty dirs + rmdir "$pkgdir"/usr/share/Mediastreamer2/cmake + rmdir "$pkgdir"/usr/share/Mediastreamer2 +} + +sha512sums="44b3a5092aedf65b5503c7843c88e4acc2d0e72093a4f057440355c281135a17c898c1c01438e372bf7c8ae2f30a79ad8a59315f3f3d9b914599a185e90fbe81 mediastreamer-2.16.1.tar.gz" |