mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
92 lines
2.1 KiB
Bash
92 lines
2.1 KiB
Bash
SUMMARY="Mail Framework for C Language"
|
|
DESCRIPTION="The purpose of this mail library is to provide a portable, \
|
|
efficient framework for different kinds of mail access: IMAP, SMTP, POP and \
|
|
NNTP.
|
|
It provides an API for C language."
|
|
HOMEPAGE="http://www.etpan.org/libetpan.html"
|
|
COPYRIGHT="2001-2005 DINH Viet Hoa"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="3"
|
|
SOURCE_URI="https://github.com/dinhvh/libetpan/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="82ec8ea11d239c9967dbd1717cac09c8330a558e025b3e4dc6a7594e80d13bb1"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="20.5.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libetpan$secondaryArchSuffix = $portVersion
|
|
lib:libetpan$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libexpat$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libsasl2$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libetpan${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libetpan$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libetpan$secondaryArchSuffix == $portVersion base
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libexpat$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libsasl2$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix >= 3
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libexpat$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libsasl2$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix >= 3
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure --disable-db
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libetpan.la $libDir/libetpan.a
|
|
|
|
prepareInstalledDevelLibs libetpan
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|