From b64369a8b48433f3a05b2372d1f48df2f00ae0a8 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 31 Mar 2015 15:48:32 +0000 Subject: Support NetBSD platforms with non-fixed endianess. Remove patch backups just before install to make patch updates easier. --- math/cgal/Makefile | 6 +++--- math/cgal/distinfo | 3 ++- math/cgal/patches/patch-include_CGAL_config.h | 20 ++++++++++++++++++++ 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 math/cgal/patches/patch-include_CGAL_config.h (limited to 'math/cgal') diff --git a/math/cgal/Makefile b/math/cgal/Makefile index 61477f4c3e3..92b040ec588 100644 --- a/math/cgal/Makefile +++ b/math/cgal/Makefile @@ -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 @@ LICENSE= gnu-lgpl-v3 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 --git a/math/cgal/distinfo b/math/cgal/distinfo index 0b52205da85..b938eb6fc2c 100644 --- a/math/cgal/distinfo +++ b/math/cgal/distinfo @@ -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 --git a/math/cgal/patches/patch-include_CGAL_config.h b/math/cgal/patches/patch-include_CGAL_config.h new file mode 100644 index 00000000000..adf5d4fbf33 --- /dev/null +++ b/math/cgal/patches/patch-include_CGAL_config.h @@ -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 ++# 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) \ -- cgit v1.2.3