View | Details | Raw Unified | Return to bug 168590
Collapse All | Expand All

(-)audio/muse/Makefile (-20 / +34 lines)
Lines 8-41 Link Here
8
8
9
PORTNAME=	MuSE
9
PORTNAME=	MuSE
10
PORTVERSION=	0.9.2
10
PORTVERSION=	0.9.2
11
PORTREVISION=	12
11
PORTREVISION=	13
12
CATEGORIES=	audio
12
CATEGORIES=	audio
13
MASTER_SITES=	ftp://ftp.dyne.org/muse/releases/ \
13
MASTER_SITES=	http://files.dyne.org/muse/releases/
14
		http://www.ljudmila.org/~jaromil/muse/releases/
15
14
16
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	Multiple Streaming Engine
16
COMMENT=	Multiple Streaming Engine
18
17
18
LICENSE=	GPLv2
19
19
LIB_DEPENDS=	vorbis.4:${PORTSDIR}/audio/libvorbis \
20
LIB_DEPENDS=	vorbis.4:${PORTSDIR}/audio/libvorbis \
20
		ogg.7:${PORTSDIR}/audio/libogg
21
		ogg.7:${PORTSDIR}/audio/libogg
21
22
23
OPTIONS_DEFINE=	X11 LAME SNDFILE DOCS
24
OPTIONS_DEFAULT=X11
25
22
USE_GETTEXT=	yes
26
USE_GETTEXT=	yes
23
USE_GMAKE=	yes
27
USE_GMAKE=	yes
24
WANT_GNOME=	yes
25
GNU_CONFIGURE=	yes
28
GNU_CONFIGURE=	yes
26
CONFIGURE_ARGS=	--disable-debug --disable-lubrify --disable-rpath
29
CONFIGURE_ARGS=	--disable-debug --disable-lubrify --disable-rpath
27
CPPFLAGS+=	-I${LOCALBASE}/include -DHAVE_DECL_GETOPT -DHAVE_SYS_UIO_H \
30
MAKE_JOBS_SAFE=	yes
28
		${PTHREAD_CFLAGS}
29
LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lintl
30
31
31
OPTIONS_DEFINE=	X11 LAME SNDFILE
32
CPPFLAGS+=	-I${LOCALBASE}/include -DHAVE_SYS_UIO_H ${PTHREAD_CFLAGS}
32
OPTIONS_DEFAULT=	X11
33
LDFLAGS+=	-L${LOCALBASE}/lib -lintl ${PTHREAD_LIBS}
33
34
34
.include <bsd.port.pre.mk>
35
MAN1=		muse.1
36
PORTDOCS=	AUTHORS ChangeLog NEWS KNOWN-BUGS README TODO USAGE
37
PLIST_FILES=	bin/muse
38
.for lang in es it
39
PLIST_FILES+=	share/locale/${lang}/LC_MESSAGES/muse.mo
40
.endfor
35
41
36
.if ${OSVERSION} < 800501
42
.include <bsd.port.options.mk>
37
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-broken-scandir
38
.endif
39
43
40
.if ${PORT_OPTIONS:MX11}
44
.if ${PORT_OPTIONS:MX11}
41
USE_GNOME+=	gtk20
45
USE_GNOME+=	gtk20
Lines 44-63 Link Here
44
CONFIGURE_ARGS+=--without-x --with-rubik
48
CONFIGURE_ARGS+=--without-x --with-rubik
45
.endif
49
.endif
46
50
47
.if ${PORT_OPTIONS:MMP3} || exists(${LOCALBASE}/lib/libmp3lame.so.0)
51
.if ${PORT_OPTIONS:MLAME}
48
LIB_DEPENDS+=	mp3lame.0:${PORTSDIR}/audio/lame
52
LIB_DEPENDS+=	mp3lame.0:${PORTSDIR}/audio/lame
53
.else
54
CONFIGURE_ENV+=	ac_cv_header_lame_lame_h=no
49
.endif
55
.endif
50
56
51
.if ${PORT_OPTIONS:MSNDFILE} || exists(${LOCALBASE}/lib/libsndfile.so.1)
57
.if ${PORT_OPTIONS:MSNDFILE}
52
LIB_DEPENDS+=	sndfile.1:${PORTSDIR}/audio/libsndfile
58
LIB_DEPENDS+=	sndfile.1:${PORTSDIR}/audio/libsndfile
53
.endif
59
.endif
54
60
55
MAN1=		muse.1
56
57
post-patch:
61
post-patch:
58
.if exists(/usr/include/sys/soundcard.h)
62
	@${REINPLACE_CMD} -e 's|machine/soundcard.h|sys/soundcard.h|' \
59
	${REINPLACE_CMD} -e "s,machine/soundcard.h,sys/soundcard.h,g" \
60
		${WRKSRC}/src/portaudio/pa_unix_oss.c
63
		${WRKSRC}/src/portaudio/pa_unix_oss.c
64
.if empty(PORT_OPTIONS:MSNDFILE)
65
	@${REINPLACE_CMD} -e '/sndfile >=/s|$$PKG_CONFIG|${FALSE}|' \
66
		${WRKSRC}/configure
67
.endif
68
69
post-install:
70
.if ${PORT_OPTIONS:MDOCS}
71
	@${MKDIR} ${DOCSDIR}
72
.for file in ${PORTDOCS}
73
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
74
.endfor
61
.endif
75
.endif
62
76
63
.include <bsd.port.post.mk>
77
.include <bsd.port.mk>
(-)audio/muse/files/extra-patch-broken-scandir (-11 lines)
Lines 1-11 Link Here
1
--- src/jmixer.cpp.orig	2004-12-16 03:04:31.000000000 -0800
2
+++ src/jmixer.cpp	2010-08-22 14:15:03.000000000 -0700
3
@@ -640,7 +640,7 @@
4
 /* this is the function selecting files for the scandir
5
    on freebsd systems you should change the following line to:
6
    int selector(struct dirent *dir) {    */
7
-int selector(const struct dirent *dir) {
8
+int selector(struct dirent *dir) {
9
   if( strncasecmp(dir->d_name+strlen(dir->d_name)-4,".mp3",4)==0
10
 #ifdef HAVE_VORBIS
11
       || strncasecmp(dir->d_name+strlen(dir->d_name)-4,".ogg",4)==0
(-)audio/muse/files/patch-Makefile.in (-11 / +11 lines)
Lines 1-11 Link Here
1
--- Makefile.in.orig	Fri Aug  4 12:11:20 2006
1
--- Makefile.in.orig	2005-12-27 22:09:38.000000000 +0900
2
+++ Makefile.in	Fri Aug  4 12:11:27 2006
2
+++ Makefile.in	2012-06-02 04:45:45.000000000 +0900
3
@@ -240,7 +240,7 @@
3
@@ -690,7 +690,7 @@
4
 target_vendor = @target_vendor@
4
 
5
 SUBDIRS = po intl src
5
 info-am:
6
 docs_DATA = README COPYING AUTHORS NEWS KNOWN-BUGS ChangeLog TODO USAGE
6
 
7
-docsdir = ${prefix}/doc/MuSE
7
-install-data-am: install-docsDATA install-man
8
+docsdir = ${prefix}/share/doc/MuSE
8
+install-data-am: install-man
9
 man_MANS = muse.1
9
 
10
 ACLOCAL_AMFLAGS = -I . -I m4
10
 install-exec-am:
11
 EXTRA_DIST = autogen.sh config.rpath
11
 
(-)audio/muse/files/patch-src::jmixer.cpp (-3 / +16 lines)
Lines 1-6 Link Here
1
--- src/jmixer.cpp.orig	Fri Aug  4 11:44:33 2006
1
--- src/jmixer.cpp.orig	2004-12-16 20:04:31.000000000 +0900
2
+++ src/jmixer.cpp	Fri Aug  4 11:46:02 2006
2
+++ src/jmixer.cpp	2012-05-29 07:39:23.000000000 +0900
3
@@ -20,18 +20,18 @@
3
@@ -20,18 +20,19 @@
4
  */
4
  */
5
 
5
 
6
 #include <iostream>
6
 #include <iostream>
Lines 15-20 Link Here
15
 #include <sys/ioctl.h>
15
 #include <sys/ioctl.h>
16
 #include <sys/stat.h>
16
 #include <sys/stat.h>
17
-#include <errno.h>
17
-#include <errno.h>
18
+#include <sys/param.h>
18
+#include <cerrno>
19
+#include <cerrno>
19
 #include <fcntl.h>
20
 #include <fcntl.h>
20
 
21
 
Lines 25-27 Link Here
25
 #include <sys/types.h>
26
 #include <sys/types.h>
26
 #include <sys/wait.h>
27
 #include <sys/wait.h>
27
 #include <termios.h>
28
 #include <termios.h>
29
@@ -640,7 +641,11 @@
30
 /* this is the function selecting files for the scandir
31
    on freebsd systems you should change the following line to:
32
    int selector(struct dirent *dir) {    */
33
+#if defined(__FreeBSD__) && __FreeBSD_version < 800501
34
+int selector(struct dirent *dir) {
35
+#else
36
 int selector(const struct dirent *dir) {
37
+#endif
38
   if( strncasecmp(dir->d_name+strlen(dir->d_name)-4,".mp3",4)==0
39
 #ifdef HAVE_VORBIS
40
       || strncasecmp(dir->d_name+strlen(dir->d_name)-4,".ogg",4)==0
(-)audio/muse/pkg-plist (-12 lines)
Lines 1-12 Link Here
1
bin/muse
2
%%DOCSDIR%%/AUTHORS
3
%%DOCSDIR%%/COPYING
4
%%DOCSDIR%%/ChangeLog
5
%%DOCSDIR%%/KNOWN-BUGS
6
%%DOCSDIR%%/NEWS
7
%%DOCSDIR%%/README
8
%%DOCSDIR%%/TODO
9
%%DOCSDIR%%/USAGE
10
share/locale/es/LC_MESSAGES/muse.mo
11
share/locale/it/LC_MESSAGES/muse.mo
12
@dirrm %%DOCSDIR%%

Return to bug 168590