diff options
author | markd <markd@pkgsrc.org> | 2009-01-11 10:11:48 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2009-01-11 10:11:48 +0000 |
commit | e2402b931dc045ee0f66ff1d42c59311b0b00389 (patch) | |
tree | 3633e131c976177f32905875c28e5eacc6efc3d8 /math | |
parent | 3f21645b590c03a0a5bc823b07e50772471441e1 (diff) | |
download | pkgsrc-e2402b931dc045ee0f66ff1d42c59311b0b00389.tar.gz |
Use posix_memalign() on NetBSD. Bump PKGREVISION.
Diffstat (limited to 'math')
-rw-r--r-- | math/eigen2/Makefile | 3 | ||||
-rw-r--r-- | math/eigen2/distinfo | 3 | ||||
-rw-r--r-- | math/eigen2/patches/patch-aa | 22 |
3 files changed, 26 insertions, 2 deletions
diff --git a/math/eigen2/Makefile b/math/eigen2/Makefile index 505bd21d938..bfe1908660f 100644 --- a/math/eigen2/Makefile +++ b/math/eigen2/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.1.1.1 2009/01/10 01:02:47 markd Exp $ +# $NetBSD: Makefile,v 1.2 2009/01/11 10:11:48 markd Exp $ DISTNAME= eigen-2.0-beta5 PKGNAME= ${DISTNAME:S/-beta/beta/} +PKGREVISION= 1 CATEGORIES= math MASTER_SITES= http://download.tuxfamily.org/eigen/ EXTRACT_SUFX= .tar.bz2 diff --git a/math/eigen2/distinfo b/math/eigen2/distinfo index 538eaea09e8..dfc0ab59381 100644 --- a/math/eigen2/distinfo +++ b/math/eigen2/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2009/01/10 01:02:47 markd Exp $ +$NetBSD: distinfo,v 1.2 2009/01/11 10:11:48 markd Exp $ SHA1 (eigen-2.0-beta5.tar.bz2) = 045155ddd498f43168d197547fdc86755497a7a8 RMD160 (eigen-2.0-beta5.tar.bz2) = 8cf6b34f2499d7016f62419a8eae555988ec234b Size (eigen-2.0-beta5.tar.bz2) = 320560 bytes +SHA1 (patch-aa) = f43e78d120fcc2810fd934da05d91ddd2e3eb20b diff --git a/math/eigen2/patches/patch-aa b/math/eigen2/patches/patch-aa new file mode 100644 index 00000000000..de5b1728bef --- /dev/null +++ b/math/eigen2/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1 2009/01/11 10:11:48 markd Exp $ + +--- ./Eigen/src/Core/util/Memory.h.orig 2009-01-06 07:21:44.000000000 +1300 ++++ ./Eigen/src/Core/util/Memory.h +@@ -48,7 +48,7 @@ inline T* ei_aligned_malloc(size_t size) + if(ei_packet_traits<T>::size>1 || ei_force_aligned_malloc<T>::ret) + { + void *void_result; +- #ifdef __linux ++ #if defined(__linux) || defined(__NetBSD__) + #ifdef EIGEN_EXCEPTIONS + const int failed = + #endif +@@ -95,7 +95,7 @@ inline void ei_aligned_free(T* ptr, size + // need to call manually the dtor in case T is some user-defined fancy numeric type. + // always destruct an array starting from the end. + while(size) ptr[--size].~T(); +- #if defined(__linux) ++ #if defined(__linux) || defined(__NetBSD__) + free(ptr); + #elif defined(__APPLE__) + free(ptr); |