summaryrefslogtreecommitdiff
path: root/libfixmath/Pkgfile
blob: 821378fa3eceb91241a40de1416ddfc9538c6b95 (plain)
    1 # Description: the math.h functions in fixed point (16.16) format
    2 # URL: https://github.com/PetteriAimonen/libfixmath
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on:
    5 
    6 name=libfixmath
    7 version=2022.12.27
    8 release=1
    9 _commit=ddff910fc03c6e9581ed186268b508dc0f51f4b7
   10 source=(https://github.com/PetteriAimonen/libfixmath/archive/$_commit/$name-$version.tar.gz)
   11 
   12 build() {
   13   cmake -S $name-$_commit -B build -G Ninja \
   14     -D CMAKE_INSTALL_PREFIX=/usr \
   15     -D CMAKE_INSTALL_LIBDIR=lib \
   16     -D CMAKE_BUILD_TYPE=Release \
   17     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   18     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   19     -Wno-dev
   20 
   21   cmake --build build
   22   #DESTDIR=$PKG cmake --install build
   23   mkdir -p $PKG/usr/{lib,include/libfixmath}
   24   cp build/liblibfixmath.a $PKG/usr/lib
   25   cp libfixmath-$_commit/libfixmath/*.h libfixmath-$_commit/libfixmath/*.hpp $PKG/usr/include/libfixmath
   26 }

Generated by cgit