mdds: add recipes.

* libetonyek requires specifically 1.0.
* It is header only, so it needs to be specified explicitly
  in dependencies. That is why I defined mdds in mdds12's PROVIDES.
This commit is contained in:
Kacper Kasper
2017-01-06 07:40:34 +01:00
parent b3df23a546
commit b9b8fd0a70
2 changed files with 130 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
SUMMARY="Multi-Dimensional Data Structure"
DESCRIPTION="mdds is a collection of multi-dimensional data structure \
and indexing algorithms."
HOMEPAGE="https://gitlab.com/mdds/mdds"
COPYRIGHT="2010-2016 Kohei Yoshida et al."
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://kohei.us/files/mdds/src/mdds_$portVersion.tar.bz2"
CHECKSUM_SHA256="ef8abc1236b54c7ca16ae1ee38abfb9cdbc5d1e6a2427c65b92b8c1003e3bf56"
SOURCE_DIR="mdds_$portVersion"
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mdds$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
mdds${secondaryArchSuffix}_devel = $portVersion
"
REQUIRES_devel="
mdds$secondaryArchSuffix == $portVersion base
devel:libboost_system$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libboost_system$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:g++$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $developLibDir/pkgconfig
mv $dataDir/pkgconfig/mdds-1.0.pc $developLibDir/pkgconfig
rm -rf $dataDir/pkgconfig
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make check
}

View File

@@ -0,0 +1,67 @@
SUMMARY="Multi-Dimensional Data Structure"
DESCRIPTION="mdds is a collection of multi-dimensional data structure \
and indexing algorithms."
HOMEPAGE="https://gitlab.com/mdds/mdds"
COPYRIGHT="2010-2016 Kohei Yoshida et al."
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://kohei.us/files/mdds/src/mdds-$portVersion.tar.bz2"
CHECKSUM_SHA256="141e730b39110434b02cd844c5ad3442103f7c35f7e9a4d6a9f8af813594cc9d"
SOURCE_DIR="mdds-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mdds$secondaryArchSuffix = $portVersion compat >= 1.2
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
mdds${secondaryArchSuffix}_devel = $portVersion compat >= 1.2
"
REQUIRES_devel="
mdds$secondaryArchSuffix == $portVersion base
devel:libboost_system$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libboost_system$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:g++$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
aclocal
automake -a -c --foreign
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $developLibDir/pkgconfig
mv $dataDir/pkgconfig/mdds-1.2.pc $developLibDir/pkgconfig
rm -rf $dataDir/pkgconfig
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make check
}