]> Cypherpunks repositories - bass.git/commitdiff
netpbm skel
authorSergey Matveev <stargrave@stargrave.org>
Fri, 21 Jun 2024 17:24:22 +0000 (20:24 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 22 Jun 2024 18:50:52 +0000 (21:50 +0300)
build/distfiles/.gitignore
build/distfiles/netpbm-11.04.02.tar.xz.meta4 [new file with mode: 0644]
build/distfiles/tiff-4.6.0.tar.xz.meta4 [new file with mode: 0644]
build/skel/graphics/imagemagick-7.1.1-33.do
build/skel/graphics/netpbm-11.04.02.do [new file with mode: 0644]
build/skel/graphics/tiff-4.6.0.do [new file with mode: 0644]

index c5f6680c529517d6212b207bf3220c254c3eaa25f22c769f7a86bcaada29acfc..2b19e3ce32234d282021adab8f7cfbfa615fc0578370844c7cc97f2ae88dbdaa 100644 (file)
 /mutt-2.2.13.tar.gz
 /nasm-2.16.01.tar.xz
 /ncurses-6.4.tar.gz
+/netpbm-11.04.02.tar.xz
 /nettle-3.9.1.tar.gz
 /nghttp2-1.62.1.tar.xz
 /ninja-v1.12.1.tar.zst
 /sxhkd.git/
 /tcl8.6.14.tar.gz
 /texinfo-7.1.tar.xz
+/tiff-4.6.0.tar.xz
 /tk8.6.14.tar.gz
 /tmux-3.3.tar.gz
 /ucspi-tcp-0.88-ipv6.diff20.bz2
diff --git a/build/distfiles/netpbm-11.04.02.tar.xz.meta4 b/build/distfiles/netpbm-11.04.02.tar.xz.meta4
new file mode 100644 (file)
index 0000000..0792fa0
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metalink xmlns="urn:ietf:params:xml:ns:metalink">
+  <file name="netpbm-11.04.02.tar.xz">
+    <hash type="blake3-256">a9b2b70bf81535708e97b5e0ee876ab993538e9c07b94ee9f3eb67f735db2648</hash>
+    <hash type="blake2b-512">21dff3c5781392ef9b0c94899b6237ae8f35f979170980c26c29fdaf0400932afad2d2aa42b7622903a74e3741f566b1b962b238e8197340d9cd59d569ab451c</hash>
+    <hash type="blake2b-256">2610eaaac9a5d622fd1444197c79c1cd090f442f2820d8913c512e4cf3d315bb</hash>
+    <hash type="skein-512">c1a4d499f6197f5298005444ab66b9923b26cdcd8bcbd7e701d0dca50cbff6e793ebe3a9c0a719934f75e9577330840a4e92bc86ff2c8d8b361ad6dfe4717e4e</hash>
+    <hash type="shake128">516c623d5f8b21c4b89c845793e51ab74864d53f02c2d3a9282a4e21955e3538</hash>
+    <hash type="shake256">59b54e535a569266e731f57ba41912ecdb89942e909a83dfc879c24a01af9cfc0706719e614b3166a21296816bbc1281eaa0efd6f59e46134fd94db13504c830</hash>
+    <hash type="sha-512">d5dfbb6215e83e8f48892f97b8fc2f563ad048c5f0859cb5608e8fb9b5bfd58a04609ec7050214a0a87086fb72c70bb0091facca257e356a59f4c97bbe936982</hash>
+    <hash type="sha-256">c7af684a300a20285e67f8900537828681994e74f5870155f84bfb9daa75e99e</hash>
+    <hash type="streebog-512">d159d778729a36f8e5339bbb2b976c027733bd1843a6ab290ad6ee9ff2380dea7d23fb440ffb415bcb099e30c70f3c39bd7966747001b453418f2fde3984e0ab</hash>
+    <hash type="streebog-256">d5d353d71f1137dbfa59acdcf4a4fa9fe3a5dafaad243d1d0f0368ce4c14069f</hash>
+    <hash type="xxh3-128">e34e84104cecfde9a351f933dbe362c9</hash>
+    <size>2432352</size>
+    <url>http://distcache.FreeBSD.org/local-distfiles/leres/netpbm/netpbm-11.04.02.tar.xz</url>
+  </file>
+</metalink>
diff --git a/build/distfiles/tiff-4.6.0.tar.xz.meta4 b/build/distfiles/tiff-4.6.0.tar.xz.meta4
new file mode 100644 (file)
index 0000000..ee8f68c
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metalink xmlns="urn:ietf:params:xml:ns:metalink">
+  <file name="tiff-4.6.0.tar.xz">
+    <hash type="blake3-256">2857d9986519f9a2d407b7041b177ee47b83964f7116a7a5c347448ca860e813</hash>
+    <hash type="blake2b-512">3b508b02b0a536c5bc8e67fe4c1b09ae9c830252786ef4764202c14d673d1ef9634694de7a5893a3551dec684d00bad9d0442c7fea7bcd09238b9960d443cf62</hash>
+    <hash type="blake2b-256">18cdb0259826afc927756b2869f704f6342e967a2061ed4b4c7803c001e0c67d</hash>
+    <hash type="skein-512">a1ec9e569484fdc2e5da6dafe2528357ad9e548a4dae181cad093043add8b221be8f886c8fca4df4770a8ba0cb21e8e2062446a263f0b990e11a30a98e929455</hash>
+    <hash type="shake128">9c743a1ce6a9c9a0265b8bcbd55300a5edd2d78ed0d57e45a0ed40289876879c</hash>
+    <hash type="shake256">f75a88316b4c875828fdae7ed52e6f139dd753a4cda58f12ff5e3a06490d401c67cc6fc668fcb122489537c3a3744886c98248b9a2fae7e295a0f68dd67a6f08</hash>
+    <hash type="sha-512">4cd9bb485bcac9c5efdd0c4814f2a38a762a3b69e70d909c05a24e2e9d2bd27357b9814e0cb1cee3898355d6ccfcf1615f715125c8ab8c651db474073734ab03</hash>
+    <hash type="sha-256">e178649607d1e22b51cf361dd20a3753f244f022eefab1f2f218fc62ebaf87d2</hash>
+    <hash type="streebog-512">ef4d3234d8079f8b793fb56d27a8c557a3795bcd90e38b66f22dcc4a6f3a489a9f42fb59e77fd69b82274006e00c0f4608a27f1ded0842ed392d37c50a781c25</hash>
+    <hash type="streebog-256">2b6d65116bf863d6afc79b88faddfafda8455dc0d98aefd733c2639276365db9</hash>
+    <hash type="xxh3-128">9b9ffbaee67f52fc4476e72fb511d851</hash>
+    <signature mediatype="application/pgp-signature"><![CDATA[
+-----BEGIN PGP ARMORED FILE-----
+
+iQEzBAABCgAdFiEEsfp9ge645mOZF4uXM+u/xHs92H0FAmT65lUACgkQM+u/xHs9
+2H2j3Af/ZnbdrKRU5b79vZEEmruEKe9j/7C30F04Fe5O+E6Hb9UWyhJ/ixCom6q1
+DLAG8kirFnNB4AjSF4PRQbIrooMO47p0Eg4J2REzrjoGYS5b1FTofL+hqSy2YnHu
+Xabev3/TIDSXdVCkVKbH4vrVK/CgcXKbcAK9SK45L/8/xQ4jBzETherSb3EJdLwp
+gibyeUEjf6uZBIq7MGw7u1tJkiVcH7HRK5VE5zwss1njVkpeFoXXxEFiLVdIffjK
+dK5vsPJipHOtg5Fhd5sIzVoXzvouoNX4yw5tXxq2BG9kY0BfhHkfydJCrkgpPbgm
+4/bAy/apU8Gf54hjDtEH5APAqLTpnA==
+=yvBP
+-----END PGP ARMORED FILE-----
+]]></signature>
+    <size>2124388</size>
+    <url>https://download.osgeo.org/libtiff/tiff-4.6.0.tar.xz</url>
+  </file>
+</metalink>
index 4cc94921accc6116c72794b6efd183dfc21e65d86a79fcdfa7cb7d5168a73d64..46bf6f7c34b0c12a82187cc2a0a11d897fb318f5e6a14e7a646748704b125ed3 100644 (file)
@@ -11,6 +11,7 @@ graphics/libjxl-v0.10-snapshot-179-gcdb6a667
 graphics/libpng-1.6.43
 graphics/libwebp-1.4.0
 graphics/openjpeg-2.5.2
+graphics/tiff-4.6.0
 "
 redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.zst $rdeps
 hsh=$("$BASS_ROOT"/build/bin/cksum $BASS_REV $SPATH)
diff --git a/build/skel/graphics/netpbm-11.04.02.do b/build/skel/graphics/netpbm-11.04.02.do
new file mode 100644 (file)
index 0000000..76553c1
--- /dev/null
@@ -0,0 +1,57 @@
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../../../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+. "$BASS_ROOT"/build/skel/common.rc
+
+bdeps="rc-paths stow archivers/zstd devel/gmake-4.4.1 devel/pkgconf-2.1.1"
+rdeps="
+graphics/libjpeg-turbo-3.0.3
+graphics/libpng-1.6.43
+graphics/tiff-4.6.0
+"
+redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.xz $rdeps
+hsh=$("$BASS_ROOT"/build/bin/cksum $BASS_REV $SPATH)
+. "$BASS_ROOT"/build/lib/create-tmp-for-build.rc
+"$BASS_ROOT"/build/bin/pkg-inst $bdeps $rdeps
+. ./rc
+$TAR xf "$DISTFILES"/$NAME.tar.xz
+"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh
+
+cd $NAME
+cp config.mk.in config.mk
+cat >>config.mk <<EOF
+DEFAULT_TARGET = nonmerge
+NETPBMLIBTYPE=unixshared
+NETPBMLIBSUFFIX=so
+STATICLIB_TOO=Y
+LINKERISCOMPILER = Y
+CFLAGS_SHLIB += -fPIC
+TIFFLIB = libtiff.so
+JPEGLIB = libjpeg.so
+PNGHDR_DIR = USE_PKG_CONFIG.a
+PNGLIB = USE_PKG_CONFIG.a
+ZLIB = libz.so
+X11HDR_DIR = USE_PKGCONFIG.a
+X11LIB = USE_PKGCONFIG.a
+WANT_SSE = Y
+EOF
+gmake -j$MAKE_JOBS >&2
+gmake package pkgdir=$tmp/pkg >&2
+mkdir -p "$SKELBINS"/$ARCH/$NAME-$hsh
+cd $tmp/pkg
+mv bin include lib "$SKELBINS"/$ARCH/$NAME-$hsh
+mv sharedlink/* staticlink/* "$SKELBINS"/$ARCH/$NAME-$hsh/lib
+mkdir -p "$SKELBINS"/$ARCH/$NAME-$hsh/libdata/pkgconfig
+ver=${NAME#netpbm-}
+cat >"$SKELBINS"/$ARCH/$NAME-$hsh/libdata/pkgconfig/netpbm.pc <<EOF
+Name: Netpbm
+Description: Graphics utilities
+Version: $ver
+Requires:
+Libs: -L$SKELBINS/$ARCH/$NAME-$hsh/lib -lnetpbm
+Libs.private:
+Cflags: -I$SKELBINS/$ARCH/$NAME-$hsh/include
+EOF
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/prepare-preinst-010-rdeps $NAME-$hsh $rdeps
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh
diff --git a/build/skel/graphics/tiff-4.6.0.do b/build/skel/graphics/tiff-4.6.0.do
new file mode 100644 (file)
index 0000000..08790e7
--- /dev/null
@@ -0,0 +1,21 @@
+[ -n "$BASS_ROOT" ] || BASS_ROOT="$(dirname "$(realpath -- "$0")")"/../../../..
+sname=$1.do . "$BASS_ROOT"/lib/rc
+. "$BASS_ROOT"/build/skel/common.rc
+
+bdeps="rc-paths stow archivers/zstd devel/gmake-4.4.1 devel/pkgconf-2.1.1"
+redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.xz
+hsh=$("$BASS_ROOT"/build/bin/cksum $BASS_REV $SPATH)
+. "$BASS_ROOT"/build/lib/create-tmp-for-build.rc
+"$BASS_ROOT"/build/bin/pkg-inst $bdeps
+. ./rc
+$TAR xf "$DISTFILES"/$NAME.tar.xz
+"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh
+
+cd $NAME
+./configure --prefix="$SKELBINS"/$ARCH/$NAME-$hsh \
+    --disable-tests --disable-docs --disable-dependency-tracking >&2
+gmake -j$MAKE_JOBS >&2
+gmake install >&2
+
+cd "$SKELBINS"/$ARCH
+"$BASS_ROOT"/build/lib/mk-pkg $NAME-$hsh