summaryrefslogtreecommitdiff
path: root/repo/media
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-01 21:21:05 +0000
committerdavidovski <david@davidovski.xyz>2022-05-01 21:21:05 +0000
commit606bc59d0f8f67815c6a717843835477d44db6b3 (patch)
tree687b3fe5bc844b90a3841e1ea543aa9f9934a93a /repo/media
parent1084afc3c4d9c83e61620de60ba59a4393a33cb0 (diff)
added ungoogled chromium
Diffstat (limited to 'repo/media')
-rw-r--r--repo/media/aom.xibuild24
-rw-r--r--repo/media/dav1d.xibuild30
-rw-r--r--repo/media/ffmpeg.xibuild63
-rw-r--r--repo/media/ffmpeg4.xibuild64
-rw-r--r--repo/media/lame.xibuild26
-rw-r--r--repo/media/libass.xibuild23
-rw-r--r--repo/media/librist.xibuild22
-rw-r--r--repo/media/libsrt.xibuild28
-rw-r--r--repo/media/mpc-mpd.xibuild21
-rw-r--r--repo/media/mpd.xibuild42
-rw-r--r--repo/media/soxr.xibuild23
-rw-r--r--repo/media/v4l-utils.xibuild29
-rw-r--r--repo/media/vidstab.xibuild23
-rw-r--r--repo/media/x264.xibuild35
-rw-r--r--repo/media/x265.xibuild53
-rw-r--r--repo/media/xvidcore.xibuild24
16 files changed, 522 insertions, 8 deletions
diff --git a/repo/media/aom.xibuild b/repo/media/aom.xibuild
new file mode 100644
index 0000000..66aaa4b
--- /dev/null
+++ b/repo/media/aom.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+NAME="aom"
+DESC="Alliance for Open Media (AOM) AV1 codec SDK"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=3.3.0
+SOURCE="https://aomedia.googlesource.com/aom/+archive/v$PKG_VER.tar.gz"
+ADDITIONAL="fix-stack-size-e53da0b.patch "
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/media/dav1d.xibuild b/repo/media/dav1d.xibuild
new file mode 100644
index 0000000..a25471b
--- /dev/null
+++ b/repo/media/dav1d.xibuild
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+NAME="dav1d"
+DESC="small and fast AV1 Decoder"
+
+MAKEDEPS="meson ninja nasm"
+DEPS="musl "
+
+PKG_VER=1.0.0
+SOURCE="https://code.videolan.org/videolan/dav1d/-/archive/$PKG_VER/dav1d-$PKG_VER.tar.bz2"
+ADDITIONAL="fix-asmcheck.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ mkdir build &&
+ cd build &&
+ meson --prefix=/usr \
+ -Denable_asm=true \
+ -Dfuzzing_engine=none \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+ mv $PKG_DEST/usr/lib64 $PKG_DEST/usr/lib
+}
diff --git a/repo/media/ffmpeg.xibuild b/repo/media/ffmpeg.xibuild
new file mode 100644
index 0000000..6d7f960
--- /dev/null
+++ b/repo/media/ffmpeg.xibuild
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+NAME="ffmpeg"
+DESC="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
+
+MAKEDEPS="make "
+DEPS="alsa-lib aom gnutls libass bzip2 dav1d libdrm pulseaudio librist libsrt libtheora libva libvorbis libvpx libwebp libx11 libxcb musl opus sdl2 v4l-utils vidstab x264 x265 xvidcore zlib lame soxr"
+
+PKG_VER=5.0.1
+SOURCE="https://ffmpeg.org/releases/ffmpeg-$PKG_VER.tar.xz"
+ADDITIONAL="
+0001-ffbuild-libversion.sh-add-shebang.patch
+0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --enable-avfilter \
+ --enable-gnutls \
+ --enable-gpl \
+ --enable-libass \
+ --enable-libmp3lame \
+ --enable-libpulse \
+ --enable-libvorbis \
+ --enable-libvpx \
+ --enable-libxvid \
+ --enable-libx264 \
+ --enable-libx265 \
+ --enable-libtheora \
+ --enable-libv4l2 \
+ --enable-libdav1d \
+ --enable-lto \
+ --enable-postproc \
+ --enable-pic \
+ --enable-pthreads \
+ --enable-shared \
+ --enable-libxcb \
+ --enable-librist \
+ --enable-libsrt \
+ --enable-libvidstab \
+ --disable-stripping \
+ --disable-static \
+ --disable-librtmp \
+ --enable-libaom \
+ --enable-libopus \
+ --enable-libsoxr \
+ --enable-libwebp \
+ --enable-vaapi \
+ --enable-vdpau \
+ --enable-libdrm
+
+
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/ffmpeg4.xibuild b/repo/media/ffmpeg4.xibuild
new file mode 100644
index 0000000..f17b0ef
--- /dev/null
+++ b/repo/media/ffmpeg4.xibuild
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+NAME="ffmpeg4"
+DESC="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
+
+MAKEDEPS="make "
+DEPS="alsa-lib aom gnutls libass bzip2 dav1d libdrm pulseaudio librist libsrt libtheora libva libvorbis libvpx libwebp libx11 libxcb musl opus sdl2 v4l-utils vidstab x264 x265 xvidcore zlib lame soxr"
+
+PKG_VER=4.4.1
+SOURCE="https://ffmpeg.org/releases/ffmpeg-$PKG_VER.tar.xz"
+ADDITIONAL="
+0001-ffbuild-libversion.sh-add-shebang.patch
+0001-libavutil-clean-up-unused-FF_SYMVER-macro.patch
+"
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --enable-avresample \
+ --enable-avfilter \
+ --enable-gnutls \
+ --enable-gpl \
+ --enable-libass \
+ --enable-libmp3lame \
+ --enable-libpulse \
+ --enable-libvorbis \
+ --enable-libvpx \
+ --enable-libxvid \
+ --enable-libx264 \
+ --enable-libx265 \
+ --enable-libtheora \
+ --enable-libv4l2 \
+ --enable-libdav1d \
+ --enable-lto \
+ --enable-postproc \
+ --enable-pic \
+ --enable-pthreads \
+ --enable-shared \
+ --enable-libxcb \
+ --enable-libsrt \
+ --enable-libvidstab \
+ --disable-stripping \
+ --disable-static \
+ --disable-librtmp \
+ --enable-libaom \
+ --enable-libopus \
+ --enable-libsoxr \
+ --enable-libwebp \
+ --enable-vaapi \
+ --enable-vdpau \
+ --enable-libdrm
+
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ rm -rf $PKG_DEST/usr/bin
+ rm -rf $PKG_DEST/usr/share
+}
diff --git a/repo/media/lame.xibuild b/repo/media/lame.xibuild
new file mode 100644
index 0000000..6c2e2dc
--- /dev/null
+++ b/repo/media/lame.xibuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+NAME="lame"
+DESC="An MP3 encoder and graphical frame analyzer"
+
+MAKEDEPS="make nasm"
+DEPS="musl "
+
+PKG_VER=3.100
+SOURCE="https://downloads.sourceforge.net/project/lame/lame/$PKG_VER/lame-$PKG_VER.tar.gz"
+
+build () {
+ ./configure \
+ --prefix=/usr
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --disable-mp3x \
+ --enable-nasm \
+ --with-pic
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/libass.xibuild b/repo/media/libass.xibuild
new file mode 100644
index 0000000..60e3e04
--- /dev/null
+++ b/repo/media/libass.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="libass"
+DESC="Portable library for SSA/ASS subtitle rendering"
+
+MAKEDEPS="make "
+DEPS="fontconfig fribidi freetype2 harfbuzz "
+
+PKG_VER=0.15.2
+SOURCE="https://github.com/libass/libass/releases/download/$PKG_VER/libass-$PKG_VER.tar.xz"
+
+build () {
+ ./configure \
+ --prefix=/usr
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/librist.xibuild b/repo/media/librist.xibuild
new file mode 100644
index 0000000..a51c3fa
--- /dev/null
+++ b/repo/media/librist.xibuild
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+NAME="librist"
+DESC="Reliable Internet Stream Transport (RIST)"
+
+MAKEDEPS="meson ninja "
+DEPS="linux-headers jsoncpp musl "
+
+PKG_VER=0.2.6
+SOURCE="https://code.videolan.org/rist/librist/-/archive/v$PKG_VER/librist-v$PKG_VER.tar.gz"
+
+build () {
+ mkdir build &&
+ cd build &&
+ meson --prefix=/usr \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
diff --git a/repo/media/libsrt.xibuild b/repo/media/libsrt.xibuild
new file mode 100644
index 0000000..3d79326
--- /dev/null
+++ b/repo/media/libsrt.xibuild
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+NAME="libsrt"
+DESC="Secure Reliable Transport (SRT)"
+
+MAKEDEPS="cmake "
+DEPS="openssl musl"
+
+PKG_VER=1.4.4
+SOURCE="https://github.com/Haivision/srt/archive/v$PKG_VER.tar.gz"
+ADDITIONAL="fix-cmake.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/media/mpc-mpd.xibuild b/repo/media/mpc-mpd.xibuild
new file mode 100644
index 0000000..2d6d5f3
--- /dev/null
+++ b/repo/media/mpc-mpd.xibuild
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+NAME="mpc-mpd"
+DESC="Minimalist command line interface to MPD"
+
+MAKEDEPS="meson ninja rsync"
+DEPS="musl libmpdclient mpd"
+
+PKG_VER=0.34
+SOURCE="https://www.musicpd.org/download/mpc/${PKG_VER%.*}/mpc-$PKG_VER.tar.xz"
+
+build () {
+ cd build
+ meson --prefix=/usr \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
diff --git a/repo/media/mpd.xibuild b/repo/media/mpd.xibuild
index 0907e1e..afedb54 100644
--- a/repo/media/mpd.xibuild
+++ b/repo/media/mpd.xibuild
@@ -1,22 +1,48 @@
#!/bin/sh
NAME="mpd"
-DESC="Minimalist command line interface to MPD"
+DESC="Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs"
-MAKEDEPS="meson ninja "
-DEPS="musl libmpdclient "
+MAKEDEPS="meson ninja boost"
+DEPS="alsa-lib sbase expat faad2 flac fmt icu lame libao bzip2 libid3tag libmad libogg pulseaudio libsamplerate libmpdclient libvorbis musl opus pipewire soxr wavpack zlib sqlite3 ffmpeg4"
-PKG_VER=0.34
-SOURCE="https://www.musicpd.org/download/mpc/${PKG_VER%.*}/mpc-$PKG_VER.tar.xz"
+PKG_VER=0.23.6
+SOURCE="https://www.musicpd.org/download/mpd/${PKG_VER%.*}/mpd-$PKG_VER.tar.xz"
+ADDITIONAL="libcdio-paa-version.patch libcdio-paranoia-version.patch mpd.confd mpd.initd"
+
+prepare () {
+ apply_patches
+}
build () {
- mkdir build &&
- cd build &&
+ cd build
meson --prefix=/usr \
- .. &&
+ -Dopus=enabled \
+ -Ddocumentation=enabled \
+ -Dlibmpdclient=enabled \
+ -Dpipewire=enabled \
+ -Dwavpack=enabled \
+ -Dffmpeg=enabled \
+ .. &&
+
ninja
}
package () {
DESTDIR=$PKG_DEST ninja install
+ cd ..
+ install -d $PKG_DEST/etc
+ sed -e 's:\#user.*:user\t\t"mpd":' \
+ -e 's:\#log_file.*:log_file\t\t"syslog":' \
+ doc/mpdconf.example > $PKG_DEST/etc/mpd.conf
+ install -m755 -D mpd.initd \
+ "$PKG_DEST"/etc/init.d/mpd
+ install -m644 -D mpd.confd \
+ "$PKG_DEST"/etc/conf.d/mpd
+ install -d -m775 \
+ "$PKG_DEST"/var/run/mpd \
+ "$PKG_DEST"/var/log/mpd \
+ "$PKG_DEST"/var/lib/mpd \
+ "$PKG_DEST"/var/lib/mpd/playlists \
+ "$PKG_DEST"/var/lib/mpd/music
}
diff --git a/repo/media/soxr.xibuild b/repo/media/soxr.xibuild
new file mode 100644
index 0000000..48b1e3b
--- /dev/null
+++ b/repo/media/soxr.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="soxr"
+DESC="High quality, one-dimensional sample-rate conversion library"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=0.1.3
+SOURCE="https://sourceforge.net/projects/soxr/files/soxr-$PKG_VER-Source.tar.xz/download"
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/media/v4l-utils.xibuild b/repo/media/v4l-utils.xibuild
new file mode 100644
index 0000000..bd40b23
--- /dev/null
+++ b/repo/media/v4l-utils.xibuild
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+NAME="v4l-utils"
+DESC="Userspace tools and conversion library for Video 4 Linux"
+
+MAKEDEPS="make "
+DEPS="alsa-lib libjpeg-turbo argp-standalone eudev "
+
+PKG_VER=1.22.1
+SOURCE="https://linuxtv.org/downloads/v4l-utils/v4l-utils-$PKG_VER.tar.bz2"
+ADDITIONAL="fix_parse_next_subopt.patch types.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ ./configure \
+ --prefix=/usr
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --enable-libdvbv5
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/vidstab.xibuild b/repo/media/vidstab.xibuild
new file mode 100644
index 0000000..cd0e5cf
--- /dev/null
+++ b/repo/media/vidstab.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="vidstab"
+DESC="Video stabilization library"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=1.1.0
+SOURCE="https://github.com/georgmartius/vid.stab/archive/v$PKG_VER/vid.stab-v$PKG_VER.tar.gz"
+
+build () {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/media/x264.xibuild b/repo/media/x264.xibuild
new file mode 100644
index 0000000..5c1d375
--- /dev/null
+++ b/repo/media/x264.xibuild
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+NAME="x264"
+DESC="Free library for encoding H264/AVC video streams"
+
+MAKEDEPS="make libx11 perl nasm sbase bash"
+DEPS="musl "
+
+PKG_VER=0.164.r3081.19856cc
+gitrev=master
+SOURCE="https://code.videolan.org/videolan/x264.git"
+BRANCH=19856cc41ad11e434549fb3cc6a019e645ce1efe
+
+ADDITIONAL="
+ oclobj.h
+"
+
+prepare () {
+ echo '' > ./tools/cltostr.sh
+ mv oclobj.h common/oclobj.h
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --enable-shared \
+ --enable-pic \
+ --enable-lto \
+ --disable-avs
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST bindir=/usr/bin libdir=/usr/lib includedir=/usr/include install-lib-shared install-cli
+}
diff --git a/repo/media/x265.xibuild b/repo/media/x265.xibuild
new file mode 100644
index 0000000..69bd3e2
--- /dev/null
+++ b/repo/media/x265.xibuild
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+NAME="x265"
+DESC="Open Source H265/HEVC video encoder"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=3.5
+SOURCE="https://bitbucket.org/multicoreware/x265_git/downloads/x265_$PKG_VER.tar.gz"
+
+build () {
+ # CMAKE_BUILD_TYPE - Don't change to None! This is a video encoder,
+ # performance is the most important.
+ cmake -B build-12 -S source -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DHIGH_BIT_DEPTH=TRUE \
+ -DMAIN12=TRUE \
+ -DEXPORT_C_API=FALSE \
+ -DENABLE_CLI=FALSE \
+ -DENABLE_SHARED=FALSE
+ cmake --build build-12
+
+ cmake -B build-10 -S source -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DHIGH_BIT_DEPTH=TRUE \
+ -DEXPORT_C_API=FALSE \
+ -DENABLE_CLI=FALSE \
+ -DENABLE_SHARED=FALSE
+ cmake --build build-10
+
+ cmake -B build -S source -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DEXTRA_LIB='x265_main10.a;x265_main12.a' \
+ -DEXTRA_LINK_FLAGS='-L.' \
+ -DLINKED_10BIT=TRUE \
+ -DLINKED_12BIT=TRUE
+ ln -s ../build-10/libx265.a build/libx265_main10.a
+ ln -s ../build-12/libx265.a build/libx265_main12.a
+ cmake --build build
+
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+
diff --git a/repo/media/xvidcore.xibuild b/repo/media/xvidcore.xibuild
new file mode 100644
index 0000000..6ffce5a
--- /dev/null
+++ b/repo/media/xvidcore.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+NAME="xvidcore"
+DESC="XviD is an open source MPEG-4 video codec"
+
+MAKEDEPS="make "
+DEPS="musl "
+
+PKG_VER=1.3.7
+SOURCE="https://downloads.xvid.com/downloads/xvidcore-$PKG_VER.tar.bz2"
+
+build () {
+ cd build/generic
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-assembly
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}