pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/cgal Support NetBSD platforms with non-fixed endi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8c1899d76035
branches:  trunk
changeset: 649087:8c1899d76035
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Mar 31 15:48:32 2015 +0000

description:
Support NetBSD platforms with non-fixed endianess. Remove patch backups
just before install to make patch updates easier.

diffstat:

 math/cgal/Makefile                            |   6 +++---
 math/cgal/distinfo                            |   3 ++-
 math/cgal/patches/patch-include_CGAL_config.h |  20 ++++++++++++++++++++
 3 files changed, 25 insertions(+), 4 deletions(-)

diffs (57 lines):

diff -r b9c0d797721f -r 8c1899d76035 math/cgal/Makefile
--- a/math/cgal/Makefile        Tue Mar 31 15:46:41 2015 +0000
+++ b/math/cgal/Makefile        Tue Mar 31 15:48:32 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2014/11/07 19:39:25 adam Exp $
+# $NetBSD: Makefile,v 1.26 2015/03/31 15:48:32 joerg Exp $
 
 PKGNAME=       cgal-3.9
 DISTNAME=      CGAL-3.9
@@ -14,8 +14,8 @@
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
 
-post-patch:
-       cd ${WRKSRC} && rm -f include/CGAL/Mesh_2/Do_not_refine_edges.h.orig
+pre-install:
+       cd ${WRKSRC} && rm -f include/CGAL/Mesh_2/Do_not_refine_edges.h.orig include/CGAL/config.h.orig
 
 .include "../../devel/boost-headers/buildlink3.mk"
 .include "../../devel/boost-libs/buildlink3.mk"
diff -r b9c0d797721f -r 8c1899d76035 math/cgal/distinfo
--- a/math/cgal/distinfo        Tue Mar 31 15:46:41 2015 +0000
+++ b/math/cgal/distinfo        Tue Mar 31 15:48:32 2015 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.2 2014/02/08 12:16:12 wiedi Exp $
+$NetBSD: distinfo,v 1.3 2015/03/31 15:48:32 joerg Exp $
 
 SHA1 (CGAL-3.9.tar.gz) = cc99fad7116f221b6301326834f71ff65cebf2eb
 RMD160 (CGAL-3.9.tar.gz) = 0a5a929ecedeeac3833ec90f802b7f5ac069ad47
 Size (CGAL-3.9.tar.gz) = 14276059 bytes
 SHA1 (patch-include_CGAL_Mesh__2_Do__not__refine__edges.h) = 5a66b2ff56d3e20e554ab73829e3c8c735144489
+SHA1 (patch-include_CGAL_config.h) = ba29667305fc4868a9995048801408e95d75bd41
 SHA1 (patch-manpage-installation) = c664f64ccc9507871c1ada46b983f0d006b13fe6
diff -r b9c0d797721f -r 8c1899d76035 math/cgal/patches/patch-include_CGAL_config.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/cgal/patches/patch-include_CGAL_config.h     Tue Mar 31 15:48:32 2015 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-include_CGAL_config.h,v 1.1 2015/03/31 15:48:32 joerg Exp $
+
+--- include/CGAL/config.h.orig 2015-03-27 19:26:56.000000000 +0000
++++ include/CGAL/config.h
+@@ -109,6 +109,15 @@
+ #  else
+ #    error Unknown endianness
+ #  endif
++#elif defined(__NetBSD__)
++#  include <sys/endian.h>
++#  if _BYTE_ORDER == _LITTLE_ENDIAN
++#    define CGAL_LITTLE_ENDIAN
++#  elif _BYTE_ORDER == _BIG_ENDIAN
++#    define CGAL_BIG_ENDIAN
++#  else
++#  error Unknown endianness
++#  endif
+ #elif defined(__sparc) || defined(__sparc__) \
+    || defined(_POWER) || defined(__powerpc__) \
+    || defined(__ppc__) || defined(__hppa) \



Home | Main Index | Thread Index | Old Index