1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

New port kmpg, an MPEG audio player for KDE.

PR:		6727
Submitted by:	Hans Petter Bieker <hanspb@persbraten.vgs.no>
This commit is contained in:
Thomas Gellekum 1998-06-12 08:06:02 +00:00
parent 64e630d83b
commit 115f3155a8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11401
11 changed files with 208 additions and 0 deletions

25
audio/kmpg/Makefile Normal file
View File

@ -0,0 +1,25 @@
# New ports collection makefile for: kmpg
# Version required: Beta4
# Date created: 23 May 1998
# Whom: Hans Petter Bieker <hanspb@persbraten.vgs.no>
#
# $Id$
#
DISTNAME= kmpg-0.3.3
CATEGORIES= audio x11 kde
MASTER_SITES= $(MASTER_SITE_KDE)
MASTER_SITE_SUBDIR= /unstable/apps/multimedia/sound
EXTRACT_SUFX= .tgz
MAINTAINER= hanspb@persbraten.vgs.no
BUILD_DEPENDS= moc:${PORTSDIR}/x11/qt
LIB_DEPENDS= qt\\.1\\.3[1-9]:${PORTSDIR}/x11/qt \
kdecore\\.0\\.9[0-9]:${PORTSDIR}/x11/kdelibs \
kdeui\\.0\\.9[1-9]:${PORTSDIR}/x11/kdelibs
USE_GMAKE= yes
MAKE_ENV= KDEDIR=${PREFIX}
.include <bsd.port.mk>

1
audio/kmpg/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (kmpg-0.3.3.tgz) = dbfd6987d506331f410fd5df62a6b3f5

38
audio/kmpg/files/patch-aa Normal file
View File

@ -0,0 +1,38 @@
--- Makefile.orig Wed May 6 23:35:22 1998
+++ Makefile Sat May 23 17:02:25 1998
@@ -1,18 +1,18 @@
####### Kmpg Makefile
-INCDIR = -I$(QTDIR)/include -I$(KDEDIR)/include
+INCDIR = -I$(X11BASE)/include/X11/qt -I$(X11BASE)/include -I$(LOCALBASE)/include
CFLAGS = -O6
-LFLAGS = -L$(QTDIR)/lib -lqt -L/usr/X11R6/lib -L$(KDEDIR)/lib -lXext -lX11 -lkdecore -lkdeui -lm -lg++
+LFLAGS = -L$(X11BASE)/lib -L$(LOCALBASE)/lib -lqt -lXext -lX11 -lkdecore -lkdeui -lm -lg++ -lcompat
CC = g++
-MOC = $(QTDIR)/bin/moc
+MOC = $(X11BASE)/bin/moc
############# Install ##############
-INSTALL = install -m 0755 -s
-INSTALL_SHELL = install -m 0755
-INSTALL_DATA = install -m 0644
-INSTALL_DIR = install -d -m 0755
-INSTALL_DIR_PRIVATE = install -d -m 0700
+INSTALL = install -c -m 0555 -s -o bin -g bin
+INSTALL_SHELL = install -c -m 0555 -o bin -g bin
+INSTALL_DATA = install -c -m 0444 -o bin -g bin
+INSTALL_DIR = install -c -d -m 0755 -o root -g wheel
+INSTALL_DIR_PRIVATE = install -c -d -m 0700 -o root -g wheel
prefix = $(KDEDIR)
BINDIR = $(prefix)/bin
@@ -52,7 +52,7 @@
$(CC) $(OBJECTS) $(OBJMETA) -o $(TARGET) $(LFLAGS)
library:
- cd lib; make linux; cd ..
+ cd lib; make freebsd; cd ..
depend:
@makedepend $(INCDIR) $(SOURCES) 2> /dev/null

22
audio/kmpg/files/patch-ab Normal file
View File

@ -0,0 +1,22 @@
--- lib/mpg123.c.orig Thu May 14 18:26:41 1998
+++ lib/mpg123.c Thu May 14 18:27:28 1998
@@ -1176,7 +1176,7 @@
/* return 1; */
}
- while (frameNum < frame) // seek forward
+ while (frameNum < frame) /* seek forward */
{
if(fr.lay == 3)
set_pointer(512);
@@ -1263,8 +1263,8 @@
MPEGclose();
usebuffer = _prefs->buffersize;
- MPEGplayfile(name); // this calls MPEGinit();
- MPEGseek( pos );// find old frame and keep on playing
+ MPEGplayfile(name); /* this calls MPEGinit(); */
+ MPEGseek( pos );/* find old frame and keep on playing */
}
}

11
audio/kmpg/files/patch-ac Normal file
View File

@ -0,0 +1,11 @@
--- lib/Makefile.orig Thu May 14 18:29:32 1998
+++ lib/Makefile Thu May 14 18:29:48 1998
@@ -208,7 +208,7 @@
mpg123.a: player.o mpg123_2.o common.o $(OBJECTS) decode_2to1.o decode_4to1.o \
tabinit.o audio.o layer1.o layer2.o layer3.o buffer.o \
getlopt.o httpget.o xfermem.o equalizer.o Makefile
- ar -rs mpg123.a player.o mpg123_2.o tabinit.o common.o layer1.o \
+ ar -r mpg123.a player.o mpg123_2.o tabinit.o common.o layer1.o \
layer2.o layer3.o audio.o buffer.o decode_2to1.o equalizer.o \
decode_4to1.o getlopt.o httpget.o xfermem.o $(OBJECTS)

12
audio/kmpg/files/patch-af Normal file
View File

@ -0,0 +1,12 @@
--- khelp.h.orig Thu May 14 19:18:49 1998
+++ khelp.h Thu May 14 19:19:35 1998
@@ -11,7 +11,9 @@
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
+#include <sys/msgbuf.h>
+long mtype;
class KHelpMsg : protected msgbuf
{

15
audio/kmpg/files/patch-ag Normal file
View File

@ -0,0 +1,15 @@
--- kmpg.h.orig Thu May 14 19:20:37 1998
+++ kmpg.h Thu May 14 19:20:55 1998
@@ -24,10 +24,10 @@
#include <signal.h>
#include <sys/utsname.h>
#include <unistd.h>
-#if defined(_FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
#else
#include <mntent.h>
-#include <sys/soundcard.h>
+#include <machine/soundcard.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>

15
audio/kmpg/files/patch-ah Normal file
View File

@ -0,0 +1,15 @@
--- playlist.h.orig Thu May 14 19:22:14 1998
+++ playlist.h Thu May 14 19:22:24 1998
@@ -10,10 +10,10 @@
#include <signal.h>
#include <sys/utsname.h>
#include <unistd.h>
-#if defined(_FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
#else
#include <mntent.h>
-#include <sys/soundcard.h>
+#include <machine/soundcard.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>

1
audio/kmpg/pkg-comment Normal file
View File

@ -0,0 +1 @@
KDE Mpeg1/2 audio stream player, handles layer I, II, and III streams

15
audio/kmpg/pkg-descr Normal file
View File

@ -0,0 +1,15 @@
Kmpg is an MPEG audio player for the KDE project. The player uses mpg123 by
Michael Hipp as a decoding engine (note: do not contact him about bugs/
features in kmpg, rather contact Martin Muller).
Kmpg has the following advanced features:
* Supports MPEG 1.0/2.0, layers 1,2 and 3.
* Simple to use interface.
* Drag and drop support using the KDE dnd standard.
* Support for multiple platforms: Linux, FreeBSD, Solaris 2.x, SunOS 4.x
(tested 4.1.4), HP/UX 7xx, SGI IRIX, DEC Unix (tested 3.2 and 4.0), OSF/1,
DEC Ultrix (tested 4.4) and IBM AIX (tested 4.1).
* Playlist editor.
* Advanced configuration dialog allowing the user to tune the behaviour of
the decoder.
* All configuration changes can be applied while playing a stream.

53
audio/kmpg/pkg-plist Normal file
View File

@ -0,0 +1,53 @@
bin/kmpg
share/doc/HTML/en/kmpg/interface.gif
share/doc/HTML/en/kmpg/kmpg-1.html
share/doc/HTML/en/kmpg/kmpg-2.html
share/doc/HTML/en/kmpg/kmpg-3.html
share/doc/HTML/en/kmpg/kmpg-4.html
share/doc/HTML/en/kmpg/kmpg-5.html
share/doc/HTML/en/kmpg/kmpg-6.html
share/doc/HTML/en/kmpg/kmpg.html
share/doc/HTML/en/kmpg/playlist.gif
share/doc/HTML/en/kmpg/prefs-1.gif
share/doc/HTML/en/kmpg/prefs-2.gif
share/doc/HTML/en/kmpg/prefs-3.gif
share/apps/kmpg/pics/digit_0.xpm
share/apps/kmpg/pics/digit_1.xpm
share/apps/kmpg/pics/digit_2.xpm
share/apps/kmpg/pics/digit_3.xpm
share/apps/kmpg/pics/digit_4.xpm
share/apps/kmpg/pics/digit_5.xpm
share/apps/kmpg/pics/digit_6.xpm
share/apps/kmpg/pics/digit_7.xpm
share/apps/kmpg/pics/digit_8.xpm
share/apps/kmpg/pics/digit_9.xpm
share/apps/kmpg/pics/digit_blank.xpm
share/apps/kmpg/pics/digit_pause.xpm
share/apps/kmpg/pics/digit_play.xpm
share/apps/kmpg/pics/down.xpm
share/apps/kmpg/pics/ff.xpm
share/apps/kmpg/pics/next.xpm
share/apps/kmpg/pics/next_disabled.xpm
share/apps/kmpg/pics/panel.xpm
share/apps/kmpg/pics/pause_off.xpm
share/apps/kmpg/pics/pause_on.xpm
share/apps/kmpg/pics/play_off.xpm
share/apps/kmpg/pics/play_on.xpm
share/apps/kmpg/pics/prev.xpm
share/apps/kmpg/pics/prev_disabled.xpm
share/apps/kmpg/pics/rew.xpm
share/apps/kmpg/pics/stop_off.xpm
share/apps/kmpg/pics/stop_on.xpm
share/apps/kmpg/pics/up.xpm
share/icons/mini/kmpg.xpm
share/icons/kmpg.xpm
share/icons/mpeg_layer1.xpm
share/icons/mpeg_layer2.xpm
share/icons/mpeg_layer3.xpm
share/mimelnk/audio/x-mp3.kdelnk
share/mimelnk/audio/x-mp1.kdelnk
share/mimelnk/audio/x-mp2.kdelnk
share/mimelnk/audio/x-playlist.kdelnk
share/applnk/Multimedia/kmpg.kdelnk
@dirrm share/doc/HTML/en/kmpg
@dirrm share/apps/kmpg/pics