commit 57640d68ca0de151cc448b157e50ad5da0744ff9
parent 2a1f71fd73e2bf323349a46683220b4095b966d0
Author: aabacchus <ben@bvnf.space>
Date: Sun, 20 Nov 2022 02:42:01 +0000
libsx: 2.08-4
Diffstat:
7 files changed, 129 insertions(+), 0 deletions(-)
diff --git a/libsx/build b/libsx/build
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+patch -p1 < fix_build.patch
+
+for f in string_entry.c button.c dialog.c drawing.c drawingP.h grabpix.c list.c \
+ menu.c scrollbar.c toggle.c; do
+ sed 's/Xaw3dxft/Xaw/g' "src/$f" >_
+ mv _ "src/$f"
+done
+
+./configure \
+ --prefix=/usr
+
+make -j1
+make DESTDIR="$1" install
+
+mkdir -p \
+ "$1/usr/share/docs/libsx/html" \
+ "$1/usr/share/docs/libsx/text"
+cp -R docs/* "$1/usr/share/docs/libsx/"
diff --git a/libsx/checksums b/libsx/checksums
@@ -0,0 +1,2 @@
+015cd93dcae6318971828cb4bc76811183551a7b6650da991f322a832173edfe
+c939f995b3e5af83bf31681c468e7777622e1bbb977d9a321d943c5db1a1841e
diff --git a/libsx/depends b/libsx/depends
@@ -0,0 +1,3 @@
+libX11
+libXaw
+libXt
diff --git a/libsx/manifest b/libsx/manifest
@@ -0,0 +1,71 @@
+/var/db/kiss/installed/libsx/version
+/var/db/kiss/installed/libsx/sources
+/var/db/kiss/installed/libsx/patches/fix_build.patch
+/var/db/kiss/installed/libsx/patches/
+/var/db/kiss/installed/libsx/manifest
+/var/db/kiss/installed/libsx/depends
+/var/db/kiss/installed/libsx/checksums
+/var/db/kiss/installed/libsx/build
+/var/db/kiss/installed/libsx/
+/var/db/kiss/installed/
+/var/db/kiss/
+/var/db/
+/var/
+/usr/share/libsx/dialogs.fr
+/usr/share/libsx/dialogs.en
+/usr/share/libsx/dialogs.de
+/usr/share/libsx/
+/usr/share/docs/libsx/text/windows.doc
+/usr/share/docs/libsx/text/toggle.doc
+/usr/share/docs/libsx/text/text_edit.doc
+/usr/share/docs/libsx/text/string_entry.doc
+/usr/share/docs/libsx/text/scrollbar.doc
+/usr/share/docs/libsx/text/popups.doc
+/usr/share/docs/libsx/text/misc.doc
+/usr/share/docs/libsx/text/menu.doc
+/usr/share/docs/libsx/text/list.doc
+/usr/share/docs/libsx/text/libsx_intro
+/usr/share/docs/libsx/text/label.doc
+/usr/share/docs/libsx/text/general.libsx.doc
+/usr/share/docs/libsx/text/functions.doc
+/usr/share/docs/libsx/text/form.doc
+/usr/share/docs/libsx/text/font.doc
+/usr/share/docs/libsx/text/drawing.doc
+/usr/share/docs/libsx/text/draw_area.doc
+/usr/share/docs/libsx/text/color.doc
+/usr/share/docs/libsx/text/button.doc
+/usr/share/docs/libsx/text/
+/usr/share/docs/libsx/html/windows.html
+/usr/share/docs/libsx/html/toggle.html
+/usr/share/docs/libsx/html/text_edit.html
+/usr/share/docs/libsx/html/string_entry.html
+/usr/share/docs/libsx/html/scrollbar.html
+/usr/share/docs/libsx/html/popups.html
+/usr/share/docs/libsx/html/misc.html
+/usr/share/docs/libsx/html/menu.html
+/usr/share/docs/libsx/html/local.libsx.html
+/usr/share/docs/libsx/html/list.html
+/usr/share/docs/libsx/html/libsx.html
+/usr/share/docs/libsx/html/label.html
+/usr/share/docs/libsx/html/general.libsx.html
+/usr/share/docs/libsx/html/functions.html
+/usr/share/docs/libsx/html/form.html
+/usr/share/docs/libsx/html/font.html
+/usr/share/docs/libsx/html/drawing.html
+/usr/share/docs/libsx/html/draw_area.html
+/usr/share/docs/libsx/html/color.html
+/usr/share/docs/libsx/html/button.html
+/usr/share/docs/libsx/html/
+/usr/share/docs/libsx/
+/usr/share/docs/
+/usr/share/
+/usr/lib/pkgconfig/libsx.pc
+/usr/lib/pkgconfig/
+/usr/lib/libsx.so.0.0.0
+/usr/lib/libsx.so.0
+/usr/lib/libsx.so
+/usr/lib/libsx.a
+/usr/lib/
+/usr/include/libsx.h
+/usr/include/
+/usr/
diff --git a/libsx/patches/fix_build.patch b/libsx/patches/fix_build.patch
@@ -0,0 +1,30 @@
+diff --git a/src/colorsel.c b/src/colorsel.c
+index f4ea7be..7ded392 100644
+--- a/src/colorsel.c
++++ b/src/colorsel.c
+@@ -32,8 +32,6 @@ char *SX_ColorSelector_Label[] = {
+ #define BOX_WIDTH 120
+ #define BOX_HEIGHT 120
+
+-extern int strcasecmp __P ((__const char *__s1, __const char *__s2));
+-extern int lstat __P ((__const char *__file, struct stat *__buf));
+ extern float __dir__;
+ static int whichdir;
+
+diff --git a/src/xstuff.h b/src/xstuff.h
+index bd98009..641647f 100644
+--- a/src/xstuff.h
++++ b/src/xstuff.h
+@@ -1,9 +1,10 @@
+ #include <X11/Intrinsic.h>
++#include <X11/IntrinsicP.h>
+ #include <X11/StringDefs.h>
+ #include <X11/Xutil.h>
+ #include <X11/Shell.h>
+-#include <X11/Xaw3dxft/Form.h>
+-#include <X11/Xaw3dxft/Label.h>
++#include <X11/Xaw/Form.h>
++#include <X11/Xaw/Label.h>
+
+ #ifdef OPENGL_SUPPORT
+ #include <GL/gl.h>
diff --git a/libsx/sources b/libsx/sources
@@ -0,0 +1,2 @@
+https://salsa.debian.org/science-team/libsx/-/archive/debian/2.08-4/libsx-debian-2.08-4.tar.gz
+patches/fix_build.patch
diff --git a/libsx/version b/libsx/version
@@ -0,0 +1 @@
+2.08-4 1