Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  9 Aug 2006 22:42:20 +0200
From:      "Simon Olofsson" <simon@olofsson.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        adamw@magnesium.net
Subject:   ports/101728: [MAINTAINER] audio/cmus: update to 2.0.3
Message-ID:  <20060809204220.A0D0A1B152D@mail-in-01.arcor-online.net>
Resent-Message-ID: <200608092050.k79KoFZM058371@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         101728
>Category:       ports
>Synopsis:       [MAINTAINER] audio/cmus: update to 2.0.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 09 20:50:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Simon Olofsson
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD gul.lan.gath3n.de 6.1-STABLE FreeBSD 6.1-STABLE #28: Sat Aug  5 21:10:18 CEST
>Description:
- Update to 2.0.3

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- cmus-2.0.3.patch begins here ---
diff -ruN -ruN --exclude=CVS /usr/ports/audio/cmus/Makefile /usr/home/simon/src/ports/audio/cmus/Makefile
--- /usr/ports/audio/cmus/Makefile	Wed Aug  9 14:32:59 2006
+++ /usr/home/simon/src/ports/audio/cmus/Makefile	Wed Aug  9 22:10:19 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	cmus
-PORTVERSION=	2.0.2
+PORTVERSION=	2.0.3
 CATEGORIES=	audio
 MASTER_SITES=	http://onion.dynserv.net/~timo/files/ \
 		http://mirror.greaterscope.net/cmus/
@@ -14,108 +14,102 @@
 MAINTAINER=	simon@olofsson.de
 COMMENT=	Console-based music player with really cool features
 
-BUILD_DEPENDS+=	bash:${PORTSDIR}/shells/bash
-LIB_DEPENDS+=	FLAC:${PORTSDIR}/audio/flac \
-		mad:${PORTSDIR}/audio/libmad
-
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 USE_ICONV=	yes
 HAS_CONFIGURE=	yes
-CONFIGURE_ARGS+=--prefix=${PREFIX}
+CONFIGURE_ARGS+=prefix=${TARGETDIR} mandir=${TARGETDIR}/man
 CONFIGURE_ENV+=	CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
 
-.include <bsd.port.pre.mk>
-
-.if exists(${LOCALBASE}/lib/libvorbisfile.so)
-WITH_VORBIS=	yes
-.endif
-.if exists(${LOCALBASE}/lib/libmodplug.so)
-WITH_MODPLUG=	yes
-.endif
-.if exists(${LOCALBASE}/lib/libvorbisidec.so)
-WITH_TREMOR=	yes
-.endif
-.if exists(${LOCALBASE}/lib/libmpcdec.so)
-WITH_MUSEPACK=	yes
-.endif
-.if exists(${LOCALBASE}/lib/libao.so)
-WITH_LIBAO=	yes
-.endif
-.if exists(${LOCALBASE}/lib/libartsc.so)
-WITH_ARTS=	yes
-.endif
+OPTIONS=	FLAC "FLAC (Free Lossless Audio Codec) support" Off \
+		MAD "MPEG Audio Decoder (libmad) support" On \
+		MODPLUG "libmodplug (mod, x3m, ...) support" Off \
+		MUSEPACK "libmpcdec (Musepack .mpc) support" Off \
+		VORBIS "Ogg/Vorbis support" On \
+		LIBAO "Libao cross-platform audio library" On \
+		ARTS "ARTS support" Off \
+		TREMOR "Use Tremor as Ogg/Vorbis input plugin" Off
 
-PREMSG=		\n
+.include <bsd.port.pre.mk>
 
-.if defined(WITH_VORBIS)
-LIB_DEPENDS+=	vorbisfile:${PORTSDIR}/audio/libvorbis
-PLIST_SUB+=	VORBIS=""
+.if defined(WITH_FLAC)
+LIB_DEPENDS+=	FLAC:${PORTSDIR}/audio/flac
+CONFIGURE_ARGS+=CONFIG_FLAC=y
+PLIST_SUB+=	FLAC=""
+.else
+CONFIGURE_ARGS+=CONFIG_FLAC=n
+PLIST_SUB+=	FLAC="@comment "
+.endif
+
+.if defined(WITH_MAD)
+LIB_DEPENDS+=	mad:${PORTSDIR}/audio/libmad
+CONFIGURE_ARGS+=CONFIG_MAD=y
+PLIST_SUB+=	MAD=""
 .else
-PLIST_SUB+=	VORBIS="@comment "
-PREMSG+=	Define WITH_VORBIS=yes to enable OGG/Vorbis support.\n
+CONFIGURE_ARGS+=CONFIG_MAD=n
+PLIST_SUB+=	MAD="@comment "
 .endif
 
 .if defined(WITH_MODPLUG)
 LIB_DEPENDS+=	modplug:${PORTSDIR}/audio/libmodplug
+CONFIGURE_ARGS+=CONFIG_MODPLUG=y
 PLIST_SUB+=	MODPLUG=""
 .else
+CONFIGURE_ARGS+=CONFIG_MODPLUG=n
 PLIST_SUB+=	MODPLUG="@comment "
-PREMSG+=	Define WITH_MODPLUG=yes to enable module music files.\n
-.endif
-
-.if defined(WITH_TREMOR)
-LIB_DEPENDS+=	vorbisidec:${PORTSDIR}/audio/libtremor
-CONFIGURE_ARGS+=--with-tremor
-.else
-PREMSG+=	Define WITH_TREMOR=yes to enable libtremor support.\n
 .endif
 
 .if defined(WITH_MUSEPACK)
 LIB_DEPENDS+=	mpcdec:${PORTSDIR}/audio/libmpcdec
+CONFIGURE_ARGS+=CONFIG_MPC=y
 PLIST_SUB+=	MPC=""
 .else
+CONFIGURE_ARGS+=CONFIG_MPC=n
 PLIST_SUB+=	MPC="@comment "
-PREMSG+=	Define WITH_MUSEPACK=yes to enable musepack support.\n
+.endif
+
+.if defined(WITH_VORBIS)
+LIB_DEPENDS+=	vorbisfile:${PORTSDIR}/audio/libvorbis
+CONFIGURE_ARGS+=CONFIG_VORBIS=y
+PLIST_SUB+=	VORBIS=""
+.else
+CONFIGURE_ARGS+=CONFIG_VORBIS=n
+PLIST_SUB+=	VORBIS="@comment "
 .endif
 
 .if defined(WITH_LIBAO)
 LIB_DEPENDS+=	ao:${PORTSDIR}/audio/libao
+CONFIGURE_ARGS+=CONFIG_AO=y
 PLIST_SUB+=	AO=""
 .else
+CONFIGURE_ARGS+=CONFIG_AO=n
 PLIST_SUB+=	AO="@comment "
-PREMSG+=	Define WITH_LIBAO=yes to enable the libao output library.\n
 .endif
 
 .if defined(WITH_ARTS)
 LIB_DEPENDS+=	artsc:${PORTSDIR}/audio/arts
+CONFIGURE_ARGS+=CONFIG_ARTS=y
 PLIST_SUB+=	ARTS=""
 .else
+CONFIGURE_ARGS+=CONFIG_ARTS=n
 PLIST_SUB+=	ARTS="@comment "
-PREMSG+=	Define WITH_ARTS=yes to enable arts output support.\n
 .endif
 
-MAN1=	cmus.1 cmus-remote.1
+.if defined(WITH_TREMOR)
+LIB_DEPENDS+=	vorbisidec:${PORTSDIR}/audio/libtremor
+CONFIGURE_ARGS+=CONFIG_TREMOR=y
+.endif
 
-pre-everything::
-	@${PRINTF} "${PREMSG}"
-	@${ECHO_CMD}
+MAN1=	cmus.1 cmus-remote.1
 
 post-extract:
-	@${REINPLACE_CMD} -e 's, -Wno-pointer-sign,,' ${WRKSRC}/configure
-	@${REINPLACE_CMD} -e 's,$$(mandir)/man1,${PREFIX}/man/man1,' \
-	${WRKSRC}/Doc/Makefile
-
-post-patch:
-	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
-		"s|/bin/bash|${LOCALBASE}/bin/bash|; \
-		 s|-lncursesw|-lncurses|g"
+	@${REINPLACE_CMD} -e 's,-lncursesw,-lncurses,g' ${WRKSRC}/configure
 
 post-install:
 .if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}/examples
-	${INSTALL} ${WRKSRC}/cmus-status-display ${DOCSDIR}/examples
+	${MKDIR} ${EXAMPLESDIR}
+	${INSTALL} ${WRKSRC}/cmus-status-display ${EXAMPLESDIR}
 .endif
 
 .include <bsd.port.post.mk>
diff -ruN -ruN --exclude=CVS /usr/ports/audio/cmus/distinfo /usr/home/simon/src/ports/audio/cmus/distinfo
--- /usr/ports/audio/cmus/distinfo	Wed Aug  9 14:32:59 2006
+++ /usr/home/simon/src/ports/audio/cmus/distinfo	Wed Aug  9 19:37:51 2006
@@ -1,3 +1,3 @@
-MD5 (cmus-2.0.2.tar.bz2) = b2779489fef402def3162dc3fad29151
-SHA256 (cmus-2.0.2.tar.bz2) = b33340f22a29e5bd709beebd3ed11f1229f8aad7a64e8e0455f09353c4b99eef
-SIZE (cmus-2.0.2.tar.bz2) = 145345
+MD5 (cmus-2.0.3.tar.bz2) = 0d7438dfa6ed5cd83eda0ab183ba43fc
+SHA256 (cmus-2.0.3.tar.bz2) = 76feab351bd7b4c735689bde5e47aaa74a7f2b2454b2dd339a3b8293b3f86d8f
+SIZE (cmus-2.0.3.tar.bz2) = 134703
diff -ruN -ruN --exclude=CVS /usr/ports/audio/cmus/pkg-descr /usr/home/simon/src/ports/audio/cmus/pkg-descr
--- /usr/ports/audio/cmus/pkg-descr	Mon Jan 16 04:54:23 2006
+++ /usr/home/simon/src/ports/audio/cmus/pkg-descr	Wed Aug  9 22:23:08 2006
@@ -16,4 +16,5 @@
   * Directory browser
   * Supports 256 colors
 
-WWW: http://onion.dynserv.net/~timo/cmus.html
+Author:	Timo Hirvonen <tihirvon@gmail.com>
+WWW:	http://onion.dynserv.net/~timo/cmus.html
diff -ruN -ruN --exclude=CVS /usr/ports/audio/cmus/pkg-plist /usr/home/simon/src/ports/audio/cmus/pkg-plist
--- /usr/ports/audio/cmus/pkg-plist	Wed Aug  9 14:32:59 2006
+++ /usr/home/simon/src/ports/audio/cmus/pkg-plist	Wed Aug  9 22:13:39 2006
@@ -1,27 +1,22 @@
 bin/cmus
 bin/cmus-remote
-lib/cmus/ip/flac.so
-lib/cmus/ip/mad.so
+lib/cmus/ip/wav.so
+%%FLAC%%lib/cmus/ip/flac.so
+%%MAD%%lib/cmus/ip/mad.so
 %%MODPLUG%%lib/cmus/ip/modplug.so
 %%MPC%%lib/cmus/ip/mpc.so
 %%VORBIS%%lib/cmus/ip/vorbis.so
-lib/cmus/ip/wav.so
+lib/cmus/op/oss.so
 %%AO%%lib/cmus/op/ao.so
 %%ARTS%%lib/cmus/op/arts.so
-lib/cmus/op/oss.so
 %%DATADIR%%/cyan.theme
-%%DATADIR%%/cyan.theme.bak
 %%DATADIR%%/default.theme
-%%DATADIR%%/default.theme.bak
 %%DATADIR%%/gray-88.theme
-%%DATADIR%%/gray-88.theme.bak
 %%DATADIR%%/green-mono-88.theme
-%%DATADIR%%/green-mono-88.theme.bak
 %%DATADIR%%/rc
-%%DATADIR%%/rc.bak
-%%DOCSDIR%%/examples/cmus-status-display
-@dirrm %%DOCSDIR%%/examples
-@dirrm %%DOCSDIR%%
+%%DATADIR%%/xterm-white.theme
+%%PORTDOCS%%%%EXAMPLESDIR%%/cmus-status-display
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
 @dirrm %%DATADIR%%
 @dirrm lib/cmus/op
 @dirrm lib/cmus/ip
--- cmus-2.0.3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060809204220.A0D0A1B152D>