summaryrefslogtreecommitdiffstats
path: root/net/asterisk10
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2006-05-23 02:47:04 +0000
committersobomax <sobomax@FreeBSD.org>2006-05-23 02:47:04 +0000
commitf63c075bda6f73ee23e9e296ba5e77cbbe8f14a5 (patch)
treeda8c99906ad2b7be714c22ad65f72e9d07f8f0cd /net/asterisk10
parentcfddcc56704a77560279930c05e8469214ddd0c2 (diff)
downloadFreeBSD-ports-f63c075bda6f73ee23e9e296ba5e77cbbe8f14a5.zip
FreeBSD-ports-f63c075bda6f73ee23e9e296ba5e77cbbe8f14a5.tar.gz
Fix on sparc64.
Submitted by: ahze
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 01f94dd..278eca6 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 0000000..acefb8f
--- /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))
OpenPOWER on IntegriCloud