diff options
author | jmmv <jmmv> | 2003-09-19 21:32:11 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2003-09-19 21:32:11 +0000 |
commit | a8d6731e45414a332af70488b5d35cd37a548e8a (patch) | |
tree | b920f8d00046316d64a1abdeab5385b8c72b6138 /chat | |
parent | fdee64ef961aaa0e2383e29eab99b28b23e4af0f (diff) | |
download | pkgsrc-a8d6731e45414a332af70488b5d35cd37a548e8a.tar.gz |
Use 'audioplay' under NetBSD to play sounds, and 'play' from the 'sox' package
under other systems. Bump PKGREVISION to 1.
Diffstat (limited to 'chat')
-rw-r--r-- | chat/centericq/Makefile | 14 | ||||
-rw-r--r-- | chat/centericq/distinfo | 3 | ||||
-rw-r--r-- | chat/centericq/patches/patch-aa | 21 |
3 files changed, 36 insertions, 2 deletions
diff --git a/chat/centericq/Makefile b/chat/centericq/Makefile index d2383e3f79c..dac26d4d777 100644 --- a/chat/centericq/Makefile +++ b/chat/centericq/Makefile @@ -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 @@ REPLACE_PERL= misc/cicqconv 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 --git a/chat/centericq/distinfo b/chat/centericq/distinfo index 3c0b1777a5a..bb3a64aa21d 100644 --- a/chat/centericq/distinfo +++ b/chat/centericq/distinfo @@ -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 --git a/chat/centericq/patches/patch-aa b/chat/centericq/patches/patch-aa new file mode 100644 index 00000000000..9983ac8d8aa --- /dev/null +++ b/chat/centericq/patches/patch-aa @@ -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: |