mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
81 lines
2.0 KiB
Bash
81 lines
2.0 KiB
Bash
SUMMARY="Generate static code representation of the Public suffix list"
|
|
DESCRIPTION="Public suffix list
|
|
------------------
|
|
|
|
The public suffix list is a database of top level domain names. The database
|
|
allows an application to determine if if a domain name requires an additional
|
|
label to be valid.
|
|
|
|
Uses
|
|
----
|
|
|
|
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-2018 Vincent Sanders"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libnspsl-$portVersion-src.tar.gz"
|
|
CHECKSUM_SHA256="8de2595a4479cf45e9144594b3736710c21b2ed0c000b45fefaa24a2c40c53e7"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libnspsl$secondaryArchSuffix = $portVersion
|
|
lib:libnspsl$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libnspsl${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libnspsl$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libnspsl$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
netsurf_buildsystem >= 1.6
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
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 libnspsl
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
"$developDir"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make PREFIX="$prefix" NSSHARED=/system/data/netsurf-buildsystem \
|
|
test
|
|
}
|