From: Sergey Matveev Date: Fri, 21 Jun 2024 13:22:13 +0000 (+0300) Subject: Links skel X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=17cdefb817040a6ef713bb2c738e0d3e9d8bbbe4ab3da2af96bf9d54495859c7;p=bass.git Links skel --- diff --git a/build/distfiles/.gitignore b/build/distfiles/.gitignore index e13de9f..aced110 100644 --- a/build/distfiles/.gitignore +++ b/build/distfiles/.gitignore @@ -113,6 +113,7 @@ /libvpx.git/ /libwebp-1.4.0.tar.gz /libxml2-2.9.14.tar.xz +/links-2.29.tar.bz2 /lzip-1.24.tar.gz /mapnik-v3.1.0.tar.bz2 /meson-0.56.0.tar.gz diff --git a/build/distfiles/links-2.29.tar.bz2.meta4 b/build/distfiles/links-2.29.tar.bz2.meta4 new file mode 100644 index 0000000..553e480 --- /dev/null +++ b/build/distfiles/links-2.29.tar.bz2.meta4 @@ -0,0 +1,18 @@ + + + + 058ce6e16ba887d6c973c8d0b4e3d8f4617e607dc5ced1b2e8bfe2e574dbea01 + 6ae2b0e4a4a314756ef74ca19888e4c8a9e89347767475000f4b3ea70eb7157430bb5a6721108585c122eb33f6b05ab5eab600e26c9e1d2b8bdafd85483c6d94 + 7eb472053525794de0730d19684d299002e6db753b70acfb5915e0f6e35a4289 + 6f2be0026a580e961413246fccbf08bba25532638f09bc9c22de9ede0a046f7753f22a737f1aef878dcb03d3dd4f46b91666a6090bc4145866b7a6d8822b8712 + e97ec5ae59aec77e142e0c4238265300389fd4b608eed918094a806d6cc2d500 + a3931add4d4194e185ca55581618f786dd85a8220ee52472c365020786ce24742421d90f59eab8e6525091d92bf6817a72411d0038e8a4765bd19f0a73730dfe + 5ea8b2fd0eb74d9dc2b45614aef6ee878fe686dff9bcee75ac6ea01f6a7331670f7709233d31986fc64ad86ce549616a4471057837b6caf15af6d1c5c503ac75 + 22aa96c0b38e1a6f8f7ed9d7a4167a47fc37246097759ef6059ecf8f9ead7998 + f79a4c7c39d76b54f7ca2a9c1185c135a231040d3a76999b75dfb46ebe5ff94efbb621f41acdc907db92a36926e086bdf3c7f06987dba9a0d908a4af52b9b56b + 78d4d2a28cc93e32b400800fdab25182ac95e891bc9c6c696531555c06d88ade + 03a2887aa583fa5e7b9a52df1052a3b0 + 6521024 + http://links.twibright.com/download/links-2.29.tar.bz2 + + diff --git a/build/skel/www/links-2.29.do b/build/skel/www/links-2.29.do new file mode 100644 index 0000000..86d11c2 --- /dev/null +++ b/build/skel/www/links-2.29.do @@ -0,0 +1,22 @@ +[ -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/pkgconf-2.1.1" +rdeps="graphics/libpng-1.6.43" +redo-ifchange $bdeps "$DISTFILES"/$NAME.tar.bz2 $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.bz2 +"$BASS_ROOT"/bin/rm-r "$SKELBINS"/$ARCH/$NAME-$hsh + +cd $NAME +./configure --prefix="$SKELBINS"/$ARCH/$NAME-$hsh --enable-graphics >&2 +make -j$MAKE_JOBS >&2 +make install >&2 + +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/www/links-forced-jpeg.patch b/build/skel/www/links-forced-jpeg.patch new file mode 100644 index 0000000..397d30f --- /dev/null +++ b/build/skel/www/links-forced-jpeg.patch @@ -0,0 +1,116 @@ +--- configure.orig 2023-03-18 19:13:07.000000000 +0300 ++++ configure 2024-06-21 23:44:54.940594000 +0300 +@@ -11272,110 +11272,12 @@ + { echo "configure: error: Your libpng is too old" 1>&2; exit 1; } + fi + +- # Check whether --with-libjpeg or --without-libjpeg was given. +-if test "${with_libjpeg+set}" = set; then +- withval="$with_libjpeg" +- if test "$withval" = no; then disable_jpeg=yes; else disable_jpeg=no; fi +-fi +- +- cf_have_jpeg=no +- if test "$disable_jpeg" != yes; then +- for ac_hdr in jpeglib.h +-do +-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +-echo "configure:11282: checking for $ac_hdr" >&5 +-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +- echo $ac_n "(cached) $ac_c" 1>&6 +-else +- cat > conftest.$ac_ext < +-EOF +-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +-{ (eval echo configure:11292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +-if test -z "$ac_err"; then +- rm -rf conftest* +- eval "ac_cv_header_$ac_safe=yes" +-else +- echo "$ac_err" >&5 +- echo "configure: failed program was:" >&5 +- cat conftest.$ac_ext >&5 +- rm -rf conftest* +- eval "ac_cv_header_$ac_safe=no" +-fi +-rm -f conftest* +-fi +-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then +- echo "$ac_t""yes" 1>&6 +- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` +- cat >> confdefs.h <&6 +-fi +-done +- +- echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 +-echo "configure:11319: checking for jpeg_destroy_decompress in -ljpeg" >&5 +-ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` +-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then +- echo $ac_n "(cached) $ac_c" 1>&6 +-else +- ac_save_LIBS="$LIBS" + LIBS="-ljpeg $LIBS" +-cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +- rm -rf conftest* +- eval "ac_cv_lib_$ac_lib_var=yes" +-else +- echo "configure: failed program was:" >&5 +- cat conftest.$ac_ext >&5 +- rm -rf conftest* +- eval "ac_cv_lib_$ac_lib_var=no" +-fi +-rm -f conftest* +-LIBS="$ac_save_LIBS" +- +-fi +-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then +- echo "$ac_t""yes" 1>&6 +- ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \ +- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` +- cat >> confdefs.h <&6 +-fi +- +- if test "$ac_cv_header_jpeglib_h" = yes && test "$ac_cv_lib_jpeg_jpeg_destroy_decompress" = yes; then +- cat >> confdefs.h <<\EOF ++cat >> confdefs.h <