aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk10
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2006-05-23 02:47:04 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2006-05-23 02:47:04 +0000
commit752856337da087085142aa4e9912eb3d046662fc (patch)
tree8cd14dbe24101f650f179caa8932702a4f078950 /net/asterisk10
parenta87f3a0b575b0d772195ed8bb4790bd6cfc865a2 (diff)
downloadports-752856337da087085142aa4e9912eb3d046662fc.tar.gz
ports-752856337da087085142aa4e9912eb3d046662fc.zip
Fix on sparc64.
Submitted by: ahze
Notes
Notes: svn path=/head/; revision=163147
Diffstat (limited to 'net/asterisk10')
-rw-r--r--net/asterisk10/Makefile2
-rw-r--r--net/asterisk10/files/patch-channels::chan_skinny.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/net/asterisk10/Makefile b/net/asterisk10/Makefile
index 01f94dd0f5e3..278eca6ed66d 100644
--- a/net/asterisk10/Makefile
+++ b/net/asterisk10/Makefile
@@ -28,7 +28,7 @@ LIB_DEPENDS= speex.3:${PORTSDIR}/audio/speex \
curl.3:${PORTSDIR}/ftp/curl
RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
-ONLY_FOR_ARCHS= i386 amd64
+ONLY_FOR_ARCHS= i386 sparc64 amd64
GNU_CONFIGURE= yes
CONFIGURE_WRKSRC= ${WRKSRC}/editline
diff --git a/net/asterisk10/files/patch-channels::chan_skinny.c b/net/asterisk10/files/patch-channels::chan_skinny.c
new file mode 100644
index 000000000000..acefb8f7222c
--- /dev/null
+++ b/net/asterisk10/files/patch-channels::chan_skinny.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- 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))