diff options
author | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2012-06-05 20:38:19 +0000 |
---|---|---|
committer | Sylvio Cesar Teixeira <sylvio@FreeBSD.org> | 2012-06-05 20:38:19 +0000 |
commit | cdfad8a93798bd942634e729090008f060d57f0e (patch) | |
tree | 570bb56afa0ddaf9900deb4646f800abf12d2099 /audio/muse | |
parent | b04f4e89f6c7875c62266de1d78bf8eb8ee37b32 (diff) | |
download | ports-cdfad8a93798bd942634e729090008f060d57f0e.tar.gz ports-cdfad8a93798bd942634e729090008f060d57f0e.zip |
Notes
Diffstat (limited to 'audio/muse')
-rw-r--r-- | audio/muse/Makefile | 54 | ||||
-rw-r--r-- | audio/muse/files/extra-patch-broken-scandir | 11 | ||||
-rw-r--r-- | audio/muse/files/patch-Makefile.in | 22 | ||||
-rw-r--r-- | audio/muse/files/patch-src::jmixer.cpp | 19 | ||||
-rw-r--r-- | audio/muse/pkg-plist | 12 |
5 files changed, 61 insertions, 57 deletions
diff --git a/audio/muse/Makefile b/audio/muse/Makefile index 8872dd9193f3..09f8cc6eab82 100644 --- a/audio/muse/Makefile +++ b/audio/muse/Makefile @@ -8,34 +8,38 @@ PORTNAME= MuSE PORTVERSION= 0.9.2 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= audio -MASTER_SITES= ftp://ftp.dyne.org/muse/releases/ \ - http://www.ljudmila.org/~jaromil/muse/releases/ +MASTER_SITES= http://files.dyne.org/muse/releases/ MAINTAINER= ports@FreeBSD.org COMMENT= Multiple Streaming Engine +LICENSE= GPLv2 + LIB_DEPENDS= vorbis.4:${PORTSDIR}/audio/libvorbis \ ogg.7:${PORTSDIR}/audio/libogg +OPTIONS_DEFINE= X11 LAME SNDFILE DOCS +OPTIONS_DEFAULT=X11 + USE_GETTEXT= yes USE_GMAKE= yes -WANT_GNOME= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-debug --disable-lubrify --disable-rpath -CPPFLAGS+= -I${LOCALBASE}/include -DHAVE_DECL_GETOPT -DHAVE_SYS_UIO_H \ - ${PTHREAD_CFLAGS} -LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lintl +MAKE_JOBS_SAFE= yes -OPTIONS_DEFINE= X11 LAME SNDFILE -OPTIONS_DEFAULT= X11 +CPPFLAGS+= -I${LOCALBASE}/include -DHAVE_SYS_UIO_H ${PTHREAD_CFLAGS} +LDFLAGS+= -L${LOCALBASE}/lib -lintl ${PTHREAD_LIBS} -.include <bsd.port.pre.mk> +MAN1= muse.1 +PORTDOCS= AUTHORS ChangeLog NEWS KNOWN-BUGS README TODO USAGE +PLIST_FILES= bin/muse +.for lang in es it +PLIST_FILES+= share/locale/${lang}/LC_MESSAGES/muse.mo +.endfor -.if ${OSVERSION} < 800501 -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-broken-scandir -.endif +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MX11} USE_GNOME+= gtk20 @@ -44,20 +48,30 @@ PKGNAMESUFFIX= -nox11 CONFIGURE_ARGS+=--without-x --with-rubik .endif -.if ${PORT_OPTIONS:MMP3} || exists(${LOCALBASE}/lib/libmp3lame.so.0) +.if ${PORT_OPTIONS:MLAME} LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame +.else +CONFIGURE_ENV+= ac_cv_header_lame_lame_h=no .endif -.if ${PORT_OPTIONS:MSNDFILE} || exists(${LOCALBASE}/lib/libsndfile.so.1) +.if ${PORT_OPTIONS:MSNDFILE} LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile .endif -MAN1= muse.1 - post-patch: -.if exists(/usr/include/sys/soundcard.h) - ${REINPLACE_CMD} -e "s,machine/soundcard.h,sys/soundcard.h,g" \ + @${REINPLACE_CMD} -e 's|machine/soundcard.h|sys/soundcard.h|' \ ${WRKSRC}/src/portaudio/pa_unix_oss.c +.if empty(PORT_OPTIONS:MSNDFILE) + @${REINPLACE_CMD} -e '/sndfile >=/s|$$PKG_CONFIG|${FALSE}|' \ + ${WRKSRC}/configure +.endif + +post-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} +.for file in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/audio/muse/files/extra-patch-broken-scandir b/audio/muse/files/extra-patch-broken-scandir deleted file mode 100644 index 67f1bf3e52f8..000000000000 --- a/audio/muse/files/extra-patch-broken-scandir +++ /dev/null @@ -1,11 +0,0 @@ ---- src/jmixer.cpp.orig 2004-12-16 03:04:31.000000000 -0800 -+++ src/jmixer.cpp 2010-08-22 14:15:03.000000000 -0700 -@@ -640,7 +640,7 @@ - /* this is the function selecting files for the scandir - on freebsd systems you should change the following line to: - int selector(struct dirent *dir) { */ --int selector(const struct dirent *dir) { -+int selector(struct dirent *dir) { - if( strncasecmp(dir->d_name+strlen(dir->d_name)-4,".mp3",4)==0 - #ifdef HAVE_VORBIS - || strncasecmp(dir->d_name+strlen(dir->d_name)-4,".ogg",4)==0 diff --git a/audio/muse/files/patch-Makefile.in b/audio/muse/files/patch-Makefile.in index af9559da02d0..dc75fda38b3a 100644 --- a/audio/muse/files/patch-Makefile.in +++ b/audio/muse/files/patch-Makefile.in @@ -1,11 +1,11 @@ ---- Makefile.in.orig Fri Aug 4 12:11:20 2006 -+++ Makefile.in Fri Aug 4 12:11:27 2006 -@@ -240,7 +240,7 @@ - target_vendor = @target_vendor@ - SUBDIRS = po intl src - docs_DATA = README COPYING AUTHORS NEWS KNOWN-BUGS ChangeLog TODO USAGE --docsdir = ${prefix}/doc/MuSE -+docsdir = ${prefix}/share/doc/MuSE - man_MANS = muse.1 - ACLOCAL_AMFLAGS = -I . -I m4 - EXTRA_DIST = autogen.sh config.rpath +--- Makefile.in.orig 2005-12-27 22:09:38.000000000 +0900 ++++ Makefile.in 2012-06-02 04:45:45.000000000 +0900 +@@ -690,7 +690,7 @@ + + info-am: + +-install-data-am: install-docsDATA install-man ++install-data-am: install-man + + install-exec-am: + diff --git a/audio/muse/files/patch-src::jmixer.cpp b/audio/muse/files/patch-src::jmixer.cpp index bd8ef1fd8ff0..b00c3f06560c 100644 --- a/audio/muse/files/patch-src::jmixer.cpp +++ b/audio/muse/files/patch-src::jmixer.cpp @@ -1,6 +1,6 @@ ---- src/jmixer.cpp.orig Fri Aug 4 11:44:33 2006 -+++ src/jmixer.cpp Fri Aug 4 11:46:02 2006 -@@ -20,18 +20,18 @@ +--- src/jmixer.cpp.orig 2004-12-16 20:04:31.000000000 +0900 ++++ src/jmixer.cpp 2012-05-29 07:39:23.000000000 +0900 +@@ -20,18 +20,19 @@ */ #include <iostream> @@ -15,6 +15,7 @@ #include <sys/ioctl.h> #include <sys/stat.h> -#include <errno.h> ++#include <sys/param.h> +#include <cerrno> #include <fcntl.h> @@ -25,3 +26,15 @@ #include <sys/types.h> #include <sys/wait.h> #include <termios.h> +@@ -640,7 +641,11 @@ + /* this is the function selecting files for the scandir + on freebsd systems you should change the following line to: + int selector(struct dirent *dir) { */ ++#if defined(__FreeBSD__) && __FreeBSD_version < 800501 ++int selector(struct dirent *dir) { ++#else + int selector(const struct dirent *dir) { ++#endif + if( strncasecmp(dir->d_name+strlen(dir->d_name)-4,".mp3",4)==0 + #ifdef HAVE_VORBIS + || strncasecmp(dir->d_name+strlen(dir->d_name)-4,".ogg",4)==0 diff --git a/audio/muse/pkg-plist b/audio/muse/pkg-plist deleted file mode 100644 index 97981fa7b49d..000000000000 --- a/audio/muse/pkg-plist +++ /dev/null @@ -1,12 +0,0 @@ -bin/muse -%%DOCSDIR%%/AUTHORS -%%DOCSDIR%%/COPYING -%%DOCSDIR%%/ChangeLog -%%DOCSDIR%%/KNOWN-BUGS -%%DOCSDIR%%/NEWS -%%DOCSDIR%%/README -%%DOCSDIR%%/TODO -%%DOCSDIR%%/USAGE -share/locale/es/LC_MESSAGES/muse.mo -share/locale/it/LC_MESSAGES/muse.mo -@dirrm %%DOCSDIR%% |