mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
net-dns/libidn: new recipe for libidn2 (#2020)
This commit is contained in:
96
net-dns/libidn/libidn2-2.0.4.recipe
Normal file
96
net-dns/libidn/libidn2-2.0.4.recipe
Normal file
@@ -0,0 +1,96 @@
|
||||
SUMMARY="Internationalized Domain Names (IDN) implementation"
|
||||
DESCRIPTION="Libidn2 is a free software implementation of IDNA2008, Punycode \
|
||||
and TR46. Its purpose is to encode and decode internationalized domain names."
|
||||
HOMEPAGE="https://gitlab.com/libidn/libidn2"
|
||||
COPYRIGHT="2011-2017 Simon Josefsson"
|
||||
LICENSE="GNU GPL v2
|
||||
GNU GPL v3
|
||||
GNU LGPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://ftp.gnu.org/gnu/libidn/libidn2-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="644b6b03b285fb0ace02d241d59483d98bc462729d8bb3608d5cad5532f3d2f0"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="0.3.3"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libidn2$secondaryArchSuffix = $portVersion
|
||||
lib:libidn2$secondaryArchSuffix = $libVersionCompat
|
||||
cmd:idn2$commandSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libidn2${secondaryArchSuffix}_devel
|
||||
devel:libidn2$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libidn2$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:autoheader
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:makeinfo
|
||||
cmd:perl
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage libidn2$secondaryArchSuffix \
|
||||
$commandBinDir/idn2 \
|
||||
$libDir/libidn2.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure --omit-dirs binDir ./configure --bindir $commandBinDir
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm -f $libDir/libidn2.la
|
||||
rm -f $libDir/charset.alias
|
||||
rm -f $infoDir/dir
|
||||
|
||||
prepareInstalledDevelLib libidn2
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$infoDir \
|
||||
$manDir/man3
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user