commit ab11fec

hovercats  ·  2024-02-03 12:21:42 +0000 UTC
parent 745e02c
add packages and changes to get bgs working and deps for xprop.
52 files changed,  +490, -9
+12, -0
 1@@ -0,0 +1,12 @@
 2+#!/bin/sh -e
 3+
 4+# shellcheck disable=SC2016
 5+
 6+# dont use xinerama
 7+sed -e 's/\${XINERAMALIBS}//' \
 8+	-e 's/\${XINERAMAFLAGS}//' \
 9+	config.mk > _
10+mv -f _ config.mk
11+
12+make
13+make DESTDIR="$1" PREFIX=/ install
+1, -0
1@@ -0,0 +1 @@
2+0938ddff3af7d50cc02bb4ef2f1f2fb2a2076161ad961b0d897695bf8a21d0b158
+7, -0
1@@ -0,0 +1,7 @@
2+freetype
3+imlib2
4+libX11
5+libXau
6+libXext
7+libpng
8+libxcb
+1, -0
1@@ -0,0 +1 @@
2+https://github.com/Gottox/bgs/archive/958acea074e5d8f3566289db37a9db236c05d7df.tar.gz
+1, -0
1@@ -0,0 +1 @@
2+958acea074e5d8f3566289db37a9db236c05d7df 1
+63, -0
 1@@ -0,0 +1,63 @@
 2+cmake
 3+________________________________________________________________________________
 4+
 5+CMake is cross-platform free and open-source software for build automation,
 6+testing, packaging and installation of software by using a compiler-independent
 7+method. CMake is not a build system but rather it generates another system's
 8+build files. It supports directory hierarchies and applications that depend on
 9+multiple libraries. It is used in conjunction with native build environments
10+such as Make, Qt Creator, Ninja, Android Studio, Apple's Xcode, and Microsoft
11+Visual Studio. [0]
12+
13+Upstream: https://cmake.org/
14+
15+
16+[000] Index
17+________________________________________________________________________________
18+
19+* Installation ........................................................... [001]
20+* Setup .................................................................. [002]
21+* Usage .................................................................. [003]
22+* References ............................................................. [004]
23+
24+
25+[001] Installation
26+________________________________________________________________________________
27+
28++------------------------------------------------------------------------------+
29+|                                                                              |
30+|  $ kiss b cmake                                                              |
31+|                                                                              |
32++------------------------------------------------------------------------------+
33+
34+
35+[002] Setup
36+________________________________________________________________________________
37+
38+Cmake supports to output methods on Linux; 'GNU Makefiles' and 'Ninja' with the
39+former being the default value. These values are set via the CMAKE_GENERATOR
40+environment variable.
41+
42+The distribution recommends this value be set to 'Ninja' as it offers a
43+performance improvement over make and works better with ccache. Set the
44+following environment variable in your .profile or shell runtime file.
45+
46++------------------------------------------------------------------------------+
47+|                                                                              |
48+|  $ export CMAKE_GENERATOR=Ninja                                              |
49+|                                                                              |
50++------------------------------------------------------------------------------+
51+
52+
53+[003] Usage
54+________________________________________________________________________________
55+
56+Refer to the command help output and online documentation. This package does
57+not yet provide manual pages.
58+
59+
60+[004] References
61+________________________________________________________________________________
62+
63+[0] https://en.wikipedia.org/wiki/CMake
64+
+43, -0
 1@@ -0,0 +1,43 @@
 2+#!/bin/sh -e
 3+
 4+export DESTDIR="$1"
 5+
 6+# stolen from sabotage linux. should fix linking issues with static netbsd-curses libs
 7+sed 's,curses_version,baudrate,' Source/Checks/Curses/CheckCurses.c > _
 8+mv -f _ Source/Checks/Curses/CheckCurses.c
 9+sed 's,defined(HAVE_LIBCRYPTO),0,' Utilities/cmlibarchive/libarchive/archive_hmac.c > _
10+mv -f _ Utilities/cmlibarchive/libarchive/archive_hmac.c
11+
12+if kiss l cmake; then
13+    cmake -B build \
14+        -DCMAKE_INSTALL_PREFIX=/ \
15+        -DCMAKE_BUILD_TYPE=Release \
16+        -DCMAKE_USE_SYSTEM_CURL=False \
17+        -DCMAKE_USE_SYSTEM_EXPAT=True \
18+        -DCMAKE_USE_SYSTEM_ZLIB=True \
19+        -DCMAKE_USE_SYSTEM_BZIP2=True \
20+        -DCMAKE_USE_SYSTEM_NGHTTP2=False \
21+        -DBUILD_CursesDialog=OFF \
22+        -DBUILD_TESTING=OFF
23+
24+    cmake --build   build
25+    cmake --install build
26+
27+else
28+    ./configure \
29+        --prefix=/ \
30+        --no-system-curl \
31+        --system-expat \
32+        --system-zlib \
33+        --system-bzip2 \
34+        --parallel="$(grep -scF 'core id' /proc/cpuinfo)" -- \
35+        -DBUILD_CursesDialog=OFF
36+
37+    make
38+    make install
39+fi
40+
41+rm -rf \
42+    "$1/doc" \
43+    "$1/share/cmake"*/Help \
44+    "$1/share/bash-completion"
+1, -0
1@@ -0,0 +1 @@
2+3ae4d3b32d266769b009f965fe1b4ee75a5cd5d4e8a5bd19bec11961a411809fa4
+4, -0
1@@ -0,0 +1,4 @@
2+#bzip2
3+expat
4+#linux-headers make
5+zlib
+1, -0
1@@ -0,0 +1 @@
2+https://cmake.org/files/v3.28/cmake-3.28.2.tar.gz
+1, -0
1@@ -0,0 +1 @@
2+3.28.2 1
+12, -0
 1@@ -0,0 +1,12 @@
 2+#!/bin/sh -e
 3+
 4+export DESTDIR="$1"
 5+
 6+
 7+./configure \
 8+    --prefix=/ \
 9+    --sysconfdir=/etc/imlib2 \
10+    --enable-visibility-hiding
11+
12+make
13+make install
+1, -0
1@@ -0,0 +1 @@
2+0664010014af50e8a7077148cf58c1fa57d5c3137bc899977d307396757304cef7
+8, -0
1@@ -0,0 +1,8 @@
2+# By default, gif and tiff are commented. You can enable support for
3+# both formats by uncommenting giflib and tiff.
4+# giflib
5+# tiff
6+freetype
7+libXext
8+libjpeg-turbo
9+libpng
+1, -0
1@@ -0,0 +1 @@
2+https://fossies.org/linux/misc/imlib2-1.12.1.tar.gz
+1, -0
1@@ -0,0 +1 @@
2+1.12.1 1
+34, -0
 1@@ -0,0 +1,34 @@
 2+#!/bin/sh -e
 3+
 4+export DESTDIR="$1"
 5+
 6+TMPDIR="$1/tmp"
 7+
 8+./configure \
 9+    --prefix=/ \
10+    --sysconfdir=/etc \
11+    --mandir=/share/man \
12+    --localstatedir=/var \
13+    --without-xmlto \
14+    --disable-specs
15+
16+make
17+make install
18+
19+# Some X11 packages install to /share.
20+! [ -d "$1/share/pkgconfig" ] || {
21+    mkdir -p "$1/lib"
22+    mv -f "$1/share/pkgconfig" "$1/lib"
23+}
24+
25+# We need to keep this around.
26+! [ -d "$1/share/aclocal" ] || {
27+    mkdir -p "$TMPDIR"
28+    mv -f "$1/share/aclocal" "$TMPDIR"
29+}
30+
31+# Restore kept directories.
32+! [ -d "$TMPDIR" ] || {
33+    mv -f "$TMPDIR/"* "$1/share"
34+    rm -rf "$TMPDIR"
35+}
+1, -0
1@@ -0,0 +1 @@
2+d4679a072a23e0621a3646917b0f0df97544cfa99fa32fb61ca73a8d921e1e1628
+3, -0
1@@ -0,0 +1,3 @@
2+pkgconf   make
3+xorgproto make
4+xtrans    make
+1, -0
1@@ -0,0 +1 @@
2+https://x.org/releases/individual/lib/libICE-1.1.1.tar.gz
+1, -0
1@@ -0,0 +1 @@
2+1.1.1 1
+34, -0
 1@@ -0,0 +1,34 @@
 2+#!/bin/sh -e
 3+
 4+export DESTDIR="$1"
 5+
 6+TMPDIR="$1/tmp"
 7+
 8+./configure \
 9+    --prefix=/ \
10+    --sysconfdir=/etc \
11+    --mandir=/share/man \
12+    --localstatedir=/var \
13+    --without-xmlto \
14+    --disable-specs
15+
16+make
17+make install
18+
19+# Some X11 packages install to /share.
20+! [ -d "$1/share/pkgconfig" ] || {
21+    mkdir -p "$1/lib"
22+    mv -f "$1/share/pkgconfig" "$1/lib"
23+}
24+
25+# We need to keep this around.
26+! [ -d "$1/share/aclocal" ] || {
27+    mkdir -p "$TMPDIR"
28+    mv -f "$1/share/aclocal" "$TMPDIR"
29+}
30+
31+# Restore kept directories.
32+! [ -d "$TMPDIR" ] || {
33+    mv -f "$TMPDIR/"* "$1/share"
34+    rm -rf "$TMPDIR"
35+}
+1, -0
1@@ -0,0 +1 @@
2+1247e2d5ca3d85489b4edbc38060822ac7f6b9b1aed574b4f8f722f99d4bfa69e5
+3, -0
1@@ -0,0 +1,3 @@
2+libICE
3+pkgconf make
4+xtrans  make
+1, -0
1@@ -0,0 +1 @@
2+https://x.org/releases/individual/lib/libSM-1.2.4.tar.gz
+1, -0
1@@ -0,0 +1 @@
2+1.2.4 1
+1, -2
 1@@ -10,8 +10,7 @@ TMPDIR="$1/tmp"
 2     --mandir=/share/man \
 3     --localstatedir=/var \
 4     --without-xmlto \
 5-    --disable-specs \
 6-    --disable-shared
 7+    --disable-specs
 8 
 9 make
10 make install
+1, -2
 1@@ -10,8 +10,7 @@ TMPDIR="$1/tmp"
 2     --mandir=/share/man \
 3     --localstatedir=/var \
 4     --without-xmlto \
 5-    --disable-specs \
 6-    --disable-shared
 7+    --disable-specs
 8 
 9 make
10 make install
+1, -2
 1@@ -10,8 +10,7 @@ TMPDIR="$1/tmp"
 2     --mandir=/share/man \
 3     --localstatedir=/var \
 4     --without-xmlto \
 5-    --disable-specs \
 6-    --disable-shared
 7+    --disable-specs
 8 
 9 make
10 make install
+34, -0
 1@@ -0,0 +1,34 @@
 2+#!/bin/sh -e
 3+
 4+export DESTDIR="$1"
 5+
 6+TMPDIR="$1/tmp"
 7+
 8+./configure \
 9+    --prefix=/ \
10+    --sysconfdir=/etc \
11+    --mandir=/share/man \
12+    --localstatedir=/var \
13+    --without-xmlto \
14+    --disable-specs
15+
16+make
17+make install
18+
19+# Some X11 packages install to /share.
20+! [ -d "$1/share/pkgconfig" ] || {
21+    mkdir -p "$1/lib"
22+    mv -f "$1/share/pkgconfig" "$1/lib"
23+}
24+
25+# We need to keep this around.
26+! [ -d "$1/share/aclocal" ] || {
27+    mkdir -p "$TMPDIR"
28+    mv -f "$1/share/aclocal" "$TMPDIR"
29+}
30+
31+# Restore kept directories.
32+! [ -d "$TMPDIR" ] || {
33+    mv -f "$TMPDIR/"* "$1/share"
34+    rm -rf "$TMPDIR"
35+}
+1, -0
1@@ -0,0 +1 @@
2+e4b3451aaaba6325b7b992df42077630446c7c0161b1d8ddbfb52070bb39b5caf8
+4, -0
1@@ -0,0 +1,4 @@
2+libSM
3+libX11
4+pkgconf   make
5+xorgproto make
+1, -0
1@@ -0,0 +1 @@
2+https://x.org/releases/individual/lib/libXt-1.3.0.tar.gz
+1, -0
1@@ -0,0 +1 @@
2+1.3.0 1
+55, -0
 1@@ -0,0 +1,55 @@
 2+libjpeg-turbo
 3+________________________________________________________________________________
 4+
 5+libjpeg-turbo is a fork of libjpeg that uses SIMD instructions to accelerate
 6+baseline JPEG encoding and decoding. Many projects are now using libjpeg-turbo
 7+instead of libjpeg, including popular Linux distributions (Fedora, Debian,
 8+Mageia, openSUSE, ...), Mozilla, and Chrome. Apart from performance, some
 9+projects have chosen to use libjpeg-turbo because it allows them to retain
10+backward ABI compatibility with the older libjpeg v6b release. libjpeg v7, v8
11+and v9 broke ABI compatibility with prior releases. [0]
12+
13+Upstream: https://libjpeg-turbo.org/
14+
15+
16+[000] Index
17+________________________________________________________________________________
18+
19+* Installation ........................................................... [001]
20+* Usage .................................................................. [002]
21+* References ............................................................. [003]
22+
23+
24+[001] Installation
25+________________________________________________________________________________
26+
27++------------------------------------------------------------------------------+
28+|                                                                              |
29+|  $ kiss b libjpeg-turbo                                                      |
30+|                                                                              |
31++------------------------------------------------------------------------------+
32+
33+
34+[002] Usage
35+________________________________________________________________________________
36+
37++--------------+---------------------------------------------------------------+
38+| Tool         | Purpose                                                       |
39++--------------+---------------------------------------------------------------+
40+|              |                                                               |
41+| wrjpgcom     | Insert text comments into a JPEG file.                        |
42+| rdjpgcom     | Display text comments from a JPEG file.                       |
43+| jpegtran     | Lossless transformation of JPEG files.                        |
44+| djpeg        | Decompress a JPEG file to an image file.                      |
45+| cjpeg        | Compress a JPEG file to an image file.                        |
46+|              |                                                               |
47++--------------+---------------------------------------------------------------+
48+
49+Refer to the manual pages and command help output for more information.
50+
51+
52+[003] References
53+________________________________________________________________________________
54+
55+[0] https://en.wikipedia.org/wiki/Libjpeg#libjpeg-turbo
56+
+16, -0
 1@@ -0,0 +1,16 @@
 2+#!/bin/sh -e
 3+
 4+export DESTDIR="$1"
 5+
 6+patch -p1 < no-docs.patch
 7+
 8+cmake -B build \
 9+    -DCMAKE_INSTALL_PREFIX=/ \
10+    -DCMAKE_INSTALL_LIBDIR=/lib \
11+    -DCMAKE_SHARED_LIBS=False \
12+    -DCMAKE_STATIC_LIBS=True \
13+    -DCMAKE_BUILD_TYPE=Release \
14+    -DWITH_JPEG8=1
15+
16+cmake --build   build
17+cmake --install build
+2, -0
1@@ -0,0 +1,2 @@
2+c3024449279a4adda95c620d4766c64fa8067d7b6a0949ff8437fcda7b03a5ec8e
3+c3d9309a2c8b77c966232ae5bbf40b69746c0a11f0b984830547c5844edb1229cc
+2, -0
1@@ -0,0 +1,2 @@
2+cmake make
3+nasm  make
+40, -0
 1@@ -0,0 +1,40 @@
 2+diff --git a/CMakeLists.txt b/CMakeLists.txt
 3+index efd101a..faa0bfb 100644
 4+--- a/CMakeLists.txt
 5++++ b/CMakeLists.txt
 6+@@ -173,7 +173,6 @@ message(STATUS "CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}")
 7+ 
 8+ if(CMAKE_INSTALL_PREFIX STREQUAL "${CMAKE_INSTALL_DEFAULT_PREFIX}")
 9+   set(CMAKE_INSTALL_DEFAULT_DATAROOTDIR "")
10+-  set(CMAKE_INSTALL_DEFAULT_DOCDIR "<CMAKE_INSTALL_DATAROOTDIR>/doc")
11+   set(CMAKE_INSTALL_DEFAULT_JAVADIR "<CMAKE_INSTALL_DATAROOTDIR>/classes")
12+   if(UNIX AND NOT APPLE)
13+     if(BITS EQUAL 64)
14+@@ -197,7 +196,7 @@ macro(report_directory var)
15+   mark_as_advanced(CLEAR CMAKE_INSTALL_${var})
16+ endmacro()
17+ 
18+-set(DIRLIST "BINDIR;DATAROOTDIR;DOCDIR;INCLUDEDIR;LIBDIR")
19++set(DIRLIST "BINDIR;DATAROOTDIR;INCLUDEDIR;LIBDIR")
20+ if(UNIX)
21+   list(APPEND DIRLIST "MANDIR")
22+ endif()
23+@@ -1734,18 +1733,6 @@ endif()
24+ 
25+ install(TARGETS rdjpgcom wrjpgcom RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
26+ 
27+-install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/README.ijg
28+-  ${CMAKE_CURRENT_SOURCE_DIR}/README.md ${CMAKE_CURRENT_SOURCE_DIR}/example.c
29+-  ${CMAKE_CURRENT_SOURCE_DIR}/tjexample.c
30+-  ${CMAKE_CURRENT_SOURCE_DIR}/libjpeg.txt
31+-  ${CMAKE_CURRENT_SOURCE_DIR}/structure.txt
32+-  ${CMAKE_CURRENT_SOURCE_DIR}/usage.txt ${CMAKE_CURRENT_SOURCE_DIR}/wizard.txt
33+-  ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.md DESTINATION ${CMAKE_INSTALL_DOCDIR})
34+-if(WITH_JAVA)
35+-  install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/java/TJExample.java
36+-    DESTINATION ${CMAKE_INSTALL_DOCDIR})
37+-endif()
38+-
39+ if(UNIX OR MINGW)
40+   install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cjpeg.1
41+     ${CMAKE_CURRENT_SOURCE_DIR}/djpeg.1 ${CMAKE_CURRENT_SOURCE_DIR}/jpegtran.1
+2, -0
1@@ -0,0 +1,2 @@
2+https://github.com/libjpeg-turbo/libjpeg-turbo/archive/3.0.2.tar.gz
3+patches/no-docs.patch
+1, -0
1@@ -0,0 +1 @@
2+3.0.2 1
+1, -3
 1@@ -3,9 +3,7 @@
 2 patch -p1 < apng.patch
 3 
 4 ./configure \
 5-    --prefix=/ \
 6-    --disable-shared \
 7-    --enable-static
 8+    --prefix=/
 9 
10 make
11 make DESTDIR="$1" install
+39, -0
 1@@ -0,0 +1,39 @@
 2+nasm
 3+________________________________________________________________________________
 4+
 5+The Netwide Assembler (NASM) is an assembler and disassembler for the Intel x86
 6+architecture. It can be used to write 16-bit, 32-bit (IA-32) and 64-bit (x86-64)
 7+programs. [0]
 8+
 9+Upstream: https://www.nasm.us/
10+
11+
12+[000] Index
13+________________________________________________________________________________
14+
15+* Installation ........................................................... [001]
16+* Usage .................................................................. [002]
17+* References ............................................................. [003]
18+
19+
20+[001] Installation
21+________________________________________________________________________________
22+
23++------------------------------------------------------------------------------+
24+|                                                                              |
25+|  $ kiss b nasm                                                               |
26+|                                                                              |
27++------------------------------------------------------------------------------+
28+
29+
30+[002] Usage
31+________________________________________________________________________________
32+
33+Refer to the manual pages and command help output.
34+
35+
36+[003] References
37+________________________________________________________________________________
38+
39+[0] https://en.wikipedia.org/wiki/Netwide_Assembler
40+
+7, -0
1@@ -0,0 +1,7 @@
2+#!/bin/sh -e
3+
4+./configure \
5+    --prefix=/
6+
7+make LDFLAGS="$LDFLAGS -static"
8+make DESTDIR="$1" install
+1, -0
1@@ -0,0 +1 @@
2+d3bb44f055dc56ea9fe6951487ccd32cb0df742a5ed407e587b15e0139cd608622
+1, -0
1@@ -0,0 +1 @@
2+https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/nasm-2.16.01.tar.xz
+1, -0
1@@ -0,0 +1 @@
2+2.16.01 1
+34, -0
 1@@ -0,0 +1,34 @@
 2+#!/bin/sh -e
 3+
 4+export DESTDIR="$1"
 5+
 6+TMPDIR="$1/tmp"
 7+
 8+./configure \
 9+    --prefix=/ \
10+    --sysconfdir=/etc \
11+    --mandir=/share/man \
12+    --localstatedir=/var \
13+    --without-xmlto \
14+    --disable-specs
15+
16+make
17+make install
18+
19+# Some X11 packages install to /share.
20+! [ -d "$1/share/pkgconfig" ] || {
21+    mkdir -p "$1/lib"
22+    mv -f "$1/share/pkgconfig" "$1/lib"
23+}
24+
25+# We need to keep this around.
26+! [ -d "$1/share/aclocal" ] || {
27+    mkdir -p "$TMPDIR"
28+    mv -f "$1/share/aclocal" "$TMPDIR"
29+}
30+
31+# Restore kept directories.
32+! [ -d "$TMPDIR" ] || {
33+    mv -f "$TMPDIR/"* "$1/share"
34+    rm -rf "$TMPDIR"
35+}
+1, -0
1@@ -0,0 +1 @@
2+2ac081261f44fd5511a4ff84543c87f4700957561e1caa971541ce45dc88ae71fb
+3, -0
1@@ -0,0 +1,3 @@
2+libX11
3+libXmu
4+pkgconf make
+1, -0
1@@ -0,0 +1 @@
2+https://x.org/releases/individual/app/xprop-1.2.6.tar.gz
+1, -0
1@@ -0,0 +1 @@
2+1.2.6 1