add support for cmake version 4

This commit is contained in:
Naoto Kondo 2025-04-28 23:27:27 +09:00
parent d73cb5a412
commit 5e86853d8d
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
pkgbase = librealsense pkgbase = librealsense
pkgdesc = Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 & L500 series and the SR300). pkgdesc = Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 & L500 series and the SR300).
pkgver = 2.55.1 pkgver = 2.55.1
pkgrel = 1 pkgrel = 2
url = https://github.com/IntelRealSense/librealsense url = https://github.com/IntelRealSense/librealsense
arch = x86_64 arch = x86_64
license = Apache license = Apache

View File

@ -8,7 +8,7 @@ _L53X_VER=3.5.5.1
pkgname=librealsense pkgname=librealsense
pkgver=2.55.1 pkgver=2.55.1
pkgrel=1 pkgrel=2
pkgdesc="Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 & L500 series and the SR300)." pkgdesc="Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 & L500 series and the SR300)."
arch=('x86_64') arch=('x86_64')
url="https://github.com/IntelRealSense/librealsense" url="https://github.com/IntelRealSense/librealsense"
@ -47,6 +47,7 @@ build() {
CXXFLAGS="${CXXFLAGS} -Wformat -pthread" \ CXXFLAGS="${CXXFLAGS} -Wformat -pthread" \
unset HOME unset HOME
cmake .. \ cmake .. \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_SBINDIR=bin \ -DCMAKE_INSTALL_SBINDIR=bin \