summaryrefslogtreecommitdiff
path: root/devel/libcwd
diff options
context:
space:
mode:
authorThomas Abthorpe <tabthorpe@FreeBSD.org>2008-01-17 15:37:05 +0000
committerThomas Abthorpe <tabthorpe@FreeBSD.org>2008-01-17 15:37:05 +0000
commit8b8c94b16718485a96095437b60d73684beeb76e (patch)
tree8d751974b43254b08bb5c05a3d92b66de3525f29 /devel/libcwd
parentUpdate to 4.3.1. (diff)
- Unbreak on sparc64
* Thanks to upline developer Carlo Wood for the patch * Thanks to Carl Johan Gustavsson for the sparc64 build test
Notes
Notes: svn path=/head/; revision=205751
Diffstat (limited to 'devel/libcwd')
-rw-r--r--devel/libcwd/Makefile8
-rw-r--r--devel/libcwd/files/patch-elfxx.cc20
2 files changed, 21 insertions, 7 deletions
diff --git a/devel/libcwd/Makefile b/devel/libcwd/Makefile
index 43c7c8a11353..3720e01e4ff0 100644
--- a/devel/libcwd/Makefile
+++ b/devel/libcwd/Makefile
@@ -20,12 +20,6 @@ USE_GMAKE= yes
USE_GNOME= pkgconfig
USE_LDCONFIG= yes
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-BROKEN= does not compile on sparc64
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's,test x"\$$libcwd_config_alloc" = x"yes",false,g' \
-E -e 's,^(DEFS=)(.*),\1"\2 -D__GNU_LIBRARY__=yes",g' \
@@ -42,4 +36,4 @@ post-patch:
pre-configure:
@${CP} ${LTMAIN} ${WRKSRC}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/libcwd/files/patch-elfxx.cc b/devel/libcwd/files/patch-elfxx.cc
new file mode 100644
index 000000000000..408c85b0cb4e
--- /dev/null
+++ b/devel/libcwd/files/patch-elfxx.cc
@@ -0,0 +1,20 @@
+Index: elfxx.cc
+===================================================================
+--- elfxx.cc (revision 1343)
++++ elfxx.cc (working copy)
+@@ -1382,13 +1382,13 @@
+ #if __BYTE_ORDER == __LITTLE_ENDIAN
+ ELFDATA2LSB
+ #elif __BYTE_ORDER == __BIG_ENDIAN
+- ELFDATAMSB
++ ELFDATA2MSB
+ #else
+ ELFDATANONE
+ #endif
+ #else // !__BYTE_ORDER
+ #ifdef WORDS_BIGENDIAN
+- ELFDATAMSB
++ ELFDATA2MSB
+ #else
+ ELFDATA2LSB
+ #endif