summaryrefslogtreecommitdiff
path: root/repo/media
diff options
context:
space:
mode:
Diffstat (limited to 'repo/media')
-rw-r--r--repo/media/alsa-plugins/pulseaudio-alsa.xibuild9
-rw-r--r--repo/media/gegl/gegl.xibuild25
-rw-r--r--repo/media/giflib/giflib-restore-deprecated-functions.patch17
-rw-r--r--repo/media/giflib/giflib.xibuild19
-rw-r--r--repo/media/libcanberra/libcanberra-gtk3.xibuild13
-rw-r--r--repo/media/libid3tag/libid3tag.xibuild23
-rw-r--r--repo/media/mypaint-brushes/mypaint-brushes.xibuild27
-rw-r--r--repo/media/poppler-data/poppler-data.xibuild16
-rw-r--r--repo/media/poppler/poppler-glib.xibuild10
-rw-r--r--repo/media/poppler/poppler.xibuild2
10 files changed, 160 insertions, 1 deletions
diff --git a/repo/media/alsa-plugins/pulseaudio-alsa.xibuild b/repo/media/alsa-plugins/pulseaudio-alsa.xibuild
new file mode 100644
index 0000000..cf69842
--- /dev/null
+++ b/repo/media/alsa-plugins/pulseaudio-alsa.xibuild
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+DESC="Config files required for alsa to work with pulseaudio"
+DESP="alsa-plugins"
+
+package () {
+ mkdir -p $PKG_DEST/etc/alsa/conf.d
+ ln -s /usr/share/alsa.conf.d/99-pulseaudio-default.conf $PKG_DEST/etc/alsa/conf.d/
+}
diff --git a/repo/media/gegl/gegl.xibuild b/repo/media/gegl/gegl.xibuild
new file mode 100644
index 0000000..a99fc6f
--- /dev/null
+++ b/repo/media/gegl/gegl.xibuild
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+NAME="gegl"
+DESC="Graph based image processing framework"
+
+# TODO onlly install the fonts actually needed
+
+MAKEDEPS="encodings font-adobe-utopia-type1 font-alias font-bh-ttf font-bh-type1 fontconfig font-ibm-type1 font-misc-ethiopic font-util font-xfree86-type1 meson ninja graphviz libexecinfo"
+DEPS="babl cairo ffmpeg4 gdk-pixbuf glib json-glib lcms2 intltool libjpeg-turbo libpng libraw librsvg libwebp musl pango tiff libexecinfo"
+
+PKG_VER=0.4.36
+SOURCE="https://download.gimp.org/pub/gegl/${PKG_VER%.*}/gegl-${PKG_VER}.tar.xz"
+
+build () {
+ mkdir build &&
+ cd build &&
+ export LDFLAGS="$LDFLAGS -lexecinfo"
+ meson --prefix=/usr \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
diff --git a/repo/media/giflib/giflib-restore-deprecated-functions.patch b/repo/media/giflib/giflib-restore-deprecated-functions.patch
new file mode 100644
index 0000000..770cb16
--- /dev/null
+++ b/repo/media/giflib/giflib-restore-deprecated-functions.patch
@@ -0,0 +1,17 @@
+Source: Gentoo, written by Gary Stein
+Upstream: No
+Reason: restores deprecated GifQuantizeBuffer which some packages (notably libgdiplus) still use
+--- a/Makefile 2019-03-28 14:57:23.000000000 -0400
++++ b/Makefile 2019-03-31 23:38:20.700603561 -0400
+@@ -67,8 +67,8 @@
+
+ $(UTILS):: libgif.a libutil.a
+
+-libgif.so: $(OBJECTS) $(HEADERS)
+- $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS)
++libgif.so: $(OBJECTS) $(HEADERS) $(UOBJECTS)
++ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS) $(UOBJECTS)
+
+ libgif.a: $(OBJECTS) $(HEADERS)
+ $(AR) rcs libgif.a $(OBJECTS)
+
diff --git a/repo/media/giflib/giflib.xibuild b/repo/media/giflib/giflib.xibuild
new file mode 100644
index 0000000..3206a35
--- /dev/null
+++ b/repo/media/giflib/giflib.xibuild
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+NAME="giflib"
+DESC="A library for reading and writing GIF images"
+
+MAKEDEPS="make "
+DEPS="musl "
+
+PKG_VER=5.2.1
+SOURCE="https://downloads.sourceforge.net/sourceforge/giflib/giflib-$PKG_VER.tar.gz"
+ADDITIONAL="giflib-restore-deprecated-functions.patch "
+
+build () {
+ make PREFIX=/usr
+}
+
+package () {
+ make PREFIX=/usr DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/libcanberra/libcanberra-gtk3.xibuild b/repo/media/libcanberra/libcanberra-gtk3.xibuild
new file mode 100644
index 0000000..c597390
--- /dev/null
+++ b/repo/media/libcanberra/libcanberra-gtk3.xibuild
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+DESC="GTK+3.0 bindings for libcanberra"
+DEPS="glib gtk3 libcanberra libx11 musl"
+
+package () {
+ add_from_main usr/bin/canberra-gtk-play
+ add_from_main usr/lib/gtk-3.0/*
+ add_from_main usr/lib/gnome-settings-daemon-3.0/*
+ add_from_main usr/lib/libcanberra-gtk3.so.*
+ add_from_main usr/share/gdm/*
+ add_from_main usr/share/gnome/*
+}
diff --git a/repo/media/libid3tag/libid3tag.xibuild b/repo/media/libid3tag/libid3tag.xibuild
new file mode 100644
index 0000000..696d19f
--- /dev/null
+++ b/repo/media/libid3tag/libid3tag.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="libid3tag"
+DESC="MAD ID3 tagger for MP3 audio files"
+
+MAKEDEPS="cmake "
+DEPS="musl "
+
+PKG_VER=0.16.1
+SOURCE="https://github.com/tenacityteam/libid3tag/archive/refs/tags/$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/mypaint-brushes/mypaint-brushes.xibuild b/repo/media/mypaint-brushes/mypaint-brushes.xibuild
new file mode 100644
index 0000000..8031c8c
--- /dev/null
+++ b/repo/media/mypaint-brushes/mypaint-brushes.xibuild
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+NAME="mypaint-brushes"
+DESC="default MyPaint brushes"
+
+MAKEDEPS="make "
+DEPS="pkg-config "
+
+PKG_VER=1.3.1
+SOURCE="https://github.com/mypaint/mypaint-brushes/releases/download/v$PKG_VER/mypaint-brushes-$PKG_VER.tar.xz"
+
+prepare () {
+ autoreconf -fi
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/media/poppler-data/poppler-data.xibuild b/repo/media/poppler-data/poppler-data.xibuild
new file mode 100644
index 0000000..cc7d29c
--- /dev/null
+++ b/repo/media/poppler-data/poppler-data.xibuild
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+NAME="poppler-data"
+DESC="encoding data for the poppler PDF rendering library"
+
+MAKEDEPS="make "
+DEPS="pkg-config "
+
+PKG_VER=0.4.11
+SOURCE="https://poppler.freedesktop.org/poppler-data-$PKG_VER.tar.gz"
+
+package () {
+ make prefix=/usr DESTDIR=$PKG_DEST install
+ mkdir -p $PKG_DEST/usr/lib
+ mv $PKG_DEST/usr/share/pkgconfig $PKG_DEST/usr/lib/pkgconfig
+}
diff --git a/repo/media/poppler/poppler-glib.xibuild b/repo/media/poppler/poppler-glib.xibuild
new file mode 100644
index 0000000..d6f31bf
--- /dev/null
+++ b/repo/media/poppler/poppler-glib.xibuild
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+NAME="poppler-glib"
+DESC="Glib wrapper for poppler"
+DEPS="cairo freetype2 glib musl poppler"
+
+package () {
+ add_from_main "usr/lib/libpoppler-glib.so*" \
+ "usr/lib/girepository*"
+}
diff --git a/repo/media/poppler/poppler.xibuild b/repo/media/poppler/poppler.xibuild
index 181fc75..9c10ee1 100644
--- a/repo/media/poppler/poppler.xibuild
+++ b/repo/media/poppler/poppler.xibuild
@@ -6,7 +6,7 @@ DESC="PDF rendering library based on xpdf 3.0"
MAKEDEPS="cmake "
DEPS="fontconfig freetype2 lcms2 libjpeg-turbo libpng musl openjpeg tiff "
-PKG_VER=22.03.0
+PKG_VER=22.05.0
SOURCE="https://poppler.freedesktop.org/poppler-$PKG_VER.tar.xz"
ADDITIONAL="dont-enforce-build-type.patch "