Files
haikuports/net-libs/libnspsl/libnspsl-0.1.2.recipe
2017-10-23 05:14:03 +02:00

74 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-2017 Vincent Sanders"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://download.netsurf-browser.org/libs/releases/libnspsl-$portVersion-src.tar.gz"
CHECKSUM_SHA256="c9031e564fa8a5c806801443bc7674b68a9a8e83dc2470d5ded965fe392c3572"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libnspsl$secondaryArchSuffix = $portVersion
lib:libnspsl$secondaryArchSuffix = $portVersion compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libnspsl${secondaryArchSuffix}_devel = $portVersion
devel:libnspsl$secondaryArchSuffix = $portVersion compat >= 0
"
REQUIRES_devel="
lbnspsl$secondaryArchSuffix == $portVersion base
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
netsurf_buildsystem >= 1.6
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
COMPONENT_TYPE=lib-shared
}
INSTALL()
{
make install PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
INCLUDEDIR=$relativeIncludeDir LIBDIR=$relativeLibDir
make install PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
INCLUDEDIR=$relativeIncludeDir LIBDIR=$relativeLibDir \
COMPONENT_TYPE=lib-shared
prepareInstalledDevelLib libnspsl
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
test
}