contrib/lensfun/Pkgfile

23 lines
754 B
Plaintext
Raw Normal View History

2020-06-07 16:34:51 +02: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
2023-07-12 22:55:54 +02:00
# Depends on: glib
2020-06-07 16:34:51 +02:00
name=lensfun
2023-07-12 22:55:54 +02:00
version=0.3.4
2020-06-07 16:34:51 +02:00
release=1
source=(https://github.com/lensfun/lensfun/archive/v$version/$name-$version.tar.gz
2020-11-03 20:07:18 +01:00
lensfun-fix-python-install-dir.patch)
2020-06-07 16:34:51 +02:00
build() {
2020-11-08 12:40:43 +01: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-07 00:56:02 +01: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 12:40:43 +01:00
-Wno-dev
2020-06-07 16:34:51 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2020-06-07 16:34:51 +02:00
}