mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
cglm, new recipe (#6796)
This commit is contained in:
57
dev-libs/cglm/cglm-0.8.5.recipe
Normal file
57
dev-libs/cglm/cglm-0.8.5.recipe
Normal file
@@ -0,0 +1,57 @@
|
||||
SUMMARY="OpenGL Mathematics (glm) for C"
|
||||
DESCRIPTION="Highly optimized 2D|3D math library, also known as OpenGL Mathematics (glm) for C."
|
||||
HOMEPAGE="https://github.com/recp/cglm"
|
||||
COPYRIGHT="2005-2016 G-Truc Creation
|
||||
1998-2016 Geometric Tools, LLC
|
||||
2015-217 Recep Atlantas"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v0.8.5.tar.gz"
|
||||
CHECKSUM_SHA256="baefa21342d228a83c90708459a745d5aa9b0ebb381555eea42db1f37fdf7a5a"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
cglm$secondaryArchSuffix = $portVersion
|
||||
lib:libcglm$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
cglm${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libcglm$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
cglm$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
prepareInstalledDevelLib libcglm
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
Reference in New Issue
Block a user