summaryrefslogtreecommitdiff
path: root/repo/babl
diff options
context:
space:
mode:
Diffstat (limited to 'repo/babl')
-rw-r--r--repo/babl/babl.xibuild26
-rw-r--r--repo/babl/meson-0.60.patch12
2 files changed, 38 insertions, 0 deletions
diff --git a/repo/babl/babl.xibuild b/repo/babl/babl.xibuild
new file mode 100644
index 0000000..5c73c51
--- /dev/null
+++ b/repo/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="http://download.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/babl/meson-0.60.patch b/repo/babl/meson-0.60.patch
new file mode 100644
index 0000000..5ac3862
--- /dev/null
+++ b/repo/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))