aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorclive <clive@FreeBSD.org>2001-10-20 22:55:06 +0800
committerclive <clive@FreeBSD.org>2001-10-20 22:55:06 +0800
commit2e35e3f5f9af7e4816b33958e41c670fe63d9ada (patch)
tree21fb147a1a256e49aea037ee2e687d43b41f2f0d /audio
parent25c12d86186cc904d02c575f50ca04cb862d0080 (diff)
downloadfreebsd-ports-gnome-2e35e3f5f9af7e4816b33958e41c670fe63d9ada.tar.gz
freebsd-ports-gnome-2e35e3f5f9af7e4816b33958e41c670fe63d9ada.tar.zst
freebsd-ports-gnome-2e35e3f5f9af7e4816b33958e41c670fe63d9ada.zip
New port: id3v2, a command line id3v2 tag editor
PR: ports/31207 Submitted by: David MacKenzie <djm@pix.net>
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile1
-rw-r--r--audio/id3v2/Makefile19
-rw-r--r--audio/id3v2/distinfo1
-rw-r--r--audio/id3v2/files/patch-aa18
-rw-r--r--audio/id3v2/files/patch-ab74
-rw-r--r--audio/id3v2/files/patch-ac77
-rw-r--r--audio/id3v2/pkg-comment1
-rw-r--r--audio/id3v2/pkg-descr4
-rw-r--r--audio/id3v2/pkg-plist1
9 files changed, 196 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index cbf2fbd1f26e..110cb224124b 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -84,6 +84,7 @@
SUBDIR += id3lib
SUBDIR += id3ren
SUBDIR += id3tool
+ SUBDIR += id3v2
SUBDIR += juke
SUBDIR += kdemultimedia2
SUBDIR += khordpro
diff --git a/audio/id3v2/Makefile b/audio/id3v2/Makefile
new file mode 100644
index 000000000000..e7c0a63d6ad6
--- /dev/null
+++ b/audio/id3v2/Makefile
@@ -0,0 +1,19 @@
+# New ports collection makefile for: id3v2
+# Date created: 10 Oct 2001
+# Whom: David MacKenzie <djm@pix.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= id3v2
+PORTVERSION= 0.1.2
+CATEGORIES= audio
+MASTER_SITES= http://download.sourceforge.net/id3v2/
+
+MAINTAINER= djm@pix.net
+
+LIB_DEPENDS= id3:${PORTSDIR}/audio/id3lib gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+
+MAN1= id3v2.1
+
+.include <bsd.port.mk>
diff --git a/audio/id3v2/distinfo b/audio/id3v2/distinfo
new file mode 100644
index 000000000000..982c101ac1f0
--- /dev/null
+++ b/audio/id3v2/distinfo
@@ -0,0 +1 @@
+MD5 (id3v2-0.1.2.tar.gz) = 6bc856e78da102c2f012db63d516806e
diff --git a/audio/id3v2/files/patch-aa b/audio/id3v2/files/patch-aa
new file mode 100644
index 000000000000..c28b486e1d59
--- /dev/null
+++ b/audio/id3v2/files/patch-aa
@@ -0,0 +1,18 @@
+--- Makefile.orig Thu Apr 6 17:23:27 2000
++++ Makefile Wed Oct 10 16:59:49 2001
+@@ -1,7 +1,12 @@
++PREFIX = /usr/local
++CXXFLAGS += -I${PREFIX}/include
++LDFLAGS += -L${PREFIX}/lib
++
+ all: id3v2
+
+-id3v2: Makefile convert.cpp list.cpp id3v2.cpp convert.cpp
+- g++ -lid3 -g -o id3v2 id3v2.cpp list.cpp convert.cpp
++id3v2: convert.o list.o id3v2.o
++ g++ ${LDFLAGS} -lid3 -lz -lgnugetopt -o $@ convert.o list.o id3v2.o
+
+ install: all
+- cp id3v2 /usr/local/bin/
++ install -c -s id3v2 ${PREFIX}/bin/id3v2
++ nroff -man id3v2.1 > ${PREFIX}/man/man1/id3v2.1
diff --git a/audio/id3v2/files/patch-ab b/audio/id3v2/files/patch-ab
new file mode 100644
index 000000000000..ac1941e3ffa9
--- /dev/null
+++ b/audio/id3v2/files/patch-ab
@@ -0,0 +1,74 @@
+--- convert.cpp~ Fri Apr 7 14:11:22 2000
++++ convert.cpp Wed Oct 10 15:50:16 2001
+@@ -14,22 +14,22 @@
+ cout << argv[nIndex] << "\"...";
+
+ myTag.Clear();
+- myTag.Link(argv[nIndex]);
++ myTag.Link(argv[nIndex], ID3TT_ALL);
+
+ luint nTags;
+ switch(whichTags)
+ {
+ case 1:
+- nTags = myTag.Strip(V1_TAG);
++ nTags = myTag.Strip(ID3TT_ID3V1);
+ cout << "id3v1 ";
+ break;
+ case 2:
+- nTags = myTag.Strip(V2_TAG);
++ nTags = myTag.Strip(ID3TT_ID3V2);
+ cout << "id3v2 ";
+ break;
+ case 0:
+ default:
+- nTags = myTag.Strip(BOTH_ID3_TAGS);
++ nTags = myTag.Strip(ID3TT_ID3);
+ cout << "id3v1 and v2 ";
+ }
+
+@@ -61,11 +61,11 @@
+ cout << argv[nIndex] << "...";
+
+ myTag.Clear();
+- myTag.Link(argv[nIndex]);
++ myTag.Link(argv[nIndex], ID3TT_ALL);
+
+ luint nTags;
+
+- nTags = myTag.Update(V2_TAG);
++ nTags = myTag.Update(ID3TT_ID3V2);
+ cout << " converted ";
+ cout << endl;
+ }
+--- id3v2.cpp~ Sat Apr 22 13:46:44 2000
++++ id3v2.cpp Wed Oct 10 15:52:09 2001
+@@ -291,7 +291,7 @@
+ // cout << "Tagging " << argv[nIndex] << ": ";
+
+ // fix me - not checking to see if we can link to it
+- myTag.Link(argv[nIndex], false, false);
++ myTag.Link(argv[nIndex], ID3TT_ID3V2);
+
+ // loop thru the frames we need to add/modify
+ for(ii = 0; ii < frameCounter; ii++)
+@@ -557,7 +557,7 @@
+ }
+ } // steping thru frames
+
+- luint nTags = myTag.Update(V2_TAG);
++ luint nTags = myTag.Update(ID3TT_ID3V2);
+
+ }
+ catch(ID3_Error err)
+--- list.cpp~ Sat Apr 22 13:47:43 2000
++++ list.cpp Wed Oct 10 15:52:37 2001
+@@ -353,7 +353,7 @@
+
+ if(!PrintID3v1Tag(argv[nIndex]))
+ tags = true;
+- myTag.Link(argv[nIndex], false, false);
++ myTag.Link(argv[nIndex], ID3TT_ID3V2);
+ if(!PrintInformation(argv[nIndex],myTag))
+ tags = true;
+ if(!tags)
diff --git a/audio/id3v2/files/patch-ac b/audio/id3v2/files/patch-ac
new file mode 100644
index 000000000000..eaf32ce76626
--- /dev/null
+++ b/audio/id3v2/files/patch-ac
@@ -0,0 +1,77 @@
+--- /dev/null Wed Oct 10 15:39:32 2001
++++ id3v2.1 Mon Dec 11 00:53:03 2000
+@@ -0,0 +1,74 @@
++.TH ID3V2 1 "May 2000" "" "User Command"
++.SH NAME
++id3v2 \- Adds/Modifies/Removes/Views id3v2 tags, converts/lists id3v1 tags
++.SH SYNOPSIS
++.B id3v2
++.RB [
++.I OPTION
++.RB ]
++...
++.RB [
++.I FILE
++.RB ]
++...
++.br
++.SH OPTIONS
++.TP
++.B \-h, \-\-help
++Display help and exit
++.TP
++.B \-f, \-\-list\-frames
++Display all possible frames for id3v2
++.TP
++.B \-L, \-\-list\-genres
++Lists all id3v1 genres
++.TP
++.B \-v, \-\-version
++Display version information and exit
++.TP
++.B \-l, \-\-list
++Lists the tag(s) on the file(s)
++.TP
++.B \-R, \-\-list-rfc822
++Lists using an rfc822\-style format for output
++.TP
++.B \-d, \-\-delete\-v2
++Deletes id3v2 tags
++.TP
++.B \-s, \-\-delete\-v1
++Deletes id3v1 tags
++.TP
++.B \-D, \-\-delete\-all
++ Deletes both id3v1 and id3v2 tags
++.TP
++.B \-C, \-\-convert
++ Converts id3v1 tag to id3v2
++.TP
++.B \-a, \-\-artist ARTIST
++Set the artist information
++.TP
++.B \-A, \-\-album ALBUM
++Set the album title information
++.TP
++.B \-t, \-\-song SONG
++Set the song title information
++.TP
++.B \-c, \-\-comment DESCRIPTION:COMMENT
++Set the comment information
++.TP
++.B \-g, \-\-genre num
++Set the genre number
++.TP
++.B \-y, \-\-year num
++Set the year
++.TP
++.B \-T, \-\-track num/num
++Set the track number/(optional) total tracks
++
++.SH SEE ALSO
++id3tag(1), id3info(1), id3convert(1)
++.SH AUTHOR
++.B id3v2
++is by myers <icepick@users.sourceforge.net> with major portions used from id3lib
++examples. Manual page written for Debian GNU/Linux by Robert Woodcock
++<rcw@debian.org>.
diff --git a/audio/id3v2/pkg-comment b/audio/id3v2/pkg-comment
new file mode 100644
index 000000000000..4c8ea3d61753
--- /dev/null
+++ b/audio/id3v2/pkg-comment
@@ -0,0 +1 @@
+Command line id3v2 tag editor
diff --git a/audio/id3v2/pkg-descr b/audio/id3v2/pkg-descr
new file mode 100644
index 000000000000..9f29213bd22e
--- /dev/null
+++ b/audio/id3v2/pkg-descr
@@ -0,0 +1,4 @@
+d3v2 is a command line id3v2 tag editor. You can add/modifiy/delete
+id3v2 tags and convert id3v1 tags to id3v2 tags. It uses id3lib.
+
+WWW: http://sourceforge.net/projects/id3v2/
diff --git a/audio/id3v2/pkg-plist b/audio/id3v2/pkg-plist
new file mode 100644
index 000000000000..a4b118d0b2f4
--- /dev/null
+++ b/audio/id3v2/pkg-plist
@@ -0,0 +1 @@
+bin/id3v2