Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

20
audio/cmus/DESCR Normal file
View File

@@ -0,0 +1,20 @@
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, MP4, AAC, WAV, WV and modules
* MP3 and Ogg streaming (Shoutcast/Icecast)
* WinAmp / XMMS keys "zxcvb"
* Can be controlled via UNIX socket
* Customizable colors
* Nice vi-style interface with tabulator expansion
* Background playlist loading
* Track metadata database makes adding files to playlist very fast.
* Album/artist modes. Playing within one album or artist.
* Powerful playlist filters
* Can run external commands for the currently selected files
* Directory browser
* Supports 256 colors
* Play Queue
* Dynamic Keybinding
* Easy to use directory browser

47
audio/cmus/Makefile Normal file
View File

@@ -0,0 +1,47 @@
# $NetBSD: Makefile,v 1.43 2013/05/06 19:55:27 gls Exp $
#
DISTNAME= cmus-v2.5.0
PKGNAME= ${DISTNAME:S/-v/-/}
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cmus/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= ahoka@NetBSD.org
HOMEPAGE= http://cmus.sourceforge.net/
COMMENT= Cmus is a small, fast and powerful text mode music player
LICENSE= gnu-gpl-v2
CONFLICTS+= cmus-unofficial-[0-9]*
HAS_CONFIGURE= yes
USE_TOOLS+= gmake pkg-config
REPLACE_SH+= cmus-status-display
CONFIGURE_ARGS+= prefix=${PREFIX}
CONFIGURE_ARGS+= CONFIG_ALSA=n
CONFIGURE_ARGS+= mandir=${PREFIX}/${PKGMANDIR}/
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" || 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"

30
audio/cmus/PLIST Normal file
View File

@@ -0,0 +1,30 @@
@comment $NetBSD: PLIST,v 1.12 2013/05/06 19:55:27 gls Exp $
bin/cmus
bin/cmus-remote
${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.musepack}lib/cmus/ip/mpc.so
lib/cmus/ip/wav.so
${PLIST.wavpack}lib/cmus/ip/wavpack.so
${PLIST.arts}lib/cmus/op/arts.so
${PLIST.pulseaudio}lib/cmus/op/pulse.so
${PLIST.libao}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
man/man7/cmus-tutorial.7
share/cmus/cyan.theme
share/cmus/default.theme
share/cmus/gray-88.theme
share/cmus/green-mono-88.theme
share/cmus/green.theme
share/cmus/rc
share/cmus/xterm-white.theme
share/cmus/zenburn.theme
share/doc/cmus/examples/cmus-status-display

7
audio/cmus/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.16 2013/05/06 19:55:27 gls Exp $
SHA1 (cmus-v2.5.0.tar.bz2) = 244975a5ff642567acb047f6bd518e4a3271c25b
RMD160 (cmus-v2.5.0.tar.bz2) = ee7b285cbafd6449d853d669e25cb4997254cece
Size (cmus-v2.5.0.tar.bz2) = 224675 bytes
SHA1 (patch-mixer__sun.c) = ffab27aa6c24715d78757015f4dcb2a53f2920b0
SHA1 (patch-sun.c) = b3abbd3446b695c8d0aec9d9132328e92511b475

163
audio/cmus/options.mk Normal file
View File

@@ -0,0 +1,163 @@
# $NetBSD: options.mk,v 1.10 2011/02/27 10:51:51 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cmus
PKG_SUPPORTED_OPTIONS= flac mad vorbis arts libao musepack faad wavpack pulseaudio
PKG_SUPPORTED_OPTIONS+= wide-curses ffmpeg
PKG_OPTIONS_OPTIONAL_GROUPS= mod
PKG_OPTIONS_GROUP.mod= modplug mikmod
PKG_SUGGESTED_OPTIONS= flac mad libao vorbis modplug
PKG_OPTIONS_LEGACY_OPTS= ao:libao
PKG_OPTIONS_LEGACY_OPTS= mpcdec:musepack
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
###
### Backends
###
# AO support
#
.if !empty(PKG_OPTIONS:Mlibao)
. include "../../audio/libao/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_AO=y
PLIST.libao= yes
.else
CONFIGURE_ARGS+= CONFIG_AO=n
.endif
# ARTS support
#
.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
# ALSA support
#
# UNTESTED
#.if !empty(PKG_OPTIONS:Malsa)
#ONLY_FOR_PLATFORM= Linux-*-* # Alsa is Linux only
#CONFIGURE_ARGS+= CONFIG_ALSA=y
#.endif
# PULSE support
#
.if !empty(PKG_OPTIONS:Mpulseaudio)
. include "../../audio/pulseaudio/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_PULSE=y
PLIST.pulseaudio= yes
.else
CONFIGURE_ARGS+= CONFIG_PULSE=n
.endif
###
### Codecs
###
# MAD support
#
.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
# VORBIS support
#
.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
# FLAC support
#
.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
# MPCDEC support
#
.if !empty(PKG_OPTIONS:Mmusepack)
.include "../../audio/libmpcdec/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_MPC=y
PLIST.musepack= 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
# FFMPEG support
#
.if !empty(PKG_OPTIONS:Mffmpeg)
.include "../../multimedia/ffmpeg/buildlink3.mk"
CONFIGURE_ARGS+= CONFIG_FFMPEG=y
PLIST.ffmpeg= yes
.else
CONFIGURE_ARGS+= CONFIG_FFMPEG=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
#
.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.
###
# cmus works fine with a 5.0+ NetBSD curses
.if !empty(MACHINE_PLATFORM:MNetBSD-[5-9].*-*)
. include "../../mk/curses.buildlink3.mk"
.else
. if !empty(PKG_OPTIONS:Mwide-curses)
. include "../../devel/ncursesw/buildlink3.mk"
. else
. include "../../devel/ncurses/buildlink3.mk"
. endif
.endif

View File

@@ -0,0 +1,51 @@
$NetBSD: patch-mixer__sun.c,v 1.1 2012/02/15 20:15:42 hans Exp $
--- mixer_sun.c.orig 2011-11-30 09:57:20.000000000 +0100
+++ mixer_sun.c 2012-02-15 21:12:05.691072986 +0100
@@ -55,6 +55,7 @@ static int sun_mixer_get_option(int, cha
static int mixer_open(const char *dev)
{
+#ifdef AUDIO_MIXER_DEVINFO
struct mixer_devinfo minf;
int output_class;
@@ -100,6 +101,7 @@ static int mixer_open(const char *dev)
if (sun_mixer_volume_delta == 0)
sun_mixer_volume_delta = 1;
+#endif
return 0;
@@ -192,6 +194,7 @@ static int sun_mixer_close(void)
static int sun_mixer_set_volume(int l, int r)
{
+#ifdef AUDIO_MIXER_DEVINFO
struct mixer_ctrl minf;
int ovall, ovalr;
@@ -215,12 +218,14 @@ static int sun_mixer_set_volume(int l, i
if (ioctl(mixer_fd, AUDIO_MIXER_WRITE, &minf) == -1)
return -1;
+#endif
return 0;
}
static int sun_mixer_get_volume(int *l, int *r)
{
+#ifdef AUDIO_MIXER_DEVINFO
struct mixer_ctrl minf;
minf.dev = sun_mixer_device_id;
@@ -237,6 +242,7 @@ static int sun_mixer_get_volume(int *l,
*l = minf.un.value.level[AUDIO_MIXER_LEVEL_LEFT];
*r = minf.un.value.level[AUDIO_MIXER_LEVEL_RIGHT];
}
+#endif
return 0;
}

View File

@@ -0,0 +1,57 @@
$NetBSD: patch-sun.c,v 1.1 2012/02/15 20:15:42 hans Exp $
--- sun.c.orig 2011-11-30 09:57:20.000000000 +0100
+++ sun.c 2012-02-15 21:12:09.658462551 +0100
@@ -32,6 +32,26 @@
#include "sf.h"
#include "xmalloc.h"
+/* Compatibility defines, for old *BSD or SunOS systems */
+#ifndef AUDIO_ENCODING_SLINEAR_LE
+#define AUDIO_ENCODING_SLINEAR_LE AUDIO_ENCODING_LINEAR
+#endif
+#ifndef AUDIO_ENCODING_SLINEAR_BE
+#define AUDIO_ENCODING_SLINEAR_BE AUDIO_ENCODING_LINEAR
+#endif
+#ifndef AUDIO_ENCODING_ULINEAR_BE
+#define AUDIO_ENCODING_ULINEAR_BE AUDIO_ENCODING_LINEAR
+#endif
+#ifndef AUDIO_ENCODING_ULINEAR_LE
+#define AUDIO_ENCODING_ULINEAR_LE AUDIO_ENCODING_LINEAR
+#endif
+#ifndef AUDIO_ENCODING_SLINEAR
+#define AUDIO_ENCODING_SLINEAR AUDIO_ENCODING_LINEAR8
+#endif
+#ifndef AUDIO_ENCODING_ULINEAR
+#define AUDIO_ENCODING_ULINEAR AUDIO_ENCODING_LINEAR8
+#endif
+
static sample_format_t sun_sf;
static int sun_fd = -1;
@@ -39,7 +59,11 @@ static char *sun_audio_device = NULL;
static int sun_reset(void)
{
+#if defined(AUDIO_FLUSH) /* BSD extension */
if (ioctl(sun_fd, AUDIO_FLUSH, NULL) == -1)
+#elif defined(I_FLUSH) && defined(FLUSHW)
+ if (ioctl(sun_fd, I_FLUSH, FLUSHW) == -1)
+#endif
return -1;
return 0;
@@ -57,7 +81,13 @@ static int sun_set_sf(sample_format_t sf
ainf.play.channels = sf_get_channels(sun_sf);
ainf.play.sample_rate = sf_get_rate(sun_sf);
ainf.play.pause = 0;
+#if defined __NetBSD__ || defined __OpenBSD__
+#if defined AUMODE_PLAY_ALL
+ ainf.mode = AUMODE_PLAY | AUMODE_PLAY_ALL;
+#else
ainf.mode = AUMODE_PLAY;
+#endif
+#endif
switch (sf_get_bits(sun_sf)) {
case 16: