aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdd Salkield <edd@salkield.uk>2022-01-30 02:06:49 +0000
committerdispatch <dispatch@listserv.local>2022-01-30 02:14:50 +0000
commit6ba1a055666820d7ba211c0ec2293e1443f2e20b (patch)
tree99872073c9a640f59d944ff8d1e0f3226c08bbc3
parent7e4a2cc81de5da04ecb67b06a2fa57c09cde8548 (diff)
downloadaports-patches/3916.tar.gz
aports-patches/3916.tar.bz2
aports-patches/3916.tar.xz
testing/levmar-dev: new aportpatches/3916
https://users.ics.forth.gr/~lourakis/levmar/ Native ANSI C implementations of the Levenberg-Marquardt optimization algorithm
-rw-r--r--testing/levmar-dev/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/levmar-dev/APKBUILD b/testing/levmar-dev/APKBUILD
new file mode 100644
index 0000000000..ff5bfddb55
--- /dev/null
+++ b/testing/levmar-dev/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Edd Salkield <edd@salkield.uk>
+# Maintainer: Edd Salkield <edd@salkield.uk>
+pkgname=levmar-dev
+pkgver=2.6
+pkgrel=0
+pkgdesc="Native ANSI C implementations of the Levenberg-Marquardt optimization algorithm"
+url="https://users.ics.forth.gr/~lourakis/levmar/"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="cmake"
+depends="lapack-dev blas-dev"
+source="levmar-$pkgver.tar.gz::https://users.ics.forth.gr/~lourakis/levmar/levmar-$pkgver.tgz"
+builddir="$srcdir/levmar-$pkgver"
+
+build() {
+ mkdir build
+ cd build
+ cmake -DNEED_F2C:BOOL=false ..
+ make
+}
+
+check() {
+ ./build/lmdemo
+}
+
+package() {
+ install -Dm644 build/liblevmar.a "$pkgdir"/usr/lib/liblevmar.a
+ install -Dm644 levmar.h "$pkgdir"/usr/include/levmar.h
+}
+
+sha512sums="
+5b4c64b63be9b29d6ad2df435af86cd2c2e3216313378561a670ac6a392a51bbf1951e96c6b1afb77c570f23dd8e194017808e46929fec2d8d9a7fe6cf37022b levmar-2.6.tar.gz
+"