mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
58 lines
1.2 KiB
Bash
58 lines
1.2 KiB
Bash
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
|
|
}
|