diff options
author | dhn <dhn@FreeBSD.org> | 2009-09-06 18:34:49 +0800 |
---|---|---|
committer | dhn <dhn@FreeBSD.org> | 2009-09-06 18:34:49 +0800 |
commit | 36e7d7e0526a5112440fd4d64f74a8e4aefe019d (patch) | |
tree | 3d67398e0dd3c56eba75e0c03f614336264c7d3e /audio/vitunes | |
parent | 2400189a5797c4485fa4c3f915fdb1f29a19737a (diff) | |
download | freebsd-ports-gnome-36e7d7e0526a5112440fd4d64f74a8e4aefe019d.tar.gz freebsd-ports-gnome-36e7d7e0526a5112440fd4d64f74a8e4aefe019d.tar.zst freebsd-ports-gnome-36e7d7e0526a5112440fd4d64f74a8e4aefe019d.zip |
vitunes is a curses-based playlist manager and media player for *nix operating
systems with vim-like keybinds. It's primary goal is to serve as an index of
"tagged" multimedia files and provide a quick, easy interface for browsing &
searching your files, and creating playlists.
WWW: http://www.ryanflannery.net/hacking/vitunes/
Diffstat (limited to 'audio/vitunes')
-rw-r--r-- | audio/vitunes/Makefile | 33 | ||||
-rw-r--r-- | audio/vitunes/distinfo | 3 | ||||
-rw-r--r-- | audio/vitunes/files/patch-vitunes | 125 | ||||
-rw-r--r-- | audio/vitunes/pkg-descr | 6 |
4 files changed, 167 insertions, 0 deletions
diff --git a/audio/vitunes/Makefile b/audio/vitunes/Makefile new file mode 100644 index 000000000000..22a8b4e00bc6 --- /dev/null +++ b/audio/vitunes/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: vitunes +# Date created: 2009-09-02 +# Whom: Dennis Herrmann <dhn@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= vitunes +PORTVERSION= 0.93 +CATEGORIES= audio +MASTER_SITES= http://www.ryanflannery.net/hacking/vitunes/files/ \ + http://mirror.4bit.ws/ \ + ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= dhn +EXTRACT_SUFX= .tgz + +MAINTAINER= dhn@FreeBSD.org +COMMENT= A curses-based media player with vim-like keybinds + +RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer +LIB_DEPENDS= id3tag.0:${PORTSDIR}/audio/libid3tag \ + vorbis.4:${PORTSDIR}/audio/libvorbis \ + mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 + +WRKSRC= ${WRKDIR}/${PORTNAME} + +ALL_TARGET= vitunes +PLIST_FILES= bin/vitunes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ + +.include <bsd.port.mk> diff --git a/audio/vitunes/distinfo b/audio/vitunes/distinfo new file mode 100644 index 000000000000..0be23ac36432 --- /dev/null +++ b/audio/vitunes/distinfo @@ -0,0 +1,3 @@ +MD5 (vitunes-0.93.tgz) = 9eca27cd9b4991703298fd82bd677553 +SHA256 (vitunes-0.93.tgz) = a5e02a96f60806d17ae664329733a52c910a100dc9c502bbc3877bebed4d5c6b +SIZE (vitunes-0.93.tgz) = 36201 diff --git a/audio/vitunes/files/patch-vitunes b/audio/vitunes/files/patch-vitunes new file mode 100644 index 000000000000..196064f10451 --- /dev/null +++ b/audio/vitunes/files/patch-vitunes @@ -0,0 +1,125 @@ +--- Makefile.orig 2009-03-11 22:39:03.000000000 +0100 ++++ Makefile 2009-09-02 13:26:25.000000000 +0200 +@@ -3,7 +3,7 @@ + LDFLAGS_DEPS=-L/usr/local/lib -lid3tag -lmp4v2 -logg -lvorbis -lvorbisfile + + CC=/usr/bin/gcc +-CFLAGS=-c -Wall -ansi -O2 -DDEBUG -g $(CFLAGS_DEPS) ++CFLAGS=-c -Wall -O2 -DDEBUG -g $(CFLAGS_DEPS) -std=c99 + LDFLAGS=-lncurses -lm $(LDFLAGS_DEPS) + + +--- meta_info.c.orig 2009-03-11 23:00:31.000000000 +0100 ++++ meta_info.c 2009-09-02 13:26:25.000000000 +0200 +@@ -260,10 +260,12 @@ + */ + if (mi->cinfo[MI_CINFO_GENRE] != NULL) + { long long gindex; +- const char *errstr; ++ const char *errstr = NULL; + + /* note that the range is here what libid3tag can handle */ +- gindex = strtonum(mi->cinfo[MI_CINFO_GENRE], 0, 147, &errstr); ++ /* gindex = strtonum(mi->cinfo[MI_CINFO_GENRE], 0, 147, &errstr);*/ ++ gindex = atoll(mi->cinfo[MI_CINFO_GENRE]); ++ + if (errstr != NULL) /* check for invalid genre number */ + { free(mi->cinfo[MI_CINFO_GENRE]); + mi->cinfo[MI_CINFO_GENRE] = NULL; +--- meta_info.h.orig 2009-03-13 00:54:02.000000000 +0100 ++++ meta_info.h 2009-09-02 13:26:25.000000000 +0200 +@@ -3,6 +3,7 @@ + + #include <stdlib.h> + #include <string.h> ++#include <strings.h> + #include <limits.h> + #include <time.h> + #include <err.h> +--- meta_info_db.c.orig 2009-03-05 00:49:50.000000000 +0100 ++++ meta_info_db.c 2009-09-02 13:26:25.000000000 +0200 +@@ -312,7 +312,7 @@ + if (index != -1) /* file DOES exist in DB... */ + { + /* check if the file has been modified since it was added */ +- if (ftsent->fts_statp->st_mtim.tv_sec > ++ if (ftsent->fts_statp->st_mtime > + midb->files[index]->last_updated) + { /* it has been modified... update the record */ + mi = meta_extract(ftsent->fts_accpath); +@@ -399,7 +399,7 @@ + + } else + { /* file still exists... check if it has been modified */ +- if (sb.st_mtim.tv_sec > midb->files[i]->last_updated) ++ if (sb.st_mtime > midb->files[i]->last_updated) + { meta_info *mi = meta_extract(filename); + if (mi == NULL) + { midb_remove_record(midb, i); +--- meta_info_db.h.orig 2009-03-18 17:44:59.000000000 +0100 ++++ meta_info_db.h 2009-09-02 13:26:25.000000000 +0200 +@@ -1,9 +1,15 @@ + #ifndef META_INFO_DB + #define META_INFO_DB + ++#include <limits.h> ++#include <stdlib.h> + #include <sys/errno.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <unistd.h> ++ ++typedef unsigned short u_short; ++ + #include <fts.h> + + #include "meta_info.h" +--- uinterface.h.orig 2009-05-08 03:22:43.000000000 +0200 ++++ uinterface.h 2009-09-02 13:26:25.000000000 +0200 +@@ -2,11 +2,12 @@ + #define UINTERFACE_H + + #include <sys/ioctl.h> +-#include <sys/ioctl_compat.h> ++/* #include <sys/ioctl_compat.h> */ + #include <ncurses.h> + #include <ctype.h> + #include <stdio.h> + #include <stdlib.h> ++#include <stdint.h> + #include <string.h> + #include <termios.h> + #include <unistd.h> +--- vitunes.c.orig 2009-05-08 17:13:19.000000000 +0200 ++++ vitunes.c 2009-09-02 13:26:25.000000000 +0200 +@@ -1,10 +1,13 @@ + ++#include <signal.h> + #include <sys/time.h> + #include <sys/types.h> + #include <stdlib.h> + #include <stdio.h> + #include <math.h> + #include <pwd.h> ++#include <unistd.h> ++#include <getopt.h> + + #include "vitunes.h" + +@@ -304,12 +307,12 @@ + printf("\tcommand \"updatedb\" instead.\n"); + printf("Do you wish to continue? [y/n] "); + +- char *response; ++ char response[5]; + size_t res_size; +- if ((response = fgetln(stdin, &res_size)) == NULL) +- err(1, "fgetln"); ++ if (fgets(response, 5, stdin) == NULL) ++ err(1, "fgets"); + +- response[res_size] = '\0'; ++ /* response[res_size] = '\0'; */ + if (strcasecmp(response, "yes") != 0 && strcasecmp(response, "y") != 0) + { printf("creatdb cancelled.\n"); + return 1; diff --git a/audio/vitunes/pkg-descr b/audio/vitunes/pkg-descr new file mode 100644 index 000000000000..bc44d7eb7c2f --- /dev/null +++ b/audio/vitunes/pkg-descr @@ -0,0 +1,6 @@ +vitunes is a curses-based playlist manager and media player for *nix operating +systems with vim-like keybinds. It's primary goal is to serve as an index of +"tagged" multimedia files and provide a quick, easy interface for browsing & +searching your files, and creating playlists. + +WWW: http://www.ryanflannery.net/hacking/vitunes/ |