102 lines
2.9 KiB
Bash
102 lines
2.9 KiB
Bash
SUMMARY="Absolutely Wonderful C++ Library"
|
|
DESCRIPTION="
|
|
Claw is a generalist library written in C++ and providing various structures
|
|
and algorithms, like containers, string algorithms, tweeners, Bézier curves and
|
|
more.
|
|
|
|
The story of Claw begins when I wanted to group all the small tools I have made
|
|
along my studies at the university. The library progress from time to time,
|
|
mostly when I need a new tool for Plee the Bear, a game I am actively working
|
|
on.
|
|
|
|
Claw wants to be standard compliant and as portable as possible. Of course,
|
|
because I'm currently the only developer, the task is a little bit difficult
|
|
and you could have some minor problems. If you experience any problem, please
|
|
let me know by contacting me.
|
|
|
|
Claw stands for \"C++ Library Absolutely Wonderful\"."
|
|
HOMEPAGE="http://libclaw.sourceforge.net/"
|
|
COPYRIGHT="2008-2014 Julien Jorge"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="8"
|
|
SOURCE_URI="http://sourceforge.net/projects/libclaw/files/libclaw/$portVersion/libclaw-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="0be289da7f43b1892575f14b27860af5d1e1f6961eae11653d64e625fd7924b7"
|
|
PATCHES="libclaw-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libclaw$secondaryArchSuffix = $portVersion
|
|
lib:libclaw_application$secondaryArchSuffix
|
|
lib:libclaw_configuration_file$secondaryArchSuffix
|
|
lib:libclaw_dynamic_library$secondaryArchSuffix
|
|
lib:libclaw_graphic$secondaryArchSuffix
|
|
lib:libclaw_logger$secondaryArchSuffix
|
|
lib:libclaw_net$secondaryArchSuffix
|
|
lib:libclaw_tween$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libclaw${secondaryArchSuffix}_devel = $portVersion
|
|
cmd:claw_config
|
|
devel:libclaw_application$secondaryArchSuffix
|
|
devel:libclaw_configuration_file$secondaryArchSuffix
|
|
devel:libclaw_dynamic_library$secondaryArchSuffix
|
|
devel:libclaw_graphic$secondaryArchSuffix
|
|
devel:libclaw_logger$secondaryArchSuffix
|
|
devel:libclaw_net$secondaryArchSuffix
|
|
devel:libclaw_tween$secondaryArchSuffix
|
|
"
|
|
REQUIRES_devel="
|
|
haiku$secondaryArchSuffix
|
|
libclaw$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_system$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake >= 3.0
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake . -DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DCMAKE_CXX_FLAGS="-std=c++98"
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libclaw_application libclaw_configuration_file \
|
|
libclaw_dynamic_library libclaw_graphic libclaw_logger libclaw_net \
|
|
libclaw_tween
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/libclaw/ \
|
|
$prefix/bin/
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
true
|
|
}
|