summaryrefslogtreecommitdiff
path: root/repo/media/babl
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/media/babl
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/media/babl')
-rw-r--r--repo/media/babl/babl.xibuild26
-rw-r--r--repo/media/babl/meson-0.60.patch12
2 files changed, 38 insertions, 0 deletions
diff --git a/repo/media/babl/babl.xibuild b/repo/media/babl/babl.xibuild
new file mode 100644
index 0000000..f786806
--- /dev/null
+++ b/repo/media/babl/babl.xibuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+NAME="babl"
+DESC="Dynamic, any to any, pixel format conversion library"
+
+MAKEDEPS="meson ninja "
+DEPS="lcms2 "
+
+PKG_VER=0.1.92
+SOURCE="https://ftp.gimp.org/pub/babl/${PKG_VER%.*}/babl-$PKG_VER.tar.xz"
+ADDITIONAL="meson-0.60.patch "
+
+prepare () {
+ apply_patches
+}
+
+build () {
+ cd build &&
+ meson --prefix=/usr \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
diff --git a/repo/media/babl/meson-0.60.patch b/repo/media/babl/meson-0.60.patch
new file mode 100644
index 0000000..5ac3862
--- /dev/null
+++ b/repo/media/babl/meson-0.60.patch
@@ -0,0 +1,12 @@
+--- a/meson.build
++++ b/meson.build
+@@ -55,8 +55,7 @@
+ stability_version_number = (major_version != 0 ? minor_version : micro_version)
+ stable = (stability_version_number % 2 == 0)
+
+-conf.set10('BABL_UNSTABLE', not stable, Description:
+- 'Define to 1 if this is an unstable version of BABL.')
++conf.set10('BABL_UNSTABLE', not stable)
+
+ conf.set ('BABL_MAJOR_VERSION', '@0@'.format(major_version))
+ conf.set ('BABL_MINOR_VERSION', '@0@'.format(minor_version))