libasr: add recipe for version 1.0.2

This commit is contained in:
Jerome Duval
2015-08-18 21:10:39 +00:00
parent 93b9c68ae3
commit 69814b4a51

View File

@@ -0,0 +1,79 @@
SUMMARY="Async Resolver Implementation from OpenBSD/OpenSMTPD"
DESCRIPTION="libasr is a free, simple and portable asynchronous resolver \
library. \
It allows to run dns queries and perform hostname resolutions in a fully \
asynchronous fashion. The implementation is thread-less, fork-less, and \
does not make use of signals or other \"tricks\" that might get in the \
developer's way. The API was initially developped for the OpenBSD \
operating system, where it is natively supported."
HOMEPAGE="https://github.com/OpenSMTPD/libasr/"
COPYRIGHT="2001 Jakob Schlyter
Internet Software Consortium
David Mazieres
Damien Miller
Markus Friedl
Todd C. Miller
Henning Brauer
Pierre-Yves Ritschard
Reyk Floeter
Theo de Raadt
Ted Unangst
Charles Longeau
The Regents of the University of California
Ian F. Darwin
Damien Miller
Eric P. Allman"
# wanted to add ISC, but the package creation failed although the license
# file is available in /system/data/licenses/
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://github.com/OpenSMTPD/libasr/archive/libasr-$portVersion.tar.gz"
SOURCE_DIR="libasr-libasr-$portVersion"
CHECKSUM_SHA256="4ab54264206e255fd6c2de982764bb5ce7857ec8f649ad3ee45771244593b6e1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libasr$secondaryArchSuffix = $portVersion
lib:libasr$secondaryArchSuffix = 0.0.2 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
"
PROVIDES_devel="
libasr${secondaryArchSuffix}_devel = $portVersion
devel:libasr$secondaryArchSuffix = 0.0.2 compat >= 0
"
REQUIRES_devel="
libasr$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libssl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:libtoolize
"
BUILD()
{
touch README NEWS AUTHORS
autoreconf -fi
runConfigure ./configure CFLAGS="-D_BSD_SOURCE"
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libasr
packageEntries devel $developDir
}