diff options
author | ahoka <ahoka@pkgsrc.org> | 2008-07-16 14:04:29 +0000 |
---|---|---|
committer | ahoka <ahoka@pkgsrc.org> | 2008-07-16 14:04:29 +0000 |
commit | f4d02cde5d519b11f1dffbf2f0633c67d8951b99 (patch) | |
tree | eab48583f3128c39a6f464b3f7eef7e69fc8db71 /audio | |
parent | 68ba71f83258c371b52b03b0d3721631cb2e30f3 (diff) | |
download | pkgsrc-f4d02cde5d519b11f1dffbf2f0633c67d8951b99.tar.gz |
Add wavpack and aac/mp4 support.
Fix PLIST handling with options.
Add dlopen include.
Don't force OSS when not availible.
Handle sun output with more care (including PLIST).
Take maintainership.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/cmus/DESCR | 2 | ||||
-rw-r--r-- | audio/cmus/Makefile | 26 | ||||
-rw-r--r-- | audio/cmus/PLIST | 20 | ||||
-rw-r--r-- | audio/cmus/options.mk | 45 |
4 files changed, 64 insertions, 29 deletions
diff --git a/audio/cmus/DESCR b/audio/cmus/DESCR index d8c5feb3ab5..fbe76ec6fb4 100644 --- a/audio/cmus/DESCR +++ b/audio/cmus/DESCR @@ -2,7 +2,7 @@ CMus is a small and fast music player using the ncurses library. CMus has vi-style command interface, e.g. searching using '/' or '?' and adding files to playlist ':add ~/foo.ogg'. - * Plays FLAC, OGG, MP3, WAV, modules + * Plays FLAC, OGG, MP3, MP4, AAC, WAV, WV and modules * MP3 and Ogg streaming (Shoutcast/Icecast) * WinAmp / XMMS keys "zxcvb" * Can be controlled via UNIX socket diff --git a/audio/cmus/Makefile b/audio/cmus/Makefile index 36535fdfc83..927492d9bfc 100644 --- a/audio/cmus/Makefile +++ b/audio/cmus/Makefile @@ -1,14 +1,15 @@ -# $NetBSD: Makefile,v 1.11 2008/05/10 14:56:33 obache Exp $ +# $NetBSD: Makefile,v 1.12 2008/07/16 14:04:29 ahoka Exp $ # DISTNAME= cmus-2.2.0 +PKGREVISION= 1 CATEGORIES= audio MASTER_SITES= http://mirror.greaterscope.net/cmus/ EXTRACT_SUFX= .tar.bz2 -MAINTAINER= webmaster@deepblack24.de +MAINTAINER= ahoka@NetBSD.org HOMEPAGE= http://cmus.sourceforge.net/ -COMMENT= Cmus is an ncurses based mp3/ogg player with a lot of features +COMMENT= Cmus is an ncurses based music player with a lot of features PKG_DESTDIR_SUPPORT= user-destdir @@ -17,20 +18,27 @@ USE_TOOLS+= gmake pkg-config CONFIGURE_ARGS+= prefix=${PREFIX} CONFIGURE_ARGS+= CONFIG_ALSA=n -CONFIGURE_ARGS+= CONFIG_OSS=y CONFIGURE_ARGS+= mandir=${PREFIX}/${PKGMANDIR}/ -PLIST_VARS= sunaudio - -.if exists(/usr/include/sys/audioio.h) -PLIST.sunaudio= yes +PLIST_VARS+= sunaudio oss + +.include "../../mk/oss.buildlink3.mk" +.if ${OSS_TYPE} != "none" +PLIST.oss= yes +CONFIGURE_ARGS+= CONFIG_OSS=y +.else +CONFIGURE_ARGS+= CONFIG_OSS=n .endif .include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "SunOS" +.if ${OPSYS} == "SunOS" || exists(/usr/include/sys/audioio.h) CONFIGURE_ARGS+= CONFIG_SUN=y +PLIST.sunaudio= yes +.else +CONFIGURE_ARGS+= CONFIG_SUN=n .endif .include "options.mk" +.include "../../mk/dlopen.buildlink3.mk" .include "../../converters/libiconv/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/audio/cmus/PLIST b/audio/cmus/PLIST index d96673f5f6f..734aa8ba728 100644 --- a/audio/cmus/PLIST +++ b/audio/cmus/PLIST @@ -1,13 +1,19 @@ -@comment $NetBSD: PLIST,v 1.5 2008/05/10 14:56:33 obache Exp $ +@comment $NetBSD: PLIST,v 1.6 2008/07/16 14:04:29 ahoka Exp $ bin/cmus bin/cmus-remote -lib/cmus/ip/flac.so -lib/cmus/ip/mad.so -lib/cmus/ip/modplug.so -lib/cmus/ip/vorbis.so +${PLIST.flac}lib/cmus/ip/flac.so +${PLIST.mad}lib/cmus/ip/mad.so +${PLIST.modplug}lib/cmus/ip/modplug.so +${PLIST.mikmod}lib/cmus/ip/mikmod.so +${PLIST.vorbis}lib/cmus/ip/vorbis.so +${PLIST.faad}lib/cmus/ip/aac.so +${PLIST.faad}lib/cmus/ip/mp4.so +${PLIST.mpcdec}lib/cmus/ip/mpc.so lib/cmus/ip/wav.so -lib/cmus/op/ao.so -lib/cmus/op/oss.so +${PLIST.wavpack}lib/cmus/ip/wavpack.so +${PLIST.arts}lib/cmus/op/arts.so +${PLIST.ao}lib/cmus/op/ao.so +${PLIST.oss}lib/cmus/op/oss.so ${PLIST.sunaudio}lib/cmus/op/sun.so man/man1/cmus-remote.1 man/man1/cmus.1 diff --git a/audio/cmus/options.mk b/audio/cmus/options.mk index 176b0500f60..59a0394804c 100644 --- a/audio/cmus/options.mk +++ b/audio/cmus/options.mk @@ -1,7 +1,7 @@ -# $NetBSD: options.mk,v 1.4 2008/05/10 14:56:33 obache Exp $ +# $NetBSD: options.mk,v 1.5 2008/07/16 14:04:29 ahoka Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.cmus -PKG_SUPPORTED_OPTIONS= flac mad vorbis arts ao mpcdec #faad alsa +PKG_SUPPORTED_OPTIONS= flac mad vorbis arts ao mpcdec faad wavpack #alsa PKG_SUPPORTED_OPTIONS+= wide-curses PKG_OPTIONS_OPTIONAL_GROUPS= mod PKG_OPTIONS_GROUP.mod= modplug mikmod @@ -9,6 +9,8 @@ PKG_SUGGESTED_OPTIONS= flac mad ao vorbis modplug .include "../../mk/bsd.options.mk" +PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS} + ### ### Backends ### @@ -18,6 +20,7 @@ PKG_SUGGESTED_OPTIONS= flac mad ao vorbis modplug .if !empty(PKG_OPTIONS:Mao) . include "../../audio/libao/buildlink3.mk" CONFIGURE_ARGS+= CONFIG_AO=y +PLIST.ao= yes .else CONFIGURE_ARGS+= CONFIG_AO=n .endif @@ -27,6 +30,7 @@ CONFIGURE_ARGS+= CONFIG_AO=n .if !empty(PKG_OPTIONS:Marts) . include "../../audio/arts/buildlink3.mk" CONFIGURE_ARGS+= CONFIG_ARTS=y +PLIST.arts= yes .else CONFIGURE_ARGS+= CONFIG_ARTS=n .endif @@ -48,6 +52,7 @@ CONFIGURE_ARGS+= CONFIG_ARTS=n .if !empty(PKG_OPTIONS:Mmad) .include "../../audio/libmad/buildlink3.mk" CONFIGURE_ARGS+= CONFIG_MAD=y +PLIST.mad= yes .else CONFIGURE_ARGS+= CONFIG_MAD=n .endif @@ -57,6 +62,7 @@ CONFIGURE_ARGS+= CONFIG_MAD=n .if !empty(PKG_OPTIONS:Mvorbis) .include "../../audio/libvorbis/buildlink3.mk" CONFIGURE_ARGS+= CONFIG_VORBIS=y +PLIST.vorbis= yes .else CONFIGURE_ARGS+= CONFIG_VORBIS=n .endif @@ -66,6 +72,7 @@ CONFIGURE_ARGS+= CONFIG_VORBIS=n .if !empty(PKG_OPTIONS:Mflac) .include "../../audio/flac/buildlink3.mk" CONFIGURE_ARGS+= CONFIG_FLAC=y +PLIST.flac= yes .else CONFIGURE_ARGS+= CONFIG_FLAC=n .endif @@ -75,35 +82,49 @@ CONFIGURE_ARGS+= CONFIG_FLAC=n .if !empty(PKG_OPTIONS:Mmpcdec) .include "../../audio/libmpcdec/buildlink3.mk" CONFIGURE_ARGS+= CONFIG_MPC=y +PLIST.mpcdec= yes .else CONFIGURE_ARGS+= CONFIG_MPC=n .endif +# VAWPACK support +# +.if !empty(PKG_OPTIONS:Mwavpack) +.include "../../audio/wavpack/buildlink3.mk" +CONFIGURE_ARGS+= CONFIG_WAVPACK=y +PLIST.wavpack= yes +.else +CONFIGURE_ARGS+= CONFIG_WAVPACK=n +.endif + # modplay support # .if !empty(PKG_OPTIONS:Mmikmod) .include "../../audio/libmikmod/buildlink3.mk" +.include "../../audio/libaudiofile/buildlink3.mk" CONFIGURE_ARGS+= CONFIG_MODPLUG=n CONFIGURE_ARGS+= CONFIG_MIKMOD=y +PLIST.mikmod= yes .endif .if !empty(PKG_OPTIONS:Mmodplug) .include "../../audio/libmodplug/buildlink3.mk" CONFIGURE_ARGS+= CONFIG_MODPLUG=y CONFIGURE_ARGS+= CONFIG_MIKMOD=n +PLIST.modplug= yes .endif # FAAD support # -# XXX: faad2 in pkgsrc is heavily outdated as of 2007Q3, cmus needs newer. -# -#.if !empty(PKG_OPTIONS:Mfaad) -#.include "../../audio/faad2/buildlink3.mk" -#CONFIGURE_ARGS+= CONFIG_AAC=y -#CONFIGURE_ARGS+= CONFIG_MP4=y -#.else -#CONFIGURE_ARGS+= CONFIG_AAC=n -#CONFIGURE_ARGS+= CONFIG_MP4=n -#.endif +.if !empty(PKG_OPTIONS:Mfaad) +.include "../../audio/faad2/buildlink3.mk" +.include "../../multimedia/libmp4v2/buildlink3.mk" +CONFIGURE_ARGS+= CONFIG_AAC=y +CONFIGURE_ARGS+= CONFIG_MP4=y +PLIST.faad= yes +.else +CONFIGURE_ARGS+= CONFIG_AAC=n +CONFIGURE_ARGS+= CONFIG_MP4=n +.endif ### ### Wide curses support; otherwise, default to using narrow curses. |