2020-06-07 14:34:51 +00:00
|
|
|
# Description: Database of photographic lenses and a library that allows advanced access to the database
|
|
|
|
# URL: https://lensfun.github.io/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: cmake glib
|
|
|
|
|
|
|
|
name=lensfun
|
|
|
|
version=0.3.2
|
|
|
|
release=1
|
|
|
|
source=(https://github.com/lensfun/lensfun/archive/v$version/$name-$version.tar.gz
|
2020-11-03 19:07:18 +00:00
|
|
|
lensfun-fix-python-install-dir.patch)
|
2020-06-07 14:34:51 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
patch -p1 -d $name-$version -i $SRC/lensfun-fix-python-install-dir.patch
|
2020-11-08 11:40:43 +00:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:56:02 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fno-delete-null-pointer-checks" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fno-delete-null-pointer-checks" \
|
2020-11-08 11:40:43 +00:00
|
|
|
-Wno-dev
|
2020-06-07 14:34:51 +00:00
|
|
|
cmake --build build
|
2020-07-08 13:01:36 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-06-07 14:34:51 +00:00
|
|
|
}
|