summaryrefslogtreecommitdiffstats
path: root/graphics-libs
diff options
context:
space:
mode:
authorIsmael Luceno2022-03-18 14:12:03 +0100
committerIsmael Luceno2022-03-18 14:35:42 +0100
commit4b794fff9b7e5536d5a9f9ebbdd142048342a340 (patch)
tree0b59b9112cd4dcf3e34d44d75311f166d923e618 /graphics-libs
parente6620f36549cf8e372561df5bbd73a073ab6034b (diff)
zimg: new spell, Scaling, colorspace conversion, and dithering library
Diffstat (limited to 'graphics-libs')
-rwxr-xr-xgraphics-libs/zimg/BUILD2
-rwxr-xr-xgraphics-libs/zimg/DEPENDS2
-rwxr-xr-xgraphics-libs/zimg/DETAILS20
-rw-r--r--graphics-libs/zimg/HISTORY2
-rwxr-xr-xgraphics-libs/zimg/PRE_BUILD6
5 files changed, 32 insertions, 0 deletions
diff --git a/graphics-libs/zimg/BUILD b/graphics-libs/zimg/BUILD
new file mode 100755
index 0000000000..448e746a60
--- /dev/null
+++ b/graphics-libs/zimg/BUILD
@@ -0,0 +1,2 @@
+OPTS+=' --disable-static' &&
+default_build
diff --git a/graphics-libs/zimg/DEPENDS b/graphics-libs/zimg/DEPENDS
new file mode 100755
index 0000000000..9e4b57ad52
--- /dev/null
+++ b/graphics-libs/zimg/DEPENDS
@@ -0,0 +1,2 @@
+depends autoconf &&
+depends automake
diff --git a/graphics-libs/zimg/DETAILS b/graphics-libs/zimg/DETAILS
new file mode 100755
index 0000000000..c1d04dc54b
--- /dev/null
+++ b/graphics-libs/zimg/DETAILS
@@ -0,0 +1,20 @@
+ SPELL=zimg
+ VERSION=3.0.3
+ SOURCE="zimg-release-${VERSION}.tar.gz"
+ WEB_SITE="https://github.com/sekrit-twc/zimg"
+ SOURCE_URL[0]="$WEB_SITE/archive/refs/tags/${SOURCE#zimg-}"
+ SOURCE_HASH=sha512:859c625599b412ecdd72c73d7618f6c7f9760337f7c8aec69fb97e30e1e65e4da51f6cbc5a2c8ad58cb7fbccdccb5322b95f24166c0204da6a3a8cd862cfb2ab
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SOURCE%.tar.gz}"
+ LICENSE[0]="WTFPL"
+ ENTERED=20220318
+ KEYWORDS=""
+ SHORT="Scaling, colorspace conversion, and dithering library"
+cat << EOF
+The zimg library implements the commonly required image processing basics of
+scaling, colorspace conversion, and depth conversion. A simple API enables
+conversion between any supported formats to operate with minimal knowledge from
+the programmer. All library routines were designed from the ground-up with
+correctness, flexibility, and thread-safety as first priorities. Allocation,
+buffering, and I/O are cleanly separated from processing, allowing the
+programmer to adapt zimg to many scenarios.
+EOF
diff --git a/graphics-libs/zimg/HISTORY b/graphics-libs/zimg/HISTORY
new file mode 100644
index 0000000000..83061ff467
--- /dev/null
+++ b/graphics-libs/zimg/HISTORY
@@ -0,0 +1,2 @@
+2022-03-18 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, PRE_BUILD: spell created
diff --git a/graphics-libs/zimg/PRE_BUILD b/graphics-libs/zimg/PRE_BUILD
new file mode 100755
index 0000000000..8944b33ad4
--- /dev/null
+++ b/graphics-libs/zimg/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+autoreconf -i &&
+# disable instalation of libtool pseudo-libraries
+sed -E -i '/^[\t ]*(func_show_|$run )eval "[$]install_prog [$]instname /d' \
+ ltmain.sh