contrib/imath/Pkgfile

23 lines
691 B
Plaintext
Raw Normal View History

2021-06-11 22:47:57 +02:00
# 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
2021-09-06 09:01:48 +02:00
version=3.1.3
2021-06-11 22:47:57 +02:00
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_C_FLAGS_RELEASE="$CFLAGS" \
2021-06-11 22:47:57 +02:00
-DCMAKE_CXX_FLAGS_RELEASE="$CFLAGS"
cmake --build build -v
DESTDIR=$PKG cmake --install build
}