aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2006-07-25 00:25:46 +0800
committerfjoe <fjoe@FreeBSD.org>2006-07-25 00:25:46 +0800
commitb1a72bb591050efb30f692983ab090c98e3786b0 (patch)
tree0e73fc64783194771374734f88be62b4f9686fe3 /net
parent394f3c28165564e06448575c6aa9bdf72eca6e7c (diff)
downloadfreebsd-ports-graphics-b1a72bb591050efb30f692983ab090c98e3786b0.tar.gz
freebsd-ports-graphics-b1a72bb591050efb30f692983ab090c98e3786b0.tar.zst
freebsd-ports-graphics-b1a72bb591050efb30f692983ab090c98e3786b0.zip
Fix build on sparc64 (and any other big-endian arch).
Bump PORTREVISION. Obtained from: net/asterisk port
Diffstat (limited to 'net')
-rw-r--r--net/asterisk-bristuff/Makefile4
-rw-r--r--net/asterisk-bristuff/files/patch-channels-chan_skinny.c14
2 files changed, 14 insertions, 4 deletions
diff --git a/net/asterisk-bristuff/Makefile b/net/asterisk-bristuff/Makefile
index 38610fed79b..8cbf6106ab9 100644
--- a/net/asterisk-bristuff/Makefile
+++ b/net/asterisk-bristuff/Makefile
@@ -47,10 +47,6 @@ MAN8= asterisk.8 astgenkey.8 autosupport.8 safe_asterisk.8
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64" || ${ARCH} == "sparc64"
-BROKEN= does not compile on ${ARCH}
-.endif
-
.if ${ARCH} != "i386"
WITHOUT_H323= 1
WITHOUT_ZAPTEL= 1
diff --git a/net/asterisk-bristuff/files/patch-channels-chan_skinny.c b/net/asterisk-bristuff/files/patch-channels-chan_skinny.c
new file mode 100644
index 00000000000..043067a1ce6
--- /dev/null
+++ b/net/asterisk-bristuff/files/patch-channels-chan_skinny.c
@@ -0,0 +1,14 @@
+
+$FreeBSD: /tmp/pcvs/ports/net/asterisk-bristuff/files/Attic/patch-channels-chan_skinny.c,v 1.1 2006-07-24 16:25:46 fjoe Exp $
+
+--- channels/chan_skinny.c.orig
++++ channels/chan_skinny.c
+@@ -99,7 +99,7 @@
+ #define htolel(x) (x)
+ #define htoles(x) (x)
+ #else
+-#if defined(SOLARIS) || defined(__Darwin__) || defined(__NetBSD__)
++#if defined(SOLARIS) || defined(__Darwin__) || defined(__NetBSD__) || defined(__FreeBSD__)
+ #define __bswap_16(x) \
+ ((((x) & 0xff00) >> 8) | \
+ (((x) & 0x00ff) << 8))