summaryrefslogtreecommitdiff
path: root/repo/media
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-04-17 22:07:52 +0100
committerdavidovski <david@davidovski.xyz>2022-04-17 22:07:52 +0100
commitc35d083dc525e223b085ec00e6863ea6eafb003c (patch)
tree5bbe25b4f92cd1821c8cbbefed9c19de6e42b98e /repo/media
parent7cc715c1249422ddf91987be64a35eef43e3e62d (diff)
updated musl
Diffstat (limited to 'repo/media')
-rw-r--r--repo/media/libjpeg-turbo.xibuild25
-rw-r--r--repo/media/libmpdclient.xibuild20
-rw-r--r--repo/media/libwebp.xibuild33
-rw-r--r--repo/media/mpd.xibuild47
-rw-r--r--repo/media/pulsemixer.xibuild19
-rw-r--r--repo/media/tiff.xibuild32
-rw-r--r--repo/media/wavpack.xibuild25
7 files changed, 201 insertions, 0 deletions
diff --git a/repo/media/libjpeg-turbo.xibuild b/repo/media/libjpeg-turbo.xibuild
new file mode 100644
index 0000000..5840097
--- /dev/null
+++ b/repo/media/libjpeg-turbo.xibuild
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+NAME="libjpeg-turbo"
+DESC="Accelerated baseline JPEG compression and decompression library"
+
+MAKEDEPS=""
+DEPS="musl "
+
+PKG_VER=2.1.3
+SOURCE="https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-$PKG_VER.tar.gz"
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DWITH_JPEG8=1 \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+
diff --git a/repo/media/libmpdclient.xibuild b/repo/media/libmpdclient.xibuild
new file mode 100644
index 0000000..a80ad57
--- /dev/null
+++ b/repo/media/libmpdclient.xibuild
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+NAME="libmpdclient"
+DESC="An asynchronous API library for interfacing MPD in the C, C++ & Objective C languages"
+
+MAKEDEPS="meson ninja "
+DEPS="musl"
+
+PKG_VER=2.19
+SOURCE="https://www.musicpd.org/download/libmpdclient/${PKG_VER%.*}/libmpdclient-$PKG_VER.tar.xz"
+
+build () {
+ cd build &&
+ meson --prefix=/usr .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
diff --git a/repo/media/libwebp.xibuild b/repo/media/libwebp.xibuild
new file mode 100644
index 0000000..ff84576
--- /dev/null
+++ b/repo/media/libwebp.xibuild
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+NAME="libwebp"
+DESC="Libraries for working with WebP images"
+
+MAKEDEPS="make "
+DEPS="musl "
+
+PKG_VER=1.2.2
+SOURCE="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$PKG_VER.tar.gz"
+
+prepare() {
+ ./autogen.sh
+}
+
+build () {
+ ./configure \
+ --prefix=/usr
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --enable-libwebpmux \
+ --enable-libwebpdemux \
+ --enable-libwebpdecoder \
+ --disable-tiff
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ mkdir -p $PKG_DEST/usr/share/doc/libwebp
+ install -Dm644 PATENTS README $PKG_DEST/usr/share/doc/libwebp
+}
diff --git a/repo/media/mpd.xibuild b/repo/media/mpd.xibuild
new file mode 100644
index 0000000..9229a01
--- /dev/null
+++ b/repo/media/mpd.xibuild
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+NAME="mpd"
+DESC="Music daemon that plays MP3, FLAC, Ogg Vorbis files and Audio CDs"
+
+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"
+
+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 () {
+ cd build
+ meson --prefix=/usr \
+ -Dopus=enabled \
+ -Ddocumentation=enabled \
+ -Dlibmpdclient=enabled \
+ -Dwavpack=enabled \
+ -Dpipewire=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/pulsemixer.xibuild b/repo/media/pulsemixer.xibuild
new file mode 100644
index 0000000..79e7a74
--- /dev/null
+++ b/repo/media/pulsemixer.xibuild
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+NAME="pulsemixer"
+DESC="CLI and curses mixer for PulseAudio"
+
+MAKEDEPS=""
+DEPS="pulseaudio
+python"
+
+PKG_VER=1.5.1
+SOURCE="https://github.com/GeorgeFilipkin/pulsemixer/archive/$PKG_VER.tar.gz"
+
+build () {
+ python3 setup.py build
+}
+
+package () {
+ python3 setup.py install --prefix=/usr --root=$PKG_DEST
+}
diff --git a/repo/media/tiff.xibuild b/repo/media/tiff.xibuild
new file mode 100644
index 0000000..544116b
--- /dev/null
+++ b/repo/media/tiff.xibuild
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+NAME="tiff"
+DESC="Provides support for the Tag Image File Format or TIFF"
+
+MAKEDEPS=""
+DEPS="musl xz zlib zstd "
+
+PKG_VER=4.3.0
+SOURCE="https://gitlab.com/libtiff/libtiff/-/archive/v$PKG_VER/libtiff-v$PKG_VER.tar.gz"
+ADDITIONAL="CVE-2018-12900.patch "
+
+prepare () {
+ apply_patches
+ autoreconf -fi
+}
+
+build () {
+ ./configure \
+ --prefix=/usr
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --enable-cxx
+
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
diff --git a/repo/media/wavpack.xibuild b/repo/media/wavpack.xibuild
new file mode 100644
index 0000000..eb9ccfc
--- /dev/null
+++ b/repo/media/wavpack.xibuild
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+NAME="wavpack"
+DESC="Audio compression format with lossless, lossy, and hybrid compression modes"
+
+MAKEDEPS="make "
+DEPS="musl"
+
+PKG_VER=5.4.0
+SOURCE="http://www.wavpack.com/wavpack-$PKG_VER.tar.xz"
+
+build () {
+ ./configure \
+ --prefix=/usr
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}