summaryrefslogtreecommitdiff
path: root/audio/juke
diff options
context:
space:
mode:
authorsalo <salo@pkgsrc.org>2003-03-06 22:30:57 +0000
committersalo <salo@pkgsrc.org>2003-03-06 22:30:57 +0000
commit03cbef084d2bf3bbc44162ba99fbd0dec2cf8f31 (patch)
tree413022185c87975f99a5f214486df2ee32fae7b3 /audio/juke
parent191bae1dd9f4081bc0b91e4a17ef2e2ccfb1cafa (diff)
downloadpkgsrc-03cbef084d2bf3bbc44162ba99fbd0dec2cf8f31.tar.gz
Import of juke-0.7: Simple ncurses based jukebox
Juke is a simple ncurses based jukebox program for Unix computers. It uses command line based players to play different kinds of music formats. Package provided by Johan Ahlander in private mail.
Diffstat (limited to 'audio/juke')
-rw-r--r--audio/juke/DESCR3
-rw-r--r--audio/juke/MESSAGE21
-rw-r--r--audio/juke/Makefile37
-rw-r--r--audio/juke/PLIST7
-rw-r--r--audio/juke/distinfo7
-rw-r--r--audio/juke/patches/patch-aa18
-rw-r--r--audio/juke/patches/patch-ab13
-rw-r--r--audio/juke/patches/patch-ac15
8 files changed, 121 insertions, 0 deletions
diff --git a/audio/juke/DESCR b/audio/juke/DESCR
new file mode 100644
index 00000000000..b9acb272fc5
--- /dev/null
+++ b/audio/juke/DESCR
@@ -0,0 +1,3 @@
+Juke is a simple ncurses based jukebox program for Unix computers.
+It uses command line based players to play different kinds of music
+formats.
diff --git a/audio/juke/MESSAGE b/audio/juke/MESSAGE
new file mode 100644
index 00000000000..c36927d6030
--- /dev/null
+++ b/audio/juke/MESSAGE
@@ -0,0 +1,21 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2003/03/06 22:30:57 salo Exp $
+
+You may wish to install at least some players from pkgsrc to use with juke
+(if you don't have them installed already). You can try the following
+packages:
+
+ audio/amp another mp3 player
+ audio/flac free lossless audio codec
+ audio/mad High-quality MPEG audio decoder
+ audio/mikmod MOD player for UNI IT XM S3M MOD MTM STM DSM MED FAR
+ ULT 669 files
+ audio/mpg123 Command-line player for mpeg layer 1, 2 and 3 audio
+ audio/sidplay tools for playing sidtunes
+ audio/sox SOund eXchange - universal sound sample translator
+ audio/vorbis-tools Ogg Vorbis encoder and player
+ audio/xmp Player for many different Amiga and PC module formats
+
+Preferences can be set in ~/.juke.conf for each user, and for all users in
+${PKG_SYSCONFDIR}/juke.conf system-wide.
+===========================================================================
diff --git a/audio/juke/Makefile b/audio/juke/Makefile
new file mode 100644
index 00000000000..ef632f3ebc2
--- /dev/null
+++ b/audio/juke/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/03/06 22:30:57 salo Exp $
+#
+
+DISTNAME= juke-0.7
+CATEGORIES= audio
+MASTER_SITES= http://johan.nocrew.org/nav10/unix/juke/archive/
+
+MAINTAINER= mob@bicekru.org
+HOMEPAGE= http://johan.nocrew.org/nav10/unix/juke/
+COMMENT= Simple ncurses based jukebox
+
+USE_BUILDLINK2= YES
+USE_PKGINSTALL= YES
+GNU_CONFIGURE= YES
+
+# halfdelay()
+INCOMPAT_CURSES= NetBSD-1.[45]*-* NetBSD-1.6[-_.]* NetBSD-1.6[A-L]-*
+
+EGDIR= ${PREFIX}/share/examples/juke
+
+CONF_FILES= ${EGDIR}/juke.conf.default ${PKG_SYSCONFDIR}/juke.conf
+
+post-configure:
+ @cd ${WRKSRC} && \
+ for f in MANUAL doc/juke.1 src/conf.c; do \
+ ${MV} $$f $$f.orig; \
+ ${SED} ${FILES_SUBST_SED} $$f.orig > $$f; \
+ done
+
+post-install:
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/juke
+ ${INSTALL_DATA} ${WRKSRC}/juke.conf ${EGDIR}/juke.conf.default
+ ${INSTALL_DATA} ${WRKSRC}/MANUAL ${PREFIX}/share/doc/juke/
+
+.include "../../devel/ncurses/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/juke/PLIST b/audio/juke/PLIST
new file mode 100644
index 00000000000..6f274cc1f37
--- /dev/null
+++ b/audio/juke/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/03/06 22:30:57 salo Exp $
+bin/juke
+man/man1/juke.1
+share/doc/juke/MANUAL
+share/examples/juke/juke.conf.default
+@dirrm share/examples/juke
+@dirrm share/doc/juke
diff --git a/audio/juke/distinfo b/audio/juke/distinfo
new file mode 100644
index 00000000000..28e8e21c4ba
--- /dev/null
+++ b/audio/juke/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/03/06 22:30:57 salo Exp $
+
+SHA1 (juke-0.7.tar.gz) = 04f5e2265743e2ea01a43ea71531845f97c095c3
+Size (juke-0.7.tar.gz) = 64103 bytes
+SHA1 (patch-aa) = e835b1fe8f00d8c5581a87d55407b9979bb73710
+SHA1 (patch-ab) = e4a089f7307e6a029b7e0c6b5b862326e160f6d5
+SHA1 (patch-ac) = f1c7233cd88ebdbc8df1a5ec5955b6506fd73634
diff --git a/audio/juke/patches/patch-aa b/audio/juke/patches/patch-aa
new file mode 100644
index 00000000000..2cfe80301cc
--- /dev/null
+++ b/audio/juke/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/03/06 22:30:57 salo Exp $
+
+--- src/conf.c.orig 2000-03-06 21:43:13.000000000 +0100
++++ src/conf.c 2003-02-26 17:36:08.000000000 +0100
+@@ -207,11 +207,11 @@
+ return;
+ }
+ }
+- cfg->file_len = load_file ("/etc/juke.conf", (void **)&cfg->file);
++ cfg->file_len = load_file ("@PKG_SYSCONFDIR@/juke.conf", (void **)&cfg->file);
+ if (cfg->file_len != ERROR) {
+ evaluate (cfg);
+ if (! cfg->formats) {
+- fprintf (stderr, "error: No formats in /etc/juke.conf\n");
++ fprintf (stderr, "error: No formats in @PKG_SYSCONFDIR@/juke.conf\n");
+ exit (ERROR);
+ }
+ build_arg_lists (cfg);
diff --git a/audio/juke/patches/patch-ab b/audio/juke/patches/patch-ab
new file mode 100644
index 00000000000..a46abb444a9
--- /dev/null
+++ b/audio/juke/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/03/06 22:30:57 salo Exp $
+
+--- doc/juke.1.orig 2003-02-26 17:37:02.000000000 +0100
++++ doc/juke.1 2003-02-26 17:37:20.000000000 +0100
+@@ -34,7 +34,7 @@
+ give the user the possibily of choosing audio files and queue them
+ for playback. Juke will play mp3, mod, wav and other formats.
+ .SH FILES
+-/etc/juke.conf, ~/.juke.conf
++@PKG_SYSCONFDIR@/juke.conf, ~/.juke.conf
+ .SH SEE ALSO
+ .BR mpg123 (1),
+ .BR play (1),
diff --git a/audio/juke/patches/patch-ac b/audio/juke/patches/patch-ac
new file mode 100644
index 00000000000..5e0a484fa3d
--- /dev/null
+++ b/audio/juke/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/03/06 22:30:57 salo Exp $
+
+--- MANUAL.orig 2000-09-27 09:06:52.000000000 +0200
++++ MANUAL 2003-02-26 17:38:28.000000000 +0100
+@@ -22,8 +22,8 @@
+
+ I hope that the format is kind of self explaining.
+
+-The configuration file can be saved as /etc/juke.conf or
+-~/.juke.conf. The later is used if both files exists.
++The configuration file can be saved as @PKG_SYSCONFDIR@/juke.conf
++or ~/.juke.conf. The later is used if both files exists.
+
+ 3 Usage
+