aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schmidt <martin.schmidt13@gmx.de>2020-07-22 21:35:55 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-07-23 22:52:59 -0300
commitc29cc1ad187209e0440cbfc84201043c614042cf (patch)
tree6860b80fb50ab559fa6bdab2ce24816e73017782
parent980f624c623b6fc8c07240f5b6d8cf5b13e91412 (diff)
downloadaports-c29cc1ad187209e0440cbfc84201043c614042cf.tar.gz
aports-c29cc1ad187209e0440cbfc84201043c614042cf.tar.bz2
aports-c29cc1ad187209e0440cbfc84201043c614042cf.tar.xz
testing/mediastreamer2-plugin-x264: new aport
This hopefully gives us video in linphonec.
-rw-r--r--testing/mediastreamer2-plugin-x264/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/mediastreamer2-plugin-x264/APKBUILD b/testing/mediastreamer2-plugin-x264/APKBUILD
new file mode 100644
index 0000000000..291d6df645
--- /dev/null
+++ b/testing/mediastreamer2-plugin-x264/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Martin Schmidt <martin.schmidt13@gmx.de>
+# Maintainer: Martin Schmidt <martin.schmidt13@gmx.de>
+_commit=f4fe74056d0474b42025d95449ec859e984d78ea
+pkgname=mediastreamer2-plugin-x264
+pkgver=20200722
+pkgrel=0
+pkgdesc="GPL plugin to bring video H264 encoding/decoding capabilities to mediastreamer2 applications"
+url="https://gitlab.linphone.org/BC/public/msx264"
+arch="all"
+license="GPL-2.0-or-later"
+options="!check" # no test available
+makedepends="cmake ortp-dev bctoolbox-dev mediastreamer2-dev x264-dev"
+
+source="$pkgname-$_commit.tar.gz::https://gitlab.linphone.org/BC/public/msx264/-/archive/$_commit.tar.gz
+"
+
+builddir="$srcdir/msx264-$_commit"
+
+prepare() {
+ default_prepare
+ sed -i 's/ORTP\ REQUIRED/ortp\ REQUIRED/g' src/CMakeLists.txt
+}
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_MODULE_PATH=/usr/lib/cmake \
+ -DCMAKE_SKIP_INSTALL_RPATH=ON \
+ -DENABLE_STRICT=NO \
+ -DENABLE_SHARED=YES
+
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}
+sha512sums="cc295d06b13fddaf97669ef20bf239622ea0690bd8d193df0f435831caf433f5b036be83bfdd9a261af8d51c272d4e2b614cfd2af04766797c86314d46782065 mediastreamer2-plugin-x264-f4fe74056d0474b42025d95449ec859e984d78ea.tar.gz"