audio/muse: Fix DragonFly breakage DragonFly's GCC44 won't handle iostream.h headers anymore, so these were converted to the c++ version. The scandir arguments for DragonFly were wrong. Either GCC44 is less tolerant than GCC41, or the prototype changed since the last time this package built on DragonFly. No PKGREVISION bump is required; this only affects DragonFly.diff -r1.33 -r1.34 pkgsrc/audio/muse/Makefile
(marino)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.33 2011/11/01 06:00:39 sbd Exp $ | 1 | # $NetBSD: Makefile,v 1.34 2011/11/22 16:38:28 marino Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= MuSE-0.9 | 4 | DISTNAME= MuSE-0.9 | |
5 | PKGNAME= ${DISTNAME:S/MuSE/muse/} | 5 | PKGNAME= ${DISTNAME:S/MuSE/muse/} | |
6 | PKGREVISION= 15 | 6 | PKGREVISION= 15 | |
7 | CATEGORIES= audio | 7 | CATEGORIES= audio | |
8 | MASTER_SITES= ftp://ftp.dyne.org/muse/releases/ \ | 8 | MASTER_SITES= ftp://ftp.dyne.org/muse/releases/ \ | |
9 | http://www.ljudmila.org/~jaromil/mirror/muse/releases/ | 9 | http://www.ljudmila.org/~jaromil/mirror/muse/releases/ | |
10 | 10 | |||
11 | MAINTAINER= pkgsrc-users@NetBSD.org | 11 | MAINTAINER= pkgsrc-users@NetBSD.org | |
12 | HOMEPAGE= http://muse.dyne.org/ | 12 | HOMEPAGE= http://muse.dyne.org/ | |
13 | COMMENT= Multiple Streaming Engine | 13 | COMMENT= Multiple Streaming Engine | |
14 | 14 | |||
@@ -22,20 +22,29 @@ USE_PKGLOCALEDIR= yes | @@ -22,20 +22,29 @@ USE_PKGLOCALEDIR= yes | |||
22 | CONFIGURE_ARGS+= --disable-ncurses | 22 | CONFIGURE_ARGS+= --disable-ncurses | |
23 | CONFIGURE_ARGS+= --disable-lubrify | 23 | CONFIGURE_ARGS+= --disable-lubrify | |
24 | CONFIGURE_ARGS+= --enable-gtk2 | 24 | CONFIGURE_ARGS+= --enable-gtk2 | |
25 | LIBS+= ${LIBOSSAUDIO} | 25 | LIBS+= ${LIBOSSAUDIO} | |
26 | MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q} | 26 | MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q} | |
27 | MAKE_FLAGS+= docsdir=${PREFIX:Q}/share/doc/MuSE | 27 | MAKE_FLAGS+= docsdir=${PREFIX:Q}/share/doc/MuSE | |
28 | 28 | |||
29 | SUBST_CLASSES+= dsp | 29 | SUBST_CLASSES+= dsp | |
30 | SUBST_STAGE.dsp= post-patch | 30 | SUBST_STAGE.dsp= post-patch | |
31 | SUBST_FILES.dsp= src/jmixer.cpp src/libmpeg/fileplayer.cc | 31 | SUBST_FILES.dsp= src/jmixer.cpp src/libmpeg/fileplayer.cc | |
32 | SUBST_SED.dsp= -e "s,/dev/dsp,${DEVOSSAUDIO},g" | 32 | SUBST_SED.dsp= -e "s,/dev/dsp,${DEVOSSAUDIO},g" | |
33 | SUBST_MESSAGE.dsp= Fixing hardcoded audio device. | 33 | SUBST_MESSAGE.dsp= Fixing hardcoded audio device. | |
34 | 34 | |||
35 | .include "../../mk/bsd.prefs.mk" | |||
36 | .if ${OPSYS} == "DragonFly" | |||
37 | SUBST_CLASSES+= iostream | |||
38 | SUBST_STAGE.iostream= post-patch | |||
39 | SUBST_FILES.iostream= src/libmpeg/fileplayer.cc src/libmpeg/mpegtoraw.cc | |||
40 | SUBST_SED.iostream= -e 's,<iostream.h>,<iostream>,' | |||
41 | SUBST_MESSAGE.iostream= Fixing old iostream headers includes | |||
42 | .endif | |||
43 | ||||
35 | .include "../../audio/lame/buildlink3.mk" | 44 | .include "../../audio/lame/buildlink3.mk" | |
36 | .include "../../audio/libvorbis/buildlink3.mk" | 45 | .include "../../audio/libvorbis/buildlink3.mk" | |
37 | .include "../../audio/libsndfile/buildlink3.mk" | 46 | .include "../../audio/libsndfile/buildlink3.mk" | |
38 | .include "../../x11/gtk2/buildlink3.mk" | 47 | .include "../../x11/gtk2/buildlink3.mk" | |
39 | .include "../../mk/pthread.buildlink3.mk" | 48 | .include "../../mk/pthread.buildlink3.mk" | |
40 | .include "../../mk/oss.buildlink3.mk" | 49 | .include "../../mk/oss.buildlink3.mk" | |
41 | .include "../../mk/bsd.pkg.mk" | 50 | .include "../../mk/bsd.pkg.mk" |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: distinfo,v 1.9 2010/02/01 01:25:29 joerg Exp $ | 1 | $NetBSD: distinfo,v 1.10 2011/11/22 16:38:28 marino Exp $ | |
2 | 2 | |||
3 | SHA1 (MuSE-0.9.tar.gz) = c73dfe6cf5a8da3430864a76d0bc8d9f2cb7d118 | 3 | SHA1 (MuSE-0.9.tar.gz) = c73dfe6cf5a8da3430864a76d0bc8d9f2cb7d118 | |
4 | RMD160 (MuSE-0.9.tar.gz) = 53eb653a0488ae3a5ef9486d8b2a9006fdba619d | 4 | RMD160 (MuSE-0.9.tar.gz) = 53eb653a0488ae3a5ef9486d8b2a9006fdba619d | |
5 | Size (MuSE-0.9.tar.gz) = 1363091 bytes | 5 | Size (MuSE-0.9.tar.gz) = 1363091 bytes | |
6 | SHA1 (patch-aa) = 5020bece9b44c5006efe0c90b23f3c54f9313b57 | 6 | SHA1 (patch-aa) = 5020bece9b44c5006efe0c90b23f3c54f9313b57 | |
7 | SHA1 (patch-ab) = 26d87f65078e45aec187ed4436b5ffce289247b3 | 7 | SHA1 (patch-ab) = e283bc69d90c330ecc2b06ebed70b574ef0f31c5 | |
8 | SHA1 (patch-ac) = fcf1efbbd99d70e055c903c41431a1630ca381fa | 8 | SHA1 (patch-ac) = fcf1efbbd99d70e055c903c41431a1630ca381fa | |
9 | SHA1 (patch-ad) = 5f2322a1c9c3c9ee4e4dbe3aa810c0f2c5d999fd | 9 | SHA1 (patch-ad) = 5f2322a1c9c3c9ee4e4dbe3aa810c0f2c5d999fd | |
10 | SHA1 (patch-ae) = 54d5cd059c72ecd2b60d1ac188540c29343322f7 | 10 | SHA1 (patch-ae) = 54d5cd059c72ecd2b60d1ac188540c29343322f7 | |
11 | SHA1 (patch-af) = 20b68a9758ec109b3dec37b5898076a0cff5bfcc | 11 | SHA1 (patch-af) = 20b68a9758ec109b3dec37b5898076a0cff5bfcc | |
12 | SHA1 (patch-ag) = 65515e3a2e8947a1ac1b01e5585a1ca04513bd70 | 12 | SHA1 (patch-ag) = 65515e3a2e8947a1ac1b01e5585a1ca04513bd70 | |
13 | SHA1 (patch-ah) = 458d747f30e7767f53bc5dd890da1dd9e94cabfa | 13 | SHA1 (patch-ah) = 458d747f30e7767f53bc5dd890da1dd9e94cabfa |
@@ -1,25 +1,25 @@ | @@ -1,25 +1,25 @@ | |||
1 | $NetBSD: patch-ab,v 1.2 2005/12/11 23:44:40 joerg Exp $ | 1 | $NetBSD: patch-ab,v 1.3 2011/11/22 16:38:28 marino Exp $ | |
2 | 2 | |||
3 | --- src/jmixer.cpp.orig 2004-04-09 17:50:43.000000000 +0000 | 3 | --- src/jmixer.cpp.orig 2004-04-09 17:50:43.000000000 +0000 | |
4 | +++ src/jmixer.cpp | 4 | +++ src/jmixer.cpp | |
5 | @@ -98,7 +98,7 @@ Stream_mixer::Stream_mixer() { | 5 | @@ -98,7 +98,7 @@ Stream_mixer::Stream_mixer() { | |
6 | error("error initializing POSIX thread mutex"); | 6 | error("error initializing POSIX thread mutex"); | |
7 | if(pthread_cond_init (&_cond, NULL) == -1) | 7 | if(pthread_cond_init (&_cond, NULL) == -1) | |
8 | error("error initializing POSIX thread condtition"); | 8 | error("error initializing POSIX thread condtition"); | |
9 | - unlock(); | 9 | - unlock(); | |
10 | + //unlock(); | 10 | + //unlock(); | |
11 | } | 11 | } | |
12 | 12 | |||
13 | Stream_mixer::~Stream_mixer() { | 13 | Stream_mixer::~Stream_mixer() { | |
14 | @@ -627,7 +627,11 @@ bool Stream_mixer::set_playmode(int ch, | 14 | @@ -627,7 +627,11 @@ bool Stream_mixer::set_playmode(int ch, | |
15 | /* this is the function selecting files for the scandir | 15 | /* this is the function selecting files for the scandir | |
16 | on freebsd systems you should change the following line to: | 16 | on freebsd systems you should change the following line to: | |
17 | int selector(struct dirent *dir) { */ | 17 | int selector(struct dirent *dir) { */ | |
18 | +#if defined(__FreeBSD__) || defined(__DragonFly__) | 18 | +#if defined(__FreeBSD__) | |
19 | +int selector(struct dirent *dir) { | 19 | +int selector(struct dirent *dir) { | |
20 | +#else | 20 | +#else | |
21 | int selector(const struct dirent *dir) { | 21 | int selector(const struct dirent *dir) { | |
22 | +#endif | 22 | +#endif | |
23 | if( strncasecmp(dir->d_name+strlen(dir->d_name)-4,".mp3",4)==0 | 23 | if( strncasecmp(dir->d_name+strlen(dir->d_name)-4,".mp3",4)==0 | |
24 | #ifdef HAVE_VORBIS | 24 | #ifdef HAVE_VORBIS | |
25 | || strncasecmp(dir->d_name+strlen(dir->d_name)-4,".ogg",4)==0 | 25 | || strncasecmp(dir->d_name+strlen(dir->d_name)-4,".ogg",4)==0 |