mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 03:00:05 +02:00
77 lines
1.7 KiB
Bash
77 lines
1.7 KiB
Bash
SUMMARY="A database engine"
|
|
DESCRIPTION="LMDB is compact, fast, powerful, and robust and implements \
|
|
a simplified variant of the BerkeleyDB (BDB) API."
|
|
HOMEPAGE="http://symas.com/mdb/"
|
|
COPYRIGHT="2011-2016 Howard Chu, Symas Corp."
|
|
LICENSE="OpenLDAP Public License"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/LMDB/lmdb/archive/LMDB_$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="1187b635a4cc415bb6972bba346121f81edd996e99b8f0816151d4090f90b559"
|
|
SOURCE_DIR="lmdb-LMDB_$portVersion"
|
|
PATCHES="lmdb-$portVersion.patchset"
|
|
|
|
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
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
fi
|
|
|
|
PROVIDES="
|
|
lmdb$secondaryArchSuffix = $portVersion compat >= 0
|
|
cmd:mdb_copy$commandSuffix
|
|
cmd:mdb_dump$commandSuffix
|
|
cmd:mdb_load$commandSuffix
|
|
cmd:mdb_stat$commandSuffix
|
|
lib:liblmdb$secondaryArchSuffix = $portVersion compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
lmdb$secondaryArchSuffix_devel = $portVersion compat >= 0
|
|
devel:liblmdb$secondaryArchSuffix = $portVersion compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
lmdb$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cd libraries/liblmdb
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd libraries/liblmdb
|
|
|
|
make install \
|
|
prefix="$prefix" \
|
|
bindir="$binDir" \
|
|
libdir="$libDir" \
|
|
includedir="$includeDir" \
|
|
datarootdir="$dataDir" \
|
|
mandir="$manDir/man1"
|
|
|
|
prepareInstalledDevelLib liblmdb
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make test
|
|
}
|