Import of wmmp3-0.12
wmmp3 is an mpg123 frontend. It is a small X application that will also work as a Window Maker dockapp. ok naddy@
This commit is contained in:
parent
68c4325c57
commit
1c4f0218af
32
audio/wmmp3/Makefile
Normal file
32
audio/wmmp3/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/02/06 11:56:54 wilfried Exp $
|
||||
|
||||
DISTNAME= wmmp3-0.12
|
||||
CATEGORIES= audio x11 x11/windowmaker
|
||||
NEED_VERSION= 1.340
|
||||
HOMEPAGE= http://www.dotfiles.com/software/wmmp3/
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
RUN_DEPENDS= mpg123::audio/mpg123
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
USE_X11= Yes
|
||||
|
||||
SAMPLE_DIR= ${PREFIX}/share/examples/wmmp3
|
||||
|
||||
SUBST_VARS+= SAMPLE_DIR
|
||||
|
||||
SEPARATE_BUILD= concurrent
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/wmmp3 ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${SAMPLE_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/sample.wmmp3 ${SAMPLE_DIR}/dot.wmmp3.sample
|
||||
|
||||
.include <bsd.port.mk>
|
3
audio/wmmp3/files/md5
Normal file
3
audio/wmmp3/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (wmmp3-0.12.tar.gz) = 4bbc839c48cb13680f94b2fa133ca423
|
||||
RMD160 (wmmp3-0.12.tar.gz) = 14fe7a9725449d179e09912e1dc6e34a37c0222b
|
||||
SHA1 (wmmp3-0.12.tar.gz) = 439e19550c58fe31db8c1bcf2985c56f62d7bc1f
|
12
audio/wmmp3/patches/patch-main_c
Normal file
12
audio/wmmp3/patches/patch-main_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-main_c,v 1.1.1.1 2001/02/06 11:56:54 wilfried Exp $
|
||||
--- main.c.orig Mon Apr 3 02:11:46 2000
|
||||
+++ main.c Mon Feb 5 20:17:37 2001
|
||||
@@ -230,7 +230,7 @@ int check_options(int argc, char *argv[]
|
||||
return option_entered;
|
||||
}
|
||||
|
||||
-void main(int argc, char *argv[])
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
struct coord pos[] = {
|
||||
{35, 34, 12, 11}, /* stop */
|
68
audio/wmmp3/patches/patch-mpg123ctl_c
Normal file
68
audio/wmmp3/patches/patch-mpg123ctl_c
Normal file
@ -0,0 +1,68 @@
|
||||
$OpenBSD: patch-mpg123ctl_c,v 1.1.1.1 2001/02/06 11:56:54 wilfried Exp $
|
||||
--- mpg123ctl.c.orig Mon Apr 3 02:18:43 2000
|
||||
+++ mpg123ctl.c Mon Feb 5 20:28:00 2001
|
||||
@@ -97,12 +97,12 @@ void set_playlist()
|
||||
dp = opendir(new_directory);
|
||||
while (new_directory && (strcmp(new_directory, directory) != 0) &&
|
||||
(dp == NULL)) {
|
||||
- strcpy(directory, new_directory);
|
||||
+ strlcpy(directory, new_directory, sizeof(directory));
|
||||
new_directory = (char *) next_mp3dir();
|
||||
dp = opendir(new_directory);
|
||||
}
|
||||
if (new_directory)
|
||||
- strcpy(directory, new_directory);
|
||||
+ strlcpy(directory, new_directory, sizeof(directory));
|
||||
}
|
||||
if (dp != NULL) {
|
||||
show_directory_name();
|
||||
@@ -111,7 +111,7 @@ void set_playlist()
|
||||
entry = readdir(dp);
|
||||
while (entry != NULL) {
|
||||
if (strstr(entry->d_name, mp3ext)) {
|
||||
- sprintf(filename, "%s/%s", directory, entry->d_name);
|
||||
+ snprintf(filename, sizeof(filename), "%s/%s", directory, entry->d_name);
|
||||
insert_song(num_songs, entry->d_name, filename);
|
||||
num_songs++;
|
||||
}
|
||||
@@ -178,8 +178,8 @@ void play_next()
|
||||
song = get_song(rand_song_num[next_song]);
|
||||
}
|
||||
if (song) {
|
||||
- strcpy(title, song->title);
|
||||
- strcat(title, " ");
|
||||
+ strlcpy(title, song->title, sizeof(title));
|
||||
+ strlcat(title, " ", sizeof(title));
|
||||
scroll_pos = 0;
|
||||
do_scroll = 1;
|
||||
scroll_title();
|
||||
@@ -255,17 +255,17 @@ void init_ctl()
|
||||
void set_mpg123(char *s)
|
||||
{
|
||||
|
||||
- strcpy(mpg123_cmd, s);
|
||||
+ strlcpy(mpg123_cmd, s, sizeof(mpg123_cmd));
|
||||
}
|
||||
|
||||
void set_mp3ext(char *s)
|
||||
{
|
||||
- strcpy(mp3ext, s);
|
||||
+ strlcpy(mp3ext, s, sizeof(mp3ext));
|
||||
}
|
||||
|
||||
void set_playlistext(char *s)
|
||||
{
|
||||
- strcpy(playlistext, s);
|
||||
+ strlcpy(playlistext, s, sizeof(playlistext));
|
||||
}
|
||||
|
||||
void set_alwaysscroll(char *s) {
|
||||
@@ -348,7 +348,7 @@ void show_directory_name()
|
||||
{
|
||||
if (dirnames[current_dir] != NULL) {
|
||||
while (strlen(dirnames[current_dir]) < 9) {
|
||||
- strcat(dirnames[current_dir], " ");
|
||||
+ strlcat(dirnames[current_dir], " ", sizeof(dirnames[0]));
|
||||
}
|
||||
draw_string(dirnames[current_dir], 5, 5);
|
||||
} else {
|
1
audio/wmmp3/pkg/COMMENT
Normal file
1
audio/wmmp3/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
wm-dockapp; front-end for mpg123
|
7
audio/wmmp3/pkg/DESCR
Normal file
7
audio/wmmp3/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
wmmp3 is an mpg123 frontend. It is a small X application
|
||||
that will also work as a Window Maker dockapp.
|
||||
|
||||
You configure wmmp3 by using a ~/.wmmp3 file,
|
||||
copy a sample from ${SAMPLE_DIR}.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
4
audio/wmmp3/pkg/PLIST
Normal file
4
audio/wmmp3/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/06 11:56:54 wilfried Exp $
|
||||
bin/wmmp3
|
||||
share/examples/wmmp3/dot.wmmp3.sample
|
||||
@dirrm share/examples/wmmp3
|
Loading…
Reference in New Issue
Block a user