NetSurf, libraries & tools update.

Fixes #4077
This commit is contained in:
Adrien Destugues
2019-08-09 17:38:20 +02:00
parent 077068b780
commit 29a666bb8a
20 changed files with 299 additions and 285 deletions

View File

@@ -0,0 +1,79 @@
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-2019 J-M Bell"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libdom-$portVersion-src.tar.gz"
CHECKSUM_SHA256="9eb9cd308136d5078fd9a342f391ef65071e8660a0ea29d50cb41d37a8c6b3c7"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libdom$secondaryArchSuffix = $portVersion
lib:libdom$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libexpat$secondaryArchSuffix
lib:libhubbub$secondaryArchSuffix
lib:libparserutils$secondaryArchSuffix
lib:libwapcaplet$secondaryArchSuffix
"
PROVIDES_devel="
libdom${secondaryArchSuffix}_devel = $portVersion
devel:libdom$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libdom$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libexpat$secondaryArchSuffix
devel:libhubbub$secondaryArchSuffix >= 0.3.6
devel:libparserutils$secondaryArchSuffix >= 0.2.4
devel:libwapcaplet$secondaryArchSuffix >= 0.4.2
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:perl
cmd:pkg_config$secondaryArchSuffix
netsurf_buildsystem >= 1.8
xml_parser
"
BUILD()
{
for linkage in lib-static lib-shared; do
make PREFIX="$prefix" NSSHARED=/system/data/netsurf-buildsystem \
COMPONENT_TYPE=$linkage
done
}
INSTALL()
{
for linkage in lib-static lib-shared; do
make PREFIX="$prefix" NSSHARED=/system/data/netsurf-buildsystem \
INCLUDEDIR=$relativeIncludeDir LIBDIR=$relativeLibDir \
COMPONENT_TYPE=$linkage \
install
done
prepareInstalledDevelLib libdom
fixPkgconfig
packageEntries devel \
"$developDir"
}
TEST()
{
make PREFIX="$prefix" NSSHARED=/system/data/netsurf-buildsystem test
}