22 lines
629 B
Plaintext
22 lines
629 B
Plaintext
|
# Description: A C++ and python library of 2D and 3D vector, matrix, and math operations
|
||
|
# URL: https://github.com/AcademySoftwareFoundation/Imath
|
||
|
# Maintainer: Stamatin Cristina, dear dot volgk at gmail dot com
|
||
|
# Depends on: cmake
|
||
|
|
||
|
name=imath
|
||
|
version=3.0.4
|
||
|
release=1
|
||
|
source=(https://github.com/AcademySoftwareFoundation/Imath/archive/v${version}/$name-$version.tar.gz)
|
||
|
|
||
|
build () {
|
||
|
cmake -SImath-$version -Bbuild \
|
||
|
-DPYTHON=OFF \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
-DCMAKE_CXX_FLAGS_RELEASE="$CFLAGS"
|
||
|
|
||
|
cmake --build build -v
|
||
|
|
||
|
DESTDIR=$PKG cmake --install build
|
||
|
}
|