[crux-commits] ports/contrib (3.6): libixion: enable cuda if the system provides it

crux at crux.nu crux at crux.nu
Sat Apr 24 11:31:40 UTC 2021


commit ca8473c97833440bfce6118cc2145e9c9d8eacd1
Author: Tim Biermann <tbier at posteo.de>
Date:   Sat Apr 24 11:21:58 2021 +0000

    libixion: enable cuda if the system provides it

diff --git a/libixion/.signature b/libixion/.signature
index 0a1c6147d..392ec3b5b 100644
--- a/libixion/.signature
+++ b/libixion/.signature
@@ -1,5 +1,5 @@
 untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF33RNv6jsKk2m0KbKVwz7ad/kkK374KpNCmw3L3iMc+5fwphKd8mYZyvoQjTeA5S0+F6kKaEAlYw9LRWorykVhQo=
-SHA256 (Pkgfile) = 16ed265ab8d3fe369925edc1fd1a8800d5e7301eeb9739173915534d14504912
+RWSagIOpLGJF36Qreo62YgumFy1CgRnfIbwLVyl/e6rZvGPknryl0bYuzmLjNbniMr/0f+rSGcJIWTy+nmUFpqWeOrHeviBDtw4=
+SHA256 (Pkgfile) = 36d2e33cd2b1dbcf27a871bb3d8b0e9a036bce5ef81c4ab19685228a103334d5
 SHA256 (.footprint) = e02d20a717b770af66295393f29e6d24b495d029dd5f6ffa89daf4e041069d99
 SHA256 (libixion-0.16.1.tar.xz) = 426c643b3c346d546027c0226619abb2e59848e94470b9b5aa6365e26125089f
diff --git a/libixion/Pkgfile b/libixion/Pkgfile
index cd3ff9b38..671935e30 100644
--- a/libixion/Pkgfile
+++ b/libixion/Pkgfile
@@ -5,14 +5,17 @@
 
 name=libixion
 version=0.16.1
-release=1
+release=2
 source=(https://kohei.us/files/ixion/src/$name-$version.tar.xz)
 
 build() {
   cd $name-$version
+
+  [[ -e /usr/lib/libcuda.so ]] && PKGMK_LIBIXION+=' --enable-cuda'
+
   CFLAGS="-O2 -fPIC" \
   CXXFLAGS="-O2 -fPIC" \
-  ./configure --prefix=/usr
+  ./configure --prefix=/usr $PKGMK_LIBIXION
   make
   make DESTDIR=$PKG install
 }


More information about the crux-commits mailing list