diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2001-10-19 16:27:01 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2001-10-19 16:27:01 +0000 |
commit | 09e59025d78eb59df7199d811b3ebc0110ee9870 (patch) | |
tree | d5c07d2ab6cc0e90d01b25f1ca59bd6a0d6ec012 /audio/mpg321 | |
parent | 7a6b894765335274c9085b002c6ab2fd490cd5fb (diff) | |
download | ports-09e59025d78eb59df7199d811b3ebc0110ee9870.tar.gz ports-09e59025d78eb59df7199d811b3ebc0110ee9870.zip |
Notes
Diffstat (limited to 'audio/mpg321')
-rw-r--r-- | audio/mpg321/Makefile | 8 | ||||
-rw-r--r-- | audio/mpg321/distinfo | 2 | ||||
-rw-r--r-- | audio/mpg321/files/patch-getopt.c | 22 | ||||
-rw-r--r-- | audio/mpg321/files/patch-mad.c | 90 | ||||
-rw-r--r-- | audio/mpg321/files/patch-mpg321.h | 13 | ||||
-rw-r--r-- | audio/mpg321/files/patch-network.c | 14 | ||||
-rw-r--r-- | audio/mpg321/files/patch-options.c | 17 | ||||
-rw-r--r-- | audio/mpg321/files/patch-playlist.c | 13 | ||||
-rw-r--r-- | audio/mpg321/files/patch-remote.c | 13 | ||||
-rw-r--r-- | audio/mpg321/pkg-descr | 21 |
10 files changed, 40 insertions, 173 deletions
diff --git a/audio/mpg321/Makefile b/audio/mpg321/Makefile index e9c4bb517638..ea44aa22d88a 100644 --- a/audio/mpg321/Makefile +++ b/audio/mpg321/Makefile @@ -6,10 +6,10 @@ # PORTNAME= mpg321 -PORTVERSION= 0.2.0 +PORTVERSION= 0.2.2 CATEGORIES= audio -MASTER_SITES= http://people.debian.org/~drew/ -DISTNAME= ${PORTNAME}_${PORTVERSION} +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= mpg321 MAINTAINER= naddy@mips.inka.de @@ -21,8 +21,6 @@ CONFIGURE_ARGS= --disable-mpg123-symlink CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} - MAN1= mpg321.1 .include <bsd.port.mk> diff --git a/audio/mpg321/distinfo b/audio/mpg321/distinfo index e5dee369c78d..9985bee7dcc9 100644 --- a/audio/mpg321/distinfo +++ b/audio/mpg321/distinfo @@ -1 +1 @@ -MD5 (mpg321_0.2.0.tar.gz) = 9bf6a0b049c492381819b53e7449455a +MD5 (mpg321-0.2.2.tar.gz) = 3ad9c1fb9bbecefb2cbdda4cffd2b0df diff --git a/audio/mpg321/files/patch-getopt.c b/audio/mpg321/files/patch-getopt.c new file mode 100644 index 000000000000..e566e22a6b1a --- /dev/null +++ b/audio/mpg321/files/patch-getopt.c @@ -0,0 +1,22 @@ + +$FreeBSD$ + +--- getopt.c.orig Mon Oct 15 14:05:23 2001 ++++ getopt.c Mon Oct 15 14:05:37 2001 +@@ -76,16 +76,7 @@ + # endif + #endif + +-#ifndef _ +-/* This is for other GNU distributions with internationalized messages. +- When compiling libc, the _ macro is predefined. */ +-# ifdef HAVE_LIBINTL_H +-# include <libintl.h> +-# define _(msgid) gettext (msgid) +-# else + # define _(msgid) (msgid) +-# endif +-#endif + + /* This version of `getopt' appears to the caller like standard Unix `getopt' + but it behaves differently for the user, since it allows the user diff --git a/audio/mpg321/files/patch-mad.c b/audio/mpg321/files/patch-mad.c deleted file mode 100644 index 8589b5448bc8..000000000000 --- a/audio/mpg321/files/patch-mad.c +++ /dev/null @@ -1,90 +0,0 @@ - -$FreeBSD$ - ---- mad.c.orig Sun Sep 23 08:17:55 2001 -+++ mad.c Mon Sep 24 15:56:20 2001 -@@ -554,44 +554,47 @@ - - int calc_length(char *file, buffer *buf) - { -- FILE * f; -+ int f; - struct stat filestat; - void *fdm; - char buffer[3]; - -- if (stat(file, &filestat) == -1) -+ f = open(file, O_RDONLY); -+ -+ if (f < 0) - { - mpg321_error(file); - return -1; - } - -- f = fopen(file, "r"); -- -- if (f == NULL) -+ if (fstat(f, &filestat) < 0) - { - mpg321_error(file); -+ close(f); - return -1; - } - - if (!S_ISREG(filestat.st_mode)) - { - fprintf(stderr, "%s: Not a regular file\n", file); -- fclose(f); -+ close(f); - return -1; - } - - /* TAG checking is adapted from XMMS */ - buf->length = filestat.st_size; - -- if (fseek(f, -128, SEEK_END) < 0) -+ if (lseek(f, -128, SEEK_END) < 0) - { - mpg321_error(file); -+ close(f); - return -1; - } - -- if (read(fileno(f), buffer, 3) != 3) -+ if (read(f, buffer, 3) != 3) - { - fprintf(stderr, "Couldnt read 3 bytes from %s\n", file); -+ close(f); - return -1; - } - -@@ -600,12 +603,11 @@ - buf->length -= 128; /* Correct for id3 tags */ - } - -- rewind(f); -- -- fdm = mmap(0, buf->length, PROT_READ, MAP_SHARED, fileno(f), 0); -+ fdm = mmap(0, buf->length, PROT_READ, MAP_SHARED, f, 0); - if (fdm == MAP_FAILED) - { - mpg321_error(file); -+ close(f); - return -1; - } - -@@ -616,11 +618,11 @@ - if (munmap(fdm, buf->length) == -1) - { - mpg321_error(file); -- fclose(f); -+ close(f); - return -1; - } - -- if (fclose(f) == EOF) -+ if (close(f) < 0) - { - mpg321_error(file); - return -1; diff --git a/audio/mpg321/files/patch-mpg321.h b/audio/mpg321/files/patch-mpg321.h deleted file mode 100644 index 2ac5003087d8..000000000000 --- a/audio/mpg321/files/patch-mpg321.h +++ /dev/null @@ -1,13 +0,0 @@ - -$FreeBSD$ - ---- mpg321.h.orig Sat Sep 22 22:39:04 2001 -+++ mpg321.h Mon Sep 24 16:06:19 2001 -@@ -32,6 +32,7 @@ - #include "config.h" - #endif - -+#include <sys/types.h> - #include <stdio.h> - #include <limits.h> - #include <ao/ao.h> diff --git a/audio/mpg321/files/patch-network.c b/audio/mpg321/files/patch-network.c deleted file mode 100644 index 212cc481cb21..000000000000 --- a/audio/mpg321/files/patch-network.c +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- network.c.orig Mon Sep 24 16:01:09 2001 -+++ network.c Mon Sep 24 16:01:27 2001 -@@ -237,7 +237,7 @@ - int data_sock; - char ftp_request[1024]; - struct sockaddr_in stLclAddr; -- size_t namelen; -+ socklen_t namelen; - int i; - - /* Check for URL syntax */ diff --git a/audio/mpg321/files/patch-options.c b/audio/mpg321/files/patch-options.c deleted file mode 100644 index 5b76533a742a..000000000000 --- a/audio/mpg321/files/patch-options.c +++ /dev/null @@ -1,17 +0,0 @@ - -$FreeBSD$ - ---- options.c.orig Mon Sep 24 16:12:31 2001 -+++ options.c Mon Sep 24 16:12:47 2001 -@@ -28,9 +28,9 @@ - #include "mpg321.h" - #include "getopt.h" - --#include <sys/types.h> --#include <unistd.h> -+#include <sys/time.h> - #include <sys/resource.h> -+#include <unistd.h> - #include <string.h> - - void parse_options(int argc, char *argv[], playlist *pl) diff --git a/audio/mpg321/files/patch-playlist.c b/audio/mpg321/files/patch-playlist.c deleted file mode 100644 index af768ace6cc3..000000000000 --- a/audio/mpg321/files/patch-playlist.c +++ /dev/null @@ -1,13 +0,0 @@ - -$FreeBSD$ - ---- playlist.c.orig Mon Sep 24 21:09:15 2001 -+++ playlist.c Mon Sep 24 21:09:34 2001 -@@ -48,6 +48,7 @@ - pl->files_size = DEFAULT_PLAYLIST_SIZE; - pl->numfiles = 0; - pl->random_play = 0; -+ strcpy(pl->remote_file, ""); - - return pl; - } diff --git a/audio/mpg321/files/patch-remote.c b/audio/mpg321/files/patch-remote.c deleted file mode 100644 index b9216399109b..000000000000 --- a/audio/mpg321/files/patch-remote.c +++ /dev/null @@ -1,13 +0,0 @@ - -$FreeBSD$ - ---- remote.c.orig Mon Sep 24 16:06:46 2001 -+++ remote.c Mon Sep 24 16:06:48 2001 -@@ -27,6 +27,7 @@ - - #include "mpg321.h" - -+#include <sys/time.h> - #include <string.h> - #include <unistd.h> - diff --git a/audio/mpg321/pkg-descr b/audio/mpg321/pkg-descr index 298d608019ec..24893f70a4a5 100644 --- a/audio/mpg321/pkg-descr +++ b/audio/mpg321/pkg-descr @@ -1,9 +1,16 @@ -mpg321 is a completely free clone of mpg123. +mpg321 is a clone of the popular mpg123 command-line mp3 player. It should +function as a drop-in replacement for mpg123 in many cases. While some of +the functionality of mpg123 is not yet implemented, mpg321 should function +properly in most cases for most people, such as for frontends such as +gqmpeg. -mpg321 has been tested to work with gqmpeg. It should work with -other frontends, but isn't guaranteed. mpg321 is built on top of -libmad, which was written by Robert Leslie, and is a fully ISO-compliant -MPEG decoder, meaning it's very accurate. It also operates entirely -within fixed-point arithmetic. +mpg321 is based on the mad MPEG audio decoding library. It therefore is +highly accurate, and also uses only fixed-point calculation, making it +more efficient on machines without a floating-point unit. -ID3 tags are not supported at all, yet. +While mpg321 is not as fast as the non-free mpg123 on systems which have a +floating point unit, it comes under the GNU General Public License, which +allows greater freedom to its users. For most people who want mpg123, +mpg321 is a better alternative. + +WWW: http://sourceforge.net/projects/mpg321/ |