diff options
-rw-r--r-- | math/cgal/Makefile | 6 | ||||
-rw-r--r-- | math/cgal/distinfo | 3 | ||||
-rw-r--r-- | math/cgal/patches/patch-include_CGAL_config.h | 20 |
3 files changed, 25 insertions, 4 deletions
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 <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) \ |