Files
haikuports/dev-libs/libmaxminddb/libmaxminddb-1.2.0.recipe
fbrosson 6855838b0d libmaxminddb: bump to version 1.2.0.
* Bump version.
* Refresh SUMMARY and DESCRIPTION.
* Add x86 and x86_64 to ARCHITECTURES.
* Shorten SOURCE_URI by making it start with $HOMEPAGE.
* Add missing libmaxminddb_devel in PROVIDES_devel.
* On x86_gcc2, install mmdblookup instead of mmdblookup-x86.
* Add call to fixPkgconfig in INSTALL() and move man3 to devel.
2016-04-06 22:40:04 +00:00

78 lines
1.9 KiB
Bash

SUMMARY="Library for the MaxMind DB and GeoIP2 file formats"
DESCRIPTION="The libmaxminddb library is a C library for reading MaxMind DB \
files, including the GeoIP2 databases from MaxMind. This is a custom binary \
format designed to facilitate fast lookups of IP addresses while allowing for \
great flexibility in the type of data associated with an address.
The libmaxminddb library comes with a command line utility, mmdblookup, which \
allows to look up an IP address in a GeoIP2 or MaxMind DB file. The \
geoipupdate tool, available in a separate package, allows to download such \
files."
HOMEPAGE="https://github.com/maxmind/libmaxminddb"
COPYRIGHT="2013-2016 Maxmind"
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="$HOMEPAGE/releases/download/$portVersion/libmaxminddb-$portVersion.tar.gz"
CHECKSUM_SHA256="1fe859ed714f94fc902a145453f7e1b5cd928718179ba4c4fcb7f6ae0df7ad37"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
libmaxminddb$secondaryArchSuffix = $portVersion
cmd:mmdblookup$commandSuffix
lib:libmaxminddb$secondaryArchSuffix = 0.0.7
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libmaxminddb${secondaryArchSuffix}_devel = $portVersion
devel:libmaxminddb$secondaryArchSuffix = 0.0.7
"
REQUIRES_devel="
libmaxminddb$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
LDFLAGS=-lnetwork runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLib libmaxminddb
fixPkgconfig
packageEntries devel \
$developDir \
$manDir/man3
}
TEST()
{
make check
}