From 8d55d1b9e293bf7239ac314d497e3ba2437796b3 Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 8 Nov 2020 11:40:43 +0000 Subject: [PATCH] lensfun: updated cmake syntax --- lensfun/.signature | 4 ++-- lensfun/Pkgfile | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/lensfun/.signature b/lensfun/.signature index 393f5ef7f..afca8e8f3 100644 --- a/lensfun/.signature +++ b/lensfun/.signature @@ -1,6 +1,6 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF3wV6e8V51AXxR7d2i510QVlwdMZ4QLPAxgrqpLIRtZG7o/VKm4SXMwdqhJUA26UieSZOQvSXrZaUeebgQBSdMQA= -SHA256 (Pkgfile) = 0a3091ed62726b60c2d3878b6ba8c2ac86495b1c0172571e45beec1b8adfb2bd +RWSagIOpLGJF30k/a7fcqbZdKDo/Li9s6PNPY+kawfsuoVziecmdSAedvsGfxupexj8cRFH71xkw209RmzQX0UdEJjnVyMMv3Q4= +SHA256 (Pkgfile) = 654fc1f5e576630a0b99cf926362de760f63dfb0ab010f4b26d32d1b77be7fbf SHA256 (.footprint) = 04abd4549e0b16e2332cbb2314fadbdc962ee902b9193df64425b39c456df854 SHA256 (lensfun-0.3.2.tar.gz) = ae8bcad46614ca47f5bda65b00af4a257a9564a61725df9c74cb260da544d331 SHA256 (lensfun-fix-python-install-dir.patch) = 11e0f9ce2d5c5fef4373ce6adbb19dbcbcd8a10efa02447db9c92b03798d5654 diff --git a/lensfun/Pkgfile b/lensfun/Pkgfile index e651b3923..444acb67e 100644 --- a/lensfun/Pkgfile +++ b/lensfun/Pkgfile @@ -11,11 +11,13 @@ source=(https://github.com/lensfun/lensfun/archive/v$version/$name-$version.tar. build() { patch -p1 -d $name-$version -i $SRC/lensfun-fix-python-install-dir.patch - cmake -S$name-$version -Bbuild -GNinja \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_CXX_FLAGS="${CXXFLAGS} -fno-delete-null-pointer-checks" + cmake -S $name-$version -B build -G Ninja \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_INSTALL_LIBDIR=lib \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fno-delete-null-pointer-checks -DNDEBUG" \ + -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fno-delete-null-pointer-checks -DNDEBUG" \ + -Wno-dev cmake --build build DESTDIR=$PKG cmake --install build }