mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
82 lines
1.8 KiB
Bash
82 lines
1.8 KiB
Bash
SUMMARY="Internationalized Domain Names (IDN) implementation"
|
|
DESCRIPTION="Libidn is a package for internationalized string handling based \
|
|
on the Stringprep, Punycode, IDNA and TLD specifications."
|
|
HOMEPAGE="https://www.gnu.org/software/libidn/"
|
|
COPYRIGHT="2002-2018 Simon Josefsson"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://ftpmirror.gnu.org/libidn/libidn-$portVersion.tar.gz
|
|
https://ftp.gnu.org/gnu/libidn/libidn-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="3719e2975f2fb28605df3479c380af2cf4ab4e919e1506527e4c7670afff6e3c"
|
|
|
|
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
|
|
|
|
libVersion="11.6.18"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libidn$secondaryArchSuffix = $portVersion
|
|
cmd:idn$secondaryArchSuffix
|
|
lib:libidn$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libidn${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libidn$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libidn$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libiconv$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:automake
|
|
cmd:autoreconf
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gettext >= 0.19.3
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage libidn$secondaryArchSuffix \
|
|
$libDir/libidn.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm -f "$libDir"/libidn.la
|
|
|
|
prepareInstalledDevelLib libidn
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
"$developDir" \
|
|
"$manDir"/man3
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|