aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2009-05-12 18:36:22 +0800
committerlwhsu <lwhsu@FreeBSD.org>2009-05-12 18:36:22 +0800
commitdca650a7dd22fb4137976f5b1869896d6e1b8548 (patch)
tree042e1dc835c918deac16eaf92bd634e877afb497 /devel
parent72afa68207bbcc1ed9d4fb36691b2964fb7c12d6 (diff)
downloadfreebsd-ports-gnome-dca650a7dd22fb4137976f5b1869896d6e1b8548.tar.gz
freebsd-ports-gnome-dca650a7dd22fb4137976f5b1869896d6e1b8548.tar.zst
freebsd-ports-gnome-dca650a7dd22fb4137976f5b1869896d6e1b8548.zip
- Add a patch to fix endianess detection
PR: ports/133487 Submitted by: Oliver Lehmann <lehmann AT ans-netz.de> Approved by: Alexander Churanov <alexanderchuranov AT gmail.com> (maintainer)
Diffstat (limited to 'devel')
-rw-r--r--devel/boost/Makefile1
-rw-r--r--devel/boost/files/patch-boost__detail__endian.hpp21
2 files changed, 22 insertions, 0 deletions
diff --git a/devel/boost/Makefile b/devel/boost/Makefile
index c784e8cd3b98..9d23baf7dc96 100644
--- a/devel/boost/Makefile
+++ b/devel/boost/Makefile
@@ -7,6 +7,7 @@
PORTNAME= boost
PORTVERSION= 1.37.0
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SOURCEFORGE
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g}
diff --git a/devel/boost/files/patch-boost__detail__endian.hpp b/devel/boost/files/patch-boost__detail__endian.hpp
new file mode 100644
index 000000000000..e42180b87460
--- /dev/null
+++ b/devel/boost/files/patch-boost__detail__endian.hpp
@@ -0,0 +1,21 @@
+--- boost/detail/endian.hpp.orig 2009-04-08 16:12:11.000000000 +0200
++++ boost/detail/endian.hpp 2009-04-08 16:13:28.000000000 +0200
+@@ -42,6 +42,18 @@
+ # error Unknown machine endianness detected.
+ # endif
+ # define BOOST_BYTE_ORDER __BYTE_ORDER
++#elif defined (__FreeBSD__)
++# include <machine/endian.h>
++# if (_BYTE_ORDER == _LITTLE_ENDIAN)
++# define BOOST_LITTLE_ENDIAN
++# elif (_BYTE_ORDER == _BIG_ENDIAN)
++# define BOOST_BIG_ENDIAN
++# elif (_BYTE_ORDER == _PDP_ENDIAN)
++# define BOOST_PDP_ENDIAN
++# else
++# error Unknown machine endianness detected.
++# endif
++# define BOOST_BYTE_ORDER _BYTE_ORDER
+ #elif defined(_BIG_ENDIAN)
+ # define BOOST_BIG_ENDIAN
+ # define BOOST_BYTE_ORDER 4321