pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/comms/asterisk Make this compile with newer versions o...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e5f4e3515bbe
branches: trunk
changeset: 500620:e5f4e3515bbe
user: rh <rh%pkgsrc.org@localhost>
date: Mon Oct 10 21:45:08 2005 +0000
description:
Make this compile with newer versions of Darwin that have poll(2).
diffstat:
comms/asterisk/Makefile | 7 ++++++-
comms/asterisk/distinfo | 4 ++--
comms/asterisk/patches/patch-aa | 16 +++++++++++++---
3 files changed, 21 insertions(+), 6 deletions(-)
diffs (67 lines):
diff -r 12455e874ce4 -r e5f4e3515bbe comms/asterisk/Makefile
--- a/comms/asterisk/Makefile Mon Oct 10 21:38:45 2005 +0000
+++ b/comms/asterisk/Makefile Mon Oct 10 21:45:08 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2005/09/02 17:23:06 riz Exp $
+# $NetBSD: Makefile,v 1.8 2005/10/10 21:45:08 rh Exp $
DISTNAME= asterisk-1.0.9
CATEGORIES= comms net audio
@@ -83,6 +83,11 @@
PTHREAD_OPTS+= require native
+.if (${OPSYS} == "Darwin" && exists(/usr/include/sys/poll.h))
+post-patch:
+ ${ECHO} "#include <sys/poll.h>" > ${WRKSRC}/include/asterisk/poll-compat.h
+.endif
+
.include "../../devel/ncurses/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
diff -r 12455e874ce4 -r e5f4e3515bbe comms/asterisk/distinfo
--- a/comms/asterisk/distinfo Mon Oct 10 21:38:45 2005 +0000
+++ b/comms/asterisk/distinfo Mon Oct 10 21:45:08 2005 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.4 2005/09/02 12:58:34 adam Exp $
+$NetBSD: distinfo,v 1.5 2005/10/10 21:45:08 rh Exp $
SHA1 (asterisk-1.0.9.tar.gz) = 62edb29222e4a801893d1f23b73def8555ac2c47
RMD160 (asterisk-1.0.9.tar.gz) = 2e48dc00a3c290cc6b418ab0aee42feb93d9e76a
Size (asterisk-1.0.9.tar.gz) = 9604582 bytes
-SHA1 (patch-aa) = 6e5c979fd905da86d17f079d84183759efcca520
+SHA1 (patch-aa) = ebe6b2ac17546fa7fac489ea1676c961ca975ca0
SHA1 (patch-ab) = 435a76cd7bad98b0809fa47b5b79530767027aa9
SHA1 (patch-ac) = e6aad8435be3c616112afec59b968c29721d98e3
SHA1 (patch-ad) = c19da2acb25c8fe68882d222d4f5dcb1be75cf63
diff -r 12455e874ce4 -r e5f4e3515bbe comms/asterisk/patches/patch-aa
--- a/comms/asterisk/patches/patch-aa Mon Oct 10 21:38:45 2005 +0000
+++ b/comms/asterisk/patches/patch-aa Mon Oct 10 21:45:08 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.3 2005/09/02 12:58:34 adam Exp $
+$NetBSD: patch-aa,v 1.4 2005/10/10 21:45:08 rh Exp $
---- Makefile.orig 2005-04-26 14:30:23.000000000 +0000
+--- Makefile.orig 2005-04-27 00:30:23.000000000 +1000
+++ Makefile
@@ -42,7 +42,7 @@ MPG123TARG=linux
endif
@@ -51,7 +51,17 @@
endif
ifeq (${OSARCH},OpenBSD)
LIBS=-lcrypto -lpthread -lm -lncurses
-@@ -450,29 +454,29 @@ install: all datafiles bininstall
+@@ -214,7 +218,8 @@ OBJS=io.o sched.o logger.o frame.o loade
+ astmm.o enum.o srv.o dns.o aescrypt.o aestab.o aeskey.o \
+ utils.o
+ ifeq (${OSARCH},Darwin)
+-OBJS+=poll.o dlfcn.o
++OBJS+=dlfcn.o
++OBJS+=$(shell if [ -e /usr/include/sys/poll.h ]; then echo -n "" ; else echo poll.o; fi)
+ ASTLINK=-Wl,-dynamic
+ SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
+ else
+@@ -450,29 +455,29 @@ install: all datafiles bininstall
upgrade: all bininstall
adsi: all
Home |
Main Index |
Thread Index |
Old Index