Netsurf 3.11 and dependencies

This commit is contained in:
PulkoMandy
2023-12-29 10:14:23 +01:00
parent 3085dfa219
commit 535a274c50
13 changed files with 66 additions and 116 deletions

View File

@@ -2,11 +2,11 @@ SUMMARY="A CSS parser and selection engine"
DESCRIPTION="LibCSS is a CSS (Cascading Style Sheet) parser and selection \
engine."
HOMEPAGE="https://www.netsurf-browser.org/projects/libcss/"
COPYRIGHT="2007-2018 The NetSurf Developers"
COPYRIGHT="2007-2023 The NetSurf Developers"
LICENSE="MIT"
REVISION="3"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libcss-$portVersion-src.tar.gz"
CHECKSUM_SHA256="d2dce16e93392e8d6a7209420d47c2d56a3811701a0e81a724fc541c63d3c6dc"
CHECKSUM_SHA256="2df215bbec34d51d60c1a04b01b2df4d5d18f510f1f3a7af4b80cddb5671154e"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
@@ -36,11 +36,11 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libparserutils$secondaryArchSuffix >= 0.2.4
devel:libparserutils$secondaryArchSuffix >= 0.2.5
devel:libwapcaplet$secondaryArchSuffix >= 0.4.3
"
BUILD_PREREQUIRES="
netsurf_buildsystem >= 1.9
netsurf_buildsystem >= 1.10
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make

View File

@@ -2,14 +2,14 @@ SUMMARY="NetSurf generalised utility library"
DESCRIPTION="Various things useful to the NetSurf browser, and possibly to \
other applications."
HOMEPAGE="https://git.netsurf-browser.org/libnsutils.git/"
COPYRIGHT="2014-2020 Vincent Sanders"
COPYRIGHT="2014-2023 Vincent Sanders"
LICENSE="MIT"
REVISION="2"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libnsutils-$portVersion-src.tar.gz"
CHECKSUM_SHA256="790c6516344abe82f6289d656392e9ccebe475b20cc7e1e2d843011385f7aef0"
CHECKSUM_SHA256="5694b4526e458ed000413ce6027589cbe10a257a7ecf065a01421dc7299dea92"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -34,7 +34,7 @@ BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
netsurf_buildsystem >= 1.9
netsurf_buildsystem >= 1.10
cmd:gcc$secondaryArchSuffix
cmd:make
"

View File

@@ -1,11 +1,11 @@
SUMMARY="A library for building efficient parsers"
DESCRIPTION="LibParserUtils is a library for building efficient parsers."
HOMEPAGE="https://www.netsurf-browser.org/projects/libparserutils/"
COPYRIGHT="2007-2018 J-M Bell"
COPYRIGHT="2007-2023 J-M Bell"
LICENSE="MIT"
REVISION="3"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libparserutils-$portVersion-src.tar.gz"
CHECKSUM_SHA256="322bae61b30ccede3e305bf6eae2414920649775bc5ff1d1b688012a3c4947d8"
CHECKSUM_SHA256="317ed5c718f17927b5721974bae5de32c3fd6d055db131ad31b4312a032ed139"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
@@ -36,7 +36,7 @@ BUILD_REQUIRES="
lib:libiconv${secondaryArchSuffix}
"
BUILD_PREREQUIRES="
netsurf_buildsystem
netsurf_buildsystem >= 1.10
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make

View File

@@ -2,11 +2,11 @@ SUMMARY="NetSurf generator for javascript bindings"
DESCRIPTION="This is a tool to generate JavaScript to DOM bindings from w3c \
webidl files and a binding configuration file."
HOMEPAGE="https://git.netsurf-browser.org/nsgenbind.git/"
COPYRIGHT="2012-2020 Vincent Sanders"
COPYRIGHT="2012-2023 Vincent Sanders"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/nsgenbind-$portVersion-src.tar.gz"
CHECKSUM_SHA256="4d8d53ad000ada712772365e6a73eb8fc5ce97584af9c865ac5b26a2187f1cb3"
CHECKSUM_SHA256="232ce0f66cbc2c3eed6288ae26de2c567bbfbbc01d8b0f6fc6c1c1649d4b385d"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
@@ -21,7 +21,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
netsurf_buildsystem >= 1.9
netsurf_buildsystem >= 1.10
"
BUILD_PREREQUIRES="
cmd:bison

View File

@@ -1,13 +1,13 @@
SUMMARY="NetSurf build framework"
DESCRIPTION="NetSurf build framework for compiling some of their libraries."
HOMEPAGE="https://git.netsurf-browser.org/buildsystem.git/"
COPYRIGHT="2009-2020 The NetSurf Browser project"
COPYRIGHT="2009-2023 The NetSurf Browser project"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/buildsystem-$portVersion.tar.gz"
SOURCE_FILENAME="netsurf-buildsystem-$portVersion.tar.gz"
SOURCE_DIR="buildsystem-$portVersion"
CHECKSUM_SHA256="93841e314a688209a20b8745f065393f3a90f01be68f45e96bc8d2f4a2aa9a2a"
CHECKSUM_SHA256="3d3e39d569e44677c4b179129bde614c65798e2b3e6253160239d1fd6eae4d79"
ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"

View File

@@ -1,11 +1,11 @@
SUMMARY="A decoding library for BMP and ICO images"
DESCRIPTION="Libnsbmp is a decoding library for BMP and ICO image file formats"
HOMEPAGE="https://www.netsurf-browser.org/projects/libnsbmp/"
COPYRIGHT="2003-2020 The NetSurf Developers"
COPYRIGHT="2003-2023 The NetSurf Developers"
LICENSE="MIT"
REVISION="2"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libnsbmp-$portVersion-src.tar.gz"
CHECKSUM_SHA256="79c49365f860ed451bfc4109eddec8de3e9b7ce5a3be069596bd2aa19279324f"
CHECKSUM_SHA256="5407a7682a122baaaa5a15b505290e2d37df54c13c5edef4b09d12c862d82293"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
@@ -33,7 +33,7 @@ BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
netsurf_buildsystem >= 1.9
netsurf_buildsystem >= 1.10
cmd:gcc$secondaryArchSuffix
cmd:make
"

View File

@@ -1,17 +1,14 @@
SUMMARY="A decoding library for GIF images"
DESCRIPTION="Libnsgif is a decoding library for GIF image file format"
HOMEPAGE="https://www.netsurf-browser.org/projects/libnsgif/"
COPYRIGHT="2003-2018 The NetSurf Developers"
COPYRIGHT="2003-2023 The NetSurf Developers"
LICENSE="MIT"
REVISION="3"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libnsgif-$portVersion-src.tar.gz"
CHECKSUM_SHA256="9eaea534cd70b53c5aaf45317ae957701685a6b4a88dbe34ed26f4faae879a4b"
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
PATCHES="libnsgif-$portVersion-gcc2.patchset"
fi
CHECKSUM_SHA256="6014c842f61454d2f5a0f8243d7a8d7bde9b7da3ccfdca2d346c7c0b2c4c061b"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
@@ -36,7 +33,7 @@ BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
netsurf_buildsystem >= 1.6
netsurf_buildsystem >= 1.10
cmd:gcc$secondaryArchSuffix
cmd:make
"

View File

@@ -1,46 +0,0 @@
From de35bdb4f508cdf9a900781209dfb196d4f5acbe Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Sun, 23 Sep 2018 08:41:22 +0000
Subject: C89 fixes for gcc2 compatibility
diff --git a/src/lzw.c b/src/lzw.c
index 31cf7d4..355b14e 100644
--- a/src/lzw.c
+++ b/src/lzw.c
@@ -178,11 +178,10 @@ static inline lzw_result lzw__next_code(
uint8_t bits_remaining_0 = (code_size < (8 - current_bit)) ?
code_size : (8 - current_bit);
uint8_t bits_remaining_1 = code_size - bits_remaining_0;
- uint8_t bits_used[3] = {
- [0] = bits_remaining_0,
- [1] = bits_remaining_1 < 8 ? bits_remaining_1 : 8,
- [2] = bits_remaining_1 - 8,
- };
+ uint8_t bits_used[3];
+ bits_used[0] = bits_remaining_0;
+ bits_used[1] = bits_remaining_1 < 8 ? bits_remaining_1 : 8;
+ bits_used[2] = bits_remaining_1 - 8;
while (true) {
const uint8_t *data = ctx->sb_data;
@@ -271,6 +270,7 @@ lzw_result lzw_decode_init(
const uint8_t ** const stack_pos_out)
{
struct lzw_dictionary_entry *table = ctx->table;
+ uint32_t i;
/* Initialise the input reading context */
ctx->input.data = compressed_data;
@@ -287,7 +287,7 @@ lzw_result lzw_decode_init(
ctx->eoi_code = (1 << code_size) + 1;
/* Initialise the standard dictionary entries */
- for (uint32_t i = 0; i < ctx->clear_code; ++i) {
+ for (i = 0; i < ctx->clear_code; ++i) {
table[i].first_value = i;
table[i].last_value = i;
}
--
2.19.0

View File

@@ -3,11 +3,11 @@ DESCRIPTION="The overall idea of the library is to take some SVG as input, \
and return a list of paths and texts which can be rendered easily. The \
library does not do the actual rendering."
HOMEPAGE="https://www.netsurf-browser.org/projects/libsvgtiny/"
COPYRIGHT="2003-2018 The NetSurf Developers"
COPYRIGHT="2003-2023 The NetSurf Developers"
LICENSE="MIT"
REVISION="4"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libsvgtiny-$portVersion-src.tar.gz"
CHECKSUM_SHA256="2c0dcf952f1cd882c3e95401ef9459f16dbb53c5d3e4512339b2f9eb769d7781"
CHECKSUM_SHA256="c357227f02e83fb2a76b12b901191a082229db1f007362e8f31c754510c2a01c"
ARCHITECTURES="all ?x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
@@ -38,14 +38,14 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libdom$secondaryArchSuffix
devel:libdom$secondaryArchSuffix >= 0.4.2
devel:libexpat$secondaryArchSuffix
devel:libhubbub$secondaryArchSuffix
devel:libparserutils$secondaryArchSuffix
devel:libhubbub$secondaryArchSuffix >= 0.3.8
devel:libparserutils$secondaryArchSuffix >= 0.2.5
devel:libwapcaplet$secondaryArchSuffix
"
BUILD_PREREQUIRES="
netsurf_buildsystem
netsurf_buildsystem >= 1.10
cmd:gcc$secondaryArchSuffix
cmd:gperf
cmd:make

View File

@@ -9,12 +9,12 @@ markup, both valid and invalid. As a result, Hubbub parses web content well.
If you are looking for an HTML5 parser in Python or Ruby, you may wish to \
look at html5lib."
HOMEPAGE="https://www.netsurf-browser.org/projects/hubbub/"
COPYRIGHT="2007-2020 J-M Bell"
COPYRIGHT="2007-2023 J-M Bell"
LICENSE="MIT"
REVISION="3"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libhubbub-$portVersion-src.tar.gz"
SOURCE_DIR="libhubbub-$portVersion"
CHECKSUM_SHA256="9e7ae253e6c9069e757eb9ad4e4846f38b4db52c0ca0151446a9fa4a977735b6"
CHECKSUM_SHA256="8ac1e6f5f3d48c05141d59391719534290c59cd029efc249eb4fdbac102cd5a5"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
@@ -42,12 +42,13 @@ REQUIRES_devel="
BUILD_REQUIRES="
devel:libiconv$secondaryArchSuffix
devel:libjson_c$secondaryArchSuffix
devel:libparserutils$secondaryArchSuffix >= 0.2.4
devel:libparserutils$secondaryArchSuffix >= 0.2.5
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
netsurf_buildsystem >= 1.9
netsurf_buildsystem >= 1.10
cmd:gcc$secondaryArchSuffix
cmd:gperf
cmd:make
cmd:perl
cmd:pkg_config$secondaryArchSuffix

View File

@@ -1,11 +1,11 @@
SUMMARY="An implementation of the W3C DOM"
DESCRIPTION="An implementation of the W3C DOM for NetSurf, written in C."
HOMEPAGE="https://www.netsurf-browser.org/projects/libdom/"
COPYRIGHT="2007-2020 J-M Bell"
COPYRIGHT="2007-2023 J-M Bell"
LICENSE="MIT"
REVISION="2"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libdom-$portVersion-src.tar.gz"
CHECKSUM_SHA256="98ee072471e55e208c9878e515c410ad462ca36f87b4afcbecad023f3a2cef4a"
CHECKSUM_SHA256="d05e45af16547014c2b0a3aecf3670fa13d419f505b3f5fc7ac8a1491fc30f3c"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
@@ -36,8 +36,8 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libexpat$secondaryArchSuffix
devel:libhubbub$secondaryArchSuffix >= 0.3.7
devel:libparserutils$secondaryArchSuffix >= 0.2.4
devel:libhubbub$secondaryArchSuffix >= 0.3.8
devel:libparserutils$secondaryArchSuffix >= 0.2.5
devel:libwapcaplet$secondaryArchSuffix >= 0.4.3
"
BUILD_PREREQUIRES="
@@ -45,7 +45,7 @@ BUILD_PREREQUIRES="
cmd:make
cmd:perl
cmd:pkg_config$secondaryArchSuffix
netsurf_buildsystem >= 1.9
netsurf_buildsystem >= 1.10
xml_parser
"

View File

@@ -13,11 +13,11 @@ The principal use in a web browser is to restrict supercookies being set,
although it can also serve secondary purposes in the UI such as domain
highlighting"
HOMEPAGE="https://source.netsurf-browser.org/libnspsl.git/"
COPYRIGHT="2016-2020 Vincent Sanders"
COPYRIGHT="2016-2023 Vincent Sanders"
LICENSE="MIT"
REVISION="2"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libnspsl-$portVersion-src.tar.gz"
CHECKSUM_SHA256="d3c58205cb78d310bf81ca55347a2d098719cecac7046bc367983b138b45020b"
CHECKSUM_SHA256="3684cec32f555daed431993e0bf6cbd9374f6c908446237e089f0b61d694ac80"
ARCHITECTURES="all x86_gcc2"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
@@ -43,7 +43,7 @@ REQUIRES_devel="
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
netsurf_buildsystem >= 1.9
netsurf_buildsystem >= 1.10
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix

View File

@@ -6,19 +6,17 @@ NetSurf is an open source web browser which uses its own layout engine. \
Its design goal is to be lightweight and portable. NetSurf provides \
features including tabbed browsing, bookmarks and page thumbnailing."
HOMEPAGE="https://www.netsurf-browser.org/"
COPYRIGHT="2003-2020 The NetSurf Browser project"
COPYRIGHT="2003-2023 The NetSurf Browser project"
LICENSE="GNU GPL v2"
REVISION="4"
REVISION="1"
# Do NOT use the netsurf-all package. It contains a bunch of subprojects which
# we build as separate packages so they can easily be used by other projects.
SOURCE_URI="https://download.netsurf-browser.org/netsurf/releases/source/netsurf-$portVersion-src.tar.gz"
CHECKSUM_SHA256="36484429e193614685c2ff246f55bd0a6dddf31a018bee45e0d1f7c28851995e"
PATCHES="netsurf-$portVersion.patchset"
CHECKSUM_SHA256="c28a626aefee428d053b13f88b5c440922245976522d12eaf137cfd32d201cb2"
PATCHES="netsurf-3.10.patchset"
ARCHITECTURES="all !x86_gcc2"
if [ "$targetArchitecture" = x86_gcc2 ]; then
SECONDARY_ARCHITECTURES="x86"
fi
PROVIDES="
netsurf$secondaryArchSuffix = $portVersion
@@ -50,22 +48,22 @@ REQUIRES="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcheck$secondaryArchSuffix
devel:libcss$secondaryArchSuffix >= 0.9.1
devel:libcss$secondaryArchSuffix >= 0.9.2
devel:libcurl$secondaryArchSuffix
devel:libdom$secondaryArchSuffix >= 0.4.1
devel:libdom$secondaryArchSuffix >= 0.4.2
devel:libexpat$secondaryArchSuffix
devel:libhubbub$secondaryArchSuffix >= 0.3.7
devel:libhubbub$secondaryArchSuffix >= 0.3.8
devel:libiconv$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libnsbmp$secondaryArchSuffix >= 0.1.6
devel:libnsgif$secondaryArchSuffix >= 0.2.1
devel:libnsbmp$secondaryArchSuffix >= 0.1.7
devel:libnsgif$secondaryArchSuffix >= 1.0.0
devel:libnslog$secondaryArchSuffix >= 0.1.3
devel:libnspsl$secondaryArchSuffix >= 0.1.6
devel:libnsutils$secondaryArchSuffix >= 0.1.0
devel:libparserutils$secondaryArchSuffix >= 0.2.4
devel:libnspsl$secondaryArchSuffix >= 0.1.7
devel:libnsutils$secondaryArchSuffix >= 0.1.1
devel:libparserutils$secondaryArchSuffix >= 0.2.5
devel:libpng16$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libsvgtiny$secondaryArchSuffix >= 0.1.7
devel:libsvgtiny$secondaryArchSuffix >= 0.1.8
devel:libutf8proc$secondaryArchSuffix
devel:libwapcaplet$secondaryArchSuffix >= 0.4.3
devel:libz$secondaryArchSuffix
@@ -78,7 +76,7 @@ BUILD_PREREQUIRES="
cmd:git
cmd:gperf
cmd:make
cmd:nsgenbind >= 0.8
cmd:nsgenbind >= 0.9
cmd:pkg_config$secondaryArchSuffix
cmd:xxd
"