Import mpg123 audio player (base port from FreeBSD + modifications)

This commit is contained in:
provos 1998-04-28 11:29:58 +00:00
parent ff6569157f
commit 3596dd2827
6 changed files with 82 additions and 0 deletions

23
audio/mpg123/Makefile Normal file
View File

@ -0,0 +1,23 @@
# New ports collection makefile for: mpg123
# Version required: 0.59o
# Date created: 28 April 1998
# Whom: Niels Provos
#
# $Id: Makefile,v 1.1.1.1 1998/04/28 11:29:58 provos Exp $
#
DISTNAME= mpg123-0.59o
CATEGORIES= audio
MASTER_SITES= ftp://ftp.tu-clausthal.de/pub/unix/audio/mpg123/ \
http://homepages.uni-tuebingen.de/student/michael.hipp/mpg123/
MAINTAINER= provos@openbsd.org
.if (${MACHINE_ARCH} != "i386")
ALL_TARGET= openbsd
.else
ALL_TARGET= openbsd-i386
.endif
MAN1= mpg123.1
.include <bsd.port.mk>

1
audio/mpg123/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (mpg123-0.59o.tar.gz) = 5e2788f33e1cb5347a13ae39de6bd8e0

View File

@ -0,0 +1,51 @@
diff -u ../mpg123-0.59o/Makefile ./Makefile
--- ../mpg123-0.59o/Makefile Tue Apr 28 12:06:58 1998
+++ ./Makefile Tue Apr 28 12:07:47 1998
@@ -32,6 +32,7 @@
@echo "make aix IBM AIX (tested: 4.2)"
@echo "make os2 IBM OS/2"
@echo "make netbsd NetBSD"
+ @echo "make openbsd OpenBSD"
@echo "make bsdos BSDI BSD/OS"
@echo "make generic try this one if your system isn't listed above"
@echo ""
@@ -208,7 +209,7 @@
LIBS='-los2me -lsocket' \
mpg123.exe
-netbsd:
+openbsd netbsd:
$(MAKE) CC=cc LDFLAGS= \
OBJECTS='decode.o dct64.o audio_sun.o' \
CFLAGS='-Wall -ansi -pedantic -O3 -fomit-frame-pointer \
@@ -216,7 +217,7 @@
-DREAL_IS_FLOAT -DUSE_MMAP -DNETBSD' \
mpg123-make
-netbsd-i386:
+openbsd-i386 netbsd-i386:
$(MAKE) CC=cc LDFLAGS= \
OBJECTS='decode_i386.o dct64_i386.o getbits_.o audio_sun.o' \
CFLAGS='-Wall -ansi -pedantic -O4 -m486 -fomit-frame-pointer \
diff -u ../mpg123-0.59o/audio.h ./audio.h
--- ../mpg123-0.59o/audio.h Tue Apr 28 12:06:59 1998
+++ ./audio.h Tue Mar 31 10:51:11 1998
@@ -19,7 +19,7 @@
/* 3% rate tolerance */
#define AUDIO_RATE_TOLERANCE 3
-#if defined(HPUX) || defined(SUNOS) || defined(SOLARIS) || defined(OSS) || defined(__NetBSD__)
+#if defined(HPUX) || defined(SUNOS) || defined(SOLARIS) || defined(OSS) || defined(__NetBSD__) || defined(__OpenBSD__)
#define AUDIO_USES_FD
#endif
@@ -68,6 +68,6 @@
extern int audio_write_sample(struct audio_info_struct *,short *,int);
extern int audio_close(struct audio_info_struct *);
extern void audio_info_struct_init(struct audio_info_struct *);
-#if defined(SOLARIS) || defined(__NetBSD__)
+#if defined(SOLARIS) || defined(__NetBSD__) || defined(__OpenBSD__)
extern void audio_queueflush(struct audio_info_struct *ai);
#endif
Common subdirectories: ../mpg123-0.59o/jukebox and ./jukebox
Common subdirectories: ../mpg123-0.59o/plugin and ./plugin

1
audio/mpg123/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
Command-line player for mpeg layer 1, 2 and 3 audio

4
audio/mpg123/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
mpg123 reads one or more files (or standard input if ``-'' is
specified) or URLs and plays them on the audio device (default) or
outputs them to stdout. file/URL is assumed to be an MPEG-1/2 audio
bit stream.

2
audio/mpg123/pkg/PLIST Normal file
View File

@ -0,0 +1,2 @@
bin/mpg123
man/man1/mpg123.1