commit eb5a76363bea188f36f9d96f70c9ef1ef307b469
parent 3d3ba271f332d3f389076bc3a29a15ab8b9558ad
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 24 Jun 2014 17:45:48 +0200
add xloadimage
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
4 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/xloadimage/checksums b/xloadimage/checksums
@@ -0,0 +1 @@
+2c91699c8ef07c101ff9b458708ace01cab2979a5e88cf8a4e47ec971f7b4cb5571108afa3e53271ade4e8ccfdcf72ef9e2e09edfc0be6b8afaba50847aa0586 xloadimage.4.1.tar.gz
diff --git a/xloadimage/v.mk b/xloadimage/v.mk
@@ -0,0 +1 @@
+v = 4.1
diff --git a/xloadimage/xloadimage-errno.patch b/xloadimage/xloadimage-errno.patch
@@ -0,0 +1,11 @@
+--- img.c.old 2014-06-15 00:25:18.866666899 +0200
++++ img.c 2014-06-15 00:25:27.498666546 +0200
+@@ -16,6 +16,8 @@
+ #include <math.h>
+ #include "image.h"
+
++#include <errno.h>
++
+ extern int errno;
+
+ #define TRUE 1
diff --git a/xloadimage/xloadimage.mk b/xloadimage/xloadimage.mk
@@ -0,0 +1,28 @@
+TARG = xloadimage
+DEPS = xorglibxcb xorglibx11 xorglibxau xorglibxdmcp xorgxproto
+
+INSTALL_BIN = \
+ xloadimage \
+ uufilter
+
+INSTALL_MAN1 = xloadimage.1 uufilter.1
+INSTALL_SYMLINK = \
+ xloadimage /bin/xsetbg
+
+<$mkbuild/mk.common
+
+xloadimage:QV:
+ find -name "*.[ch]" -exec sed 's@<varargs.h>@<stdarg.h>@g' -i {} \;
+ #
+ export CFLAGS="$CFLAGS $DEPS_CFLAGS"
+ export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
+ make -j$nprocs \
+ CONFIG_STYLE="-skip" \
+ CC="${CC}" \
+ CC_FLAGS="$CFLAGS" \
+ SYS_LIBS="$LDFLAGS" \
+ AR="${AR}" \
+ RANLIB="${RANLIB}"
+ # proper filename.
+ cp xloadimage.man xloadimage.1
+ cp uufilter.man uufilter.1