mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 23:30:04 +02:00
82 lines
2.1 KiB
Bash
82 lines
2.1 KiB
Bash
SUMMARY="A library for processing UTF-8 encoded Unicode strings"
|
|
DESCRIPTION="utf8proc is a small, clean C library that provides Unicode \
|
|
normalization, case-folding, and other operations for data in the UTF-8 \
|
|
encoding, supporting Unicode version 7.0."
|
|
HOMEPAGE="https://julialang.org/utf8proc/"
|
|
COPYRIGHT="2006-2019 Public Software Group
|
|
2014-2019 Steven G. Johnson, Jiahao Chen, Tony Kelman, Jonas Fonseca, \
|
|
and other contributors listed in the git history"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libutf8proc-2.4.0-1-src.tar.gz"
|
|
SOURCE_DIR="libutf8proc-2.4.0-1"
|
|
CHECKSUM_SHA256="01ab1d6989c1c7755090db24c3f64e49f95c560ae49c26bec5142bac6802c472"
|
|
|
|
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="2"
|
|
libVersionCompat="$libVersion compat >= ${libVersion}"
|
|
|
|
PROVIDES="
|
|
libutf8proc2$secondaryArchSuffix = $portVersion
|
|
lib:libutf8proc$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libutf8proc2${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libutf8proc$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libutf8proc2$secondaryArchSuffix == $portVersion base
|
|
"
|
|
CONFLICTS_devel="
|
|
libutf8proc${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
netsurf_buildsystem >= 1.8
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage libutf8proc2$secondaryArchSuffix \
|
|
$libDir/libutf8proc.so.$libVersion
|
|
|
|
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 \
|
|
COMPONENT_TYPE=$linkage \
|
|
INCLUDEDIR=$relativeIncludeDir install \
|
|
LIBDIR=$relativeLibDir
|
|
done
|
|
|
|
prepareInstalledDevelLib libutf8proc
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
"$developDir"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build_haiku
|
|
# make check # test cases not supported yet with cmake
|
|
}
|