contrib/imath/Pkgfile
2022-01-25 11:25:21 +02:00

23 lines
691 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.1.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_C_FLAGS_RELEASE="$CFLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE="$CFLAGS"
cmake --build build -v
DESTDIR=$PKG cmake --install build
}