pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/centericq Use 'audioplay' under NetBSD to play so...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/abe18844a451
branches:  trunk
changeset: 461734:abe18844a451
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Fri Sep 19 21:32:11 2003 +0000

description:
Use 'audioplay' under NetBSD to play sounds, and 'play' from the 'sox' package
under other systems.  Bump PKGREVISION to 1.

diffstat:

 chat/centericq/Makefile         |  14 +++++++++++++-
 chat/centericq/distinfo         |   3 ++-
 chat/centericq/patches/patch-aa |  21 +++++++++++++++++++++
 3 files changed, 36 insertions(+), 2 deletions(-)

diffs (66 lines):

diff -r 46c85aa2644f -r abe18844a451 chat/centericq/Makefile
--- a/chat/centericq/Makefile   Fri Sep 19 18:35:31 2003 +0000
+++ b/chat/centericq/Makefile   Fri Sep 19 21:32:11 2003 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.28 2003/09/02 00:15:40 seb Exp $
+# $NetBSD: Makefile,v 1.29 2003/09/19 21:32:11 jmmv Exp $
 #
 
 DISTNAME=      centericq-4.9.6
+PKGREVISION=   1
 CATEGORIES=    chat
 MASTER_SITES=  http://konst.org.ua/download/
 EXTRACT_SUFX=  .tar.bz2
@@ -26,6 +27,17 @@
 INCOMPAT_CURSES+=      NetBSD-1.[45]*-* NetBSD-1.6-* NetBSD-1.6.[1-9]-*
 INCOMPAT_CURSES+=      NetBSD-1.6_*-* NetBSD-1.6.[1-9]_*-* NetBSD-1.6[A-T]-*
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+CPPFLAGS+=             -DAUDIO_PLAYER=\"\\\"/usr/bin/audioplay\\\"\"
+.else
+DEPENDS+=              sox>=12.17.4:../../audio/sox
+SOX_PREFIX_DEFAULT=    ${LOCALBASE}
+EVAL_PREFIX+=          SOX_PREFIX=sox
+CPPFLAGS+=             -DAUDIO_PLAYER=\"\\\"${SOX_PREFIX}/bin/play\\\"\"
+.endif
+
 .include "../../converters/libiconv/buildlink2.mk"
 .include "../../devel/gettext-lib/buildlink2.mk"
 .include "../../devel/ncurses/buildlink2.mk"
diff -r 46c85aa2644f -r abe18844a451 chat/centericq/distinfo
--- a/chat/centericq/distinfo   Fri Sep 19 18:35:31 2003 +0000
+++ b/chat/centericq/distinfo   Fri Sep 19 21:32:11 2003 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.5 2003/08/31 16:46:28 wiz Exp $
+$NetBSD: distinfo,v 1.6 2003/09/19 21:32:12 jmmv Exp $
 
 SHA1 (centericq-4.9.6.tar.bz2) = 53c815753c5adc4027b72ef4a046793ea3966f13
 Size (centericq-4.9.6.tar.bz2) = 933355 bytes
+SHA1 (patch-aa) = b5c297628e965e7bfc6e85da51045c75fd0e21fd
diff -r 46c85aa2644f -r abe18844a451 chat/centericq/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/centericq/patches/patch-aa   Fri Sep 19 21:32:11 2003 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1 2003/09/19 21:32:13 jmmv Exp $
+
+--- src/icqconf.cc.orig        2003-07-25 19:03:00.000000000 +0200
++++ src/icqconf.cc
+@@ -414,11 +414,11 @@ void icqconf::loadsounds() {
+ 
+           switch(rs) {
+               case rscard:
+-                  fo << "*\tmsg\tplay " << SHARE_DIR << "/msg.wav" << endl;
+-                  fo << "*\turl\tplay " << SHARE_DIR << "/url.wav" << endl;
+-                  fo << "*\temail\tplay " << SHARE_DIR << "/email.wav" << endl;
+-                  fo << "*\tonline\tplay " << SHARE_DIR << "/online.wav" << endl;
+-                  fo << "*\tsms\tplay " << SHARE_DIR << "/sms.wav" << endl;
++                  fo << "*\tmsg\t" AUDIO_PLAYER " " << SHARE_DIR << "/msg.wav" << endl;
++                  fo << "*\turl\t" AUDIO_PLAYER " " << SHARE_DIR << "/url.wav" << endl;
++                  fo << "*\temail\t" AUDIO_PLAYER " " << SHARE_DIR << "/email.wav" << endl;
++                  fo << "*\tonline\t" AUDIO_PLAYER " " << SHARE_DIR << "/online.wav" << endl;
++                  fo << "*\tsms\t" AUDIO_PLAYER " " << SHARE_DIR << "/sms.wav" << endl;
+                   break;
+ 
+               case rsspeaker:



Home | Main Index | Thread Index | Old Index