Files
haikuports/media-libs/tweeny/tweeny-3.2.0.recipe
Jerome Duval 48f1e86bac tweeny: bump version
move cmake files to $dataDir
2021-10-20 16:09:56 +02:00

44 lines
1008 B
Bash

SUMMARY="A modern C++ tweening library"
DESCRIPTION="One-header tweening library with intuitive syntax."
HOMEPAGE="https://github.com/mobius3/tweeny"
COPYRIGHT="2016-2021 Leonardo Guilherme Lucena de Freitas \
2016 Guilherme R. Costa"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/mobius3/tweeny/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="2be7db9e0354da31f020b77474e2d547dbbaa8999a6a4bea4b388e6d31e4ef07"
SOURCE_FILENAME="tweeny-$portVersion.tar.gz"
ARCHITECTURES="any"
PROVIDES="
tweeny = $portVersion
devel:tweeny = $portVersion
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:make
"
BUILD()
{
sed -i -e "s|DESTINATION include/tweeny|DESTINATION $relativeIncludeDir/tweeny|" \
CMakeLists.txt
sed -i -e "s|:include/tweeny|:$relativeIncludeDir/tweeny|" \
CMakeLists.txt
cmake $cmakeDirArgs -S. -Bbuild \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=/bin/true
unset -f cmake
cmake --build build
}
INSTALL()
{
unset -f cmake
cmake --install build
mv $prefix/lib $dataDir
}