Initial import of xmms, based on vedge port plus a few changes.

- deactivate tests.
- no maintainer listed for now until I find out who Mr. `Vedge' actually
is...
This commit is contained in:
espie 2001-07-20 14:26:16 +00:00
parent 1ebaa8580f
commit e6abc4c25b
23 changed files with 836 additions and 0 deletions

82
audio/xmms/Makefile Normal file
View File

@ -0,0 +1,82 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/07/20 14:26:16 espie Exp $
COMMENT= "XMMS multimedia player"
VER= 1.2.5
DISTNAME= xmms-${VER}
DISTDRIVER= xmms_sun-${VER}
CATEGORIES= audio
NEED_VERSION= 1.402
HOMEPAGE= http://www.xmms.org
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITE_SUBDIR= 1.2.x
MASTER_SITES= http://www.xmms.org/files/%SUBDIR%/ \
ftp://ftp.xmms.org/xmms/%SUBDIR%/ \
ftp://ftp.sunet.se/pub/multimedia/xmms/%SUBDIR%/ \
ftp://ftp.stealth.net/xmms/%SUBDIR%/
MASTER_SITES0= http://vedge.com.ar/hack/
FLAVORS= esd vorbis
FLAVOR?=
LIB_DEPENDS= gtk.1.2::x11/gtk+ \
iconv.2::converters/libiconv \
intl.1::devel/gettext \
xml.9::textproc/libxml1
RUN_DEPENDS= unzip::archivers/unzip
USE_X11= Yes
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --without-gnome
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
XML_CONFIG="${LOCALBASE}/bin/xml-config"
DISTFILES= ${DISTNAME}.tar.gz \
${DISTDRIVER}.tar.gz:0
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS \
README TODO
.if ${FLAVOR:L:Mesd}
LIB_DEPENDS+= esd.2::audio/esound
.else
CONFIGURE_ENV+= ESD_CONFIG=/no
.endif
# Trip up configure
CONFIGURE_ENV+= LIBMIKMOD_CONFIG=/no
.if ${FLAVOR:L:Mvorbis}
LIB_DEPENDS+= vorbis.0::audio/libvorbis
CONFIGURE_ARGS+= --with-ogg-prefix=${LOCALBASE} \
--with-vorbis-prefix=${LOCALBASE}
.else
CONFIGURE_ENV+= OGG_LIBS=its-not-my-godamn-planet-understand-monkey-boy
.endif
SUBST_VARS=MAINTAINER
post-extract:
@mv -f ${WRKDIR}/${DISTDRIVER}/Output/sun ${WRKSRC}/Output/sun; \
pre-build:
@ln -sf ${LOCALBASE}/include/libintl.h ${WRKSRC}/intl
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/xmms
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/xmms
.include <bsd.port.mk>

6
audio/xmms/files/md5 Normal file
View File

@ -0,0 +1,6 @@
MD5 (xmms-1.2.5.tar.gz) = 99bc40bffa66789ecc9d91ce7ae4ed09
RMD160 (xmms-1.2.5.tar.gz) = 8669882f390a2474d868b9c8fb970125e0553033
SHA1 (xmms-1.2.5.tar.gz) = 64d64a6db0b08ba91a135229437c384da7dba1e5
MD5 (xmms_sun-1.2.5.tar.gz) = 93d956ab37a2e0fc1eea1d6e59661ce7
RMD160 (xmms_sun-1.2.5.tar.gz) = 480635a79469b51fc8733a4e53aa39896440839e
SHA1 (xmms_sun-1.2.5.tar.gz) = a095791fa7029b93a7e60cb7d047a4582768d36f

View File

@ -0,0 +1,11 @@
--- Input/cdaudio/Makefile.am.orig Thu Jul 12 15:34:26 2001
+++ Input/cdaudio/Makefile.am Thu Jul 12 15:35:27 2001
@@ -29,7 +29,7 @@
libdir = $(plugindir)/$(INPUT_PLUGIN_DIR)
-INCLUDES = @GTK_CFLAGS@ @XML_CFLAGS@ -I$(top_buiddir)/intl
+INCLUDES = @GTK_CFLAGS@ @XML_CFLAGS@ -I$(top_builddir)/intl
libcdaudio_la_LDFLAGS = $(cdaudioldflags)
libcdaudio_la_LIBADD = @GTK_LIBS@ @XML_LIBS@
libcdaudio_la_SOURCES = $(cdaudiosources)

View File

@ -0,0 +1,11 @@
--- Input/cdaudio/Makefile.in.orig Thu Jul 12 15:34:33 2001
+++ Input/cdaudio/Makefile.in Thu Jul 12 15:35:18 2001
@@ -166,7 +166,7 @@
libdir = $(plugindir)/$(INPUT_PLUGIN_DIR)
-INCLUDES = @GTK_CFLAGS@ @XML_CFLAGS@ -I$(top_buiddir)/intl
+INCLUDES = @GTK_CFLAGS@ @XML_CFLAGS@ -I$(top_builddir)/intl
libcdaudio_la_LDFLAGS = $(cdaudioldflags)
libcdaudio_la_LIBADD = @GTK_LIBS@ @XML_LIBS@
libcdaudio_la_SOURCES = $(cdaudiosources)

View File

@ -0,0 +1,6 @@
--- Output/Makefile.am.orig Thu Jul 5 21:03:08 2001
+++ Output/Makefile.am Thu Jul 5 21:03:16 2001
@@ -1,2 +1,2 @@
-ALL_PLUGINS = OSS esd disk_writer solaris
+ALL_PLUGINS = OSS esd disk_writer solaris sun
SUBDIRS = @OUTPUT_PLUGINS@

View File

@ -0,0 +1,55 @@
--- Output/Makefile.in.orig Thu Jul 5 21:03:11 2001
+++ Output/Makefile.in Thu Jul 5 21:20:34 2001
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 1.4 from Makefile.am
+# Makefile.in generated automatically by automake 1.4-p1 from Makefile.am
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
@@ -157,7 +157,7 @@
sidplay_library = @sidplay_library@
xmmsdir = @xmmsdir@
-ALL_PLUGINS = OSS esd disk_writer solaris
+ALL_PLUGINS = OSS esd disk_writer solaris sun
SUBDIRS = @OUTPUT_PLUGINS@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h ../xmms/i18n.h
@@ -167,14 +167,14 @@
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-TAR = gtar
+TAR = tar
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
- cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Output/Makefile
+ cd $(top_srcdir) && $(AUTOMAKE) --gnu Output/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
@@ -216,6 +216,7 @@
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
rev="$$subdir $$rev"; \
test "$$subdir" = "." && dot_seen=yes; \
+ true; \
done; \
test "$$dot_seen" = "no" && rev=". $$rev"; \
target=`echo $@ | sed s/-recursive//`; \
@@ -273,6 +274,11 @@
subdir = Output
distdir: $(DISTFILES)
+ here=`cd $(top_builddir) && pwd`; \
+ top_distdir=`cd $(top_distdir) && pwd`; \
+ distdir=`cd $(distdir) && pwd`; \
+ cd $(top_srcdir) \
+ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Output/Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \

View File

@ -0,0 +1,48 @@
--- README.orig Thu Jul 5 21:19:17 2001
+++ README Thu Jul 5 21:18:19 2001
@@ -31,6 +31,7 @@
3.6.2.1 OSS Driver
3.6.2.2 Disk Writer
3.6.2.3 eSound Output
+ 3.6.2.4 Sun Output
3.6.3 Effect plugins
3.6.3.1 Echo
3.6.3.2 Extra Stereo
@@ -763,6 +764,37 @@
the audio data is sent uncompressed to the remote ESD.
The 'Buffering' tab works just like the 'OSS Driver' one.
+
+
+
+3.6.2.4 Sun Output
+----------------------
+The 'Sun' output plugin will use the native audio(4) interface provided
+notably in OpenBSD and NetBSD, for playback and mixing.
+
+The $AUDIODEVICE and $MIXERDEVICE environment variables will override the
+current configuration settings. Defaults are /dev/audio and /dev/mixer.
+
+In the 'Devices' tab you can change the audio, audioctl and mixer devices
+XMMS is going to use. The audioctl device is used for ioctl(2) calls
+independent of audio data I/O.
+
+In the 'Buffering' tab you can change how much data the Sun plugin will
+buffer. The 'Buffer size' ranges from 200 - 10000ms. If you want the plugin
+to wait for the buffer to be filled before it starts playing the music,
+change the 'Pre-buffer' value, this ranges from 0% - 90% of the 'Buffer size'
+value. Increasing the buffer size might help on slow systems.
+
+In the 'Mixer' tab you can select the volume device to be affected when you
+alter the volume from XMMS. `XMMS uses mixer exclusively' causes XMMS to
+keep the mixer device open instead of re-opening it for every operation.
+Concurrent mixer operations does not seem to be a problem anyway.
+
+There may also be some more options depending on what your audio mixer
+supports (eg. loudness, spatial, surround, preamp).
+
+In the 'Status' tab you can see audio device information and real-time
+playback/buffering status.
3.6.3 Effect plugins

View File

@ -0,0 +1,109 @@
--- configure.in.orig Mon Jun 18 15:58:21 2001
+++ configure.in Wed Jul 11 11:02:52 2001
@@ -43,10 +43,9 @@
AC_PROG_LN_S
AC_PROG_MAKE_SET
-AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed - please install first ***]))
AM_PATH_GLIB(1.2.2,,AC_MSG_ERROR([*** GLIB >= 1.2.2 not installed - please install first ***]))
-AM_PATH_GTK(1.2.2,,AC_MSG_ERROR([*** GTK+ >= 1.2.2 not installed - please install first ***]),gthread)
+AM_PATH_GTK(1.2.2,,AC_MSG_ERROR([*** GTK+ >= 1.2.2 not installed - please install first ***]))
AC_PATH_PROG(XMMS_PATH,xmms,no)
LIBS_save=$LIBS
@@ -73,7 +72,6 @@
LIBS=$LIBS_save
AC_SUBST(VM_LIBS)
-PTHREAD_LIBS=error
AC_MSG_CHECKING(for old style FreeBSD -pthread flag)
AC_EGREP_CPP(yes,
[#if defined(__FreeBSD_cc_version) && __FreeBSD_cc_version <= 500001
@@ -100,7 +98,6 @@
if test "x$PTHREAD_LIBS" = xerror; then
AC_MSG_ERROR(*** Unable to locate working posix thread library ***)
fi
-AC_SUBST(PTHREAD_LIBS)
LIBS_save=$LIBS
LIBS="$LIBS $GTK_LIBS"
@@ -112,7 +109,7 @@
fi
CPPFLAGS_save=$CPPFLAGS
-CPPFLAGS="$GTK_CFLAGS $CPPFLAGS"
+CPPFLAGS="$GTK_CFLAGS $CPPFLAGS -I$X11BASE/include"
have_opengl_headers=yes
AC_CHECK_HEADERS(GL/gl.h GL/glx.h,,have_opengl_headers=no)
@@ -335,13 +332,9 @@
arch_type=other
have_solaris=no
+have_sun=no
ARCH_DEFINES=""
case "$host" in
- i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
- CFLAGS="$CFLAGS -m486"
- ARCH_DEFINES="-DI386_ASSEM"
- arch_type=ix86
- ;;
ppc-*-*)
arch_type=ppc
;;
@@ -351,12 +344,29 @@
*-sun-*)
have_solaris=yes
;;
+ *-*-openbsd*)
+ have_sun=yes
+ ARCH_DEFINES="-DWITH_SYMBOL_UNDERSCORE"
+ PTHREAD_LIBS="-pthread"
+ ;;
+ *-*-netbsd*)
+ have_sun=yes
+ ARCH_DEFINES="-DWITH_SYMBOL_UNDERSCORE"
+ PTHREAD_LIBS="-pthread"
+ ;;
+ i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
+ CFLAGS="$CFLAGS -m486"
+ ARCH_DEFINES="-DI386_ASSEM"
+ arch_type=ix86
+ ;;
esac
AC_SUBST(ARCH_DEFINES)
+AC_SUBST(PTHREAD_LIBS)
AM_CONDITIONAL(ARCH_X86, test "x$arch_type" = "xix86")
AM_CONDITIONAL(ARCH_PPC, test "x$arch_type" = "xppc")
AM_CONDITIONAL(HAVE_SOLARIS, test "x$have_solaris" = xyes)
+AM_CONDITIONAL(HAVE_SUN, test "x$have_sun" = xyes)
plugindir=$libdir/xmms
AC_SUBST(plugindir)
@@ -384,7 +394,7 @@
AC_SUBST(VISUALIZATION_PLUGIN_DIR)
AC_SUBST(pluginsubs)
-XMMS_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/xmms\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\""
+XMMS_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/xmms\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\" -I$LOCALBASE/include"
if test "x$enable_user_plugin_dir" = "xno"; then
AC_DEFINE(DISABLE_USER_PLUGIN_DIR,, [Define to disable per user plugin directory])
@@ -411,6 +421,7 @@
Output/esd/Makefile
Output/disk_writer/Makefile
Output/solaris/Makefile
+Output/sun/Makefile
Input/Makefile
Input/wav/Makefile
Input/mpg123/Makefile
@@ -454,6 +465,7 @@
echo " Build mikmod plugin: $have_mikmod"
echo " Build Ogg Vorbis plugin: $have_oggvorbis"
echo " Build Solaris plugin: $have_solaris"
+echo " Build Sun plugin: $have_sun"
echo " Build gnomexmms: $have_gnome"
echo " Build OpenGL plugins: $have_opengl"
echo " Pthread flag: $PTHREAD_LIBS"

View File

@ -0,0 +1,50 @@
--- intl/Makefile.in.orig Mon Jun 18 21:53:37 2001
+++ intl/Makefile.in Mon Jul 9 22:33:21 2001
@@ -64,11 +64,11 @@ SOURCES = $(COMSRCS) intl-compat.c cat-c
COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
explodename.c
-OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \
-finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \
-explodename.$lo
-CATOBJS = cat-compat.$lo ../po/cat-id-tbl.$lo
-GETTOBJS = intl-compat.$lo
+OBJECTS = @INTLOBJS@ bindtextdom.o dcgettext.o dgettext.o gettext.o \
+finddomain.o loadmsgcat.o localealias.o textdomain.o l10nflist.o \
+explodename.o
+CATOBJS = cat-compat.o ../po/cat-id-tbl.o
+GETTOBJS = intl-compat.o
DISTFILES.common = ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in \
xopen-msg.sed $(HEADERS) $(SOURCES)
DISTFILES.normal = VERSION
@@ -85,7 +85,7 @@ INCLUDES = -I.. -I. -I$(top_srcdir)/intl
all: all-@USE_INCLUDED_LIBINTL@
-all-yes: libintl.$la intlh.inst
+all-yes: libintl.a
all-no:
libintl.a: $(OBJECTS)
@@ -97,8 +97,8 @@ libintl.la: $(OBJECTS)
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) \
-version-info 1:0 -rpath $(libdir)
-../po/cat-id-tbl.$lo: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot
- cd ../po && $(MAKE) cat-id-tbl.$lo
+../po/cat-id-tbl.o: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot
+ cd ../po && $(MAKE) cat-id-tbl.o
check: all
@@ -153,8 +153,8 @@ uninstall:
info dvi:
$(OBJECTS): ../config.h libgettext.h
-bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h
-dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h
+bindtextdom.o finddomain.o loadmsgcat.o: gettextP.h gettext.h loadinfo.h
+dcgettext.o: gettextP.h gettext.h hash-string.h loadinfo.h
tags: TAGS

View File

@ -0,0 +1,11 @@
--- libxmms/configure.orig Thu Jul 5 21:04:29 2001
+++ libxmms/configure Thu Jul 5 21:06:48 2001
@@ -2129,7 +2129,7 @@
fi
- for module in . gthread
+ for module in .
do
case "$module" in
gthread)

View File

@ -0,0 +1,11 @@
--- libxmms/configure.in.orig Thu Jul 5 21:04:26 2001
+++ libxmms/configure.in Thu Jul 5 21:04:51 2001
@@ -30,7 +30,7 @@
XMMS_FUNC_POSIX(sched_setscheduler nanosleep)
AM_PATH_GLIB(1.2.2,,AC_MSG_ERROR([*** GLIB >= 1.2.2 not installed - please install first ***]))
-AM_PATH_GTK(1.2.2,,AC_MSG_ERROR([*** GTK+ >= 1.2.2 not installed - please install first ***]),gthread)
+AM_PATH_GTK(1.2.2,,AC_MSG_ERROR([*** GTK+ >= 1.2.2 not installed - please install first ***]))
if test -n "$GCC"
then

View File

@ -0,0 +1,54 @@
$Id: patch-ltconfig,v 1.1.1.1 2001/07/20 14:26:16 espie Exp $
vim:syn=diff
--- ltconfig.orig Wed Mar 21 10:22:22 2001
+++ ltconfig Fri Mar 30 08:44:01 2001
@@ -1105,6 +1105,9 @@ cygwin* | mingw*)
with_gnu_ld=no
fi
;;
+openbsd*)
+ with_gnu_ld=no
+ ;;
esac
@@ -1403,10 +1406,21 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
+ case "$host_os" in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
+ export_dynamic_flag_spec='${wl}-E'
+ fi
+ ;;
+ esac
;;
os2*)
@@ -2030,13 +2044,10 @@ netbsd*)
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)

View File

@ -0,0 +1,86 @@
$Id: patch-ltmain_sh,v 1.1.1.1 2001/07/20 14:26:16 espie Exp $
vim:syn=diff
--- ltmain.sh.orig Fri Feb 18 20:59:48 2000
+++ ltmain.sh Tue May 15 00:47:04 2001
@@ -1079,7 +1079,18 @@
# These systems don't actually have c library (as such)
continue
;;
+ *-*-openbsd*)
+ # Do not include libc due to us having libc/libc_r.
+ continue
+ ;;
esac
+ elif test "$arg" = "-lc_r"; then
+ case "$host" in
+ *-*-openbsd*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+ esac
elif test "$arg" = "-lm"; then
case "$host" in
*-*-cygwin* | *-*-beos*)
@@ -1091,6 +1102,10 @@
deplibs="$deplibs $arg"
;;
+ -?thread)
+ deplibs="$deplibs $arg"
+ ;;
+
-module)
module=yes
continue
@@ -1795,6 +1810,9 @@
*-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
# these systems don't actually have a c library (as such)!
;;
+ *-*-openbsd*)
+ # do not include libc due to us having libc/libc_r.
+ ;;
*)
# Add libc to deplibs on all other systems.
deplibs="$deplibs -lc"
@@ -3555,40 +3573,6 @@
# Exit here if they wanted silent mode.
test "$show" = : && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,33 @@
--- xmms/main.c.orig Thu Jul 5 21:58:03 2001
+++ xmms/main.c Thu Jul 5 21:58:31 2001
@@ -3204,14 +3204,6 @@
return FALSE;
}
-void segfault_handler(int sig)
-{
- printf(_("\nSegmentation fault\n\n"
- "You've probably found a bug in XMMS, please visit\n"
- "http://www.xmms.org/bugs and fill out a bug report.\n\n"));
- exit(1);
-}
-
static gboolean pposition_configure(GtkWidget *w, GdkEventConfigure *event, gpointer data)
{
gint x,y;
@@ -3340,15 +3332,6 @@
textdomain(PACKAGE);
#endif
- signal(SIGSEGV, segfault_handler);
- g_thread_init(NULL);
- if (!g_thread_supported())
- {
- printf(_("Sorry, threads isn't supported on your platform.\n\n"
- "If you're on a libc5 based linux system and installed GLIB & GTK+ before you\n"
- "installed LinuxThreads you need to recompile GLIB & GTK+\n"));
- exit(1);
- }
parse_cmd_line(argc, argv, &options);
#if defined(HAVE_SRANDOMDEV)

View File

@ -0,0 +1,10 @@
--- xmms/plugin.h.orig Thu Jul 5 21:09:52 2001
+++ xmms/plugin.h Thu Jul 5 21:10:20 2001
@@ -58,6 +58,7 @@
int (*output_time) (void); /* Return the current playing time */
int (*written_time) (void); /* Return the length of all the data that has been written to
the buffer */
+ void (*cleanup) (void); /* Called when the plugin is unloaded */
}
OutputPlugin;

View File

@ -0,0 +1,116 @@
--- xmms/pluginenum.c.orig Thu Jul 5 21:10:37 2001
+++ xmms/pluginenum.c Thu Jul 5 21:14:57 2001
@@ -33,6 +33,19 @@
# define RTLD_NOW 0
#endif
+#ifdef WITH_SYMBOL_UNDERSCORE
+# define IPLUGIN_SYM "_get_iplugin_info"
+# define OPLUGIN_SYM "_get_oplugin_info"
+# define EPLUGIN_SYM "_get_eplugin_info"
+# define GPLUGIN_SYM "_get_gplugin_info"
+# define VPLUGIN_SYM "_get_vplugin_info"
+#else
+# define IPLUGIN_SYM "get_iplugin_info"
+# define OPLUGIN_SYM "get_oplugin_info"
+# define EPLUGIN_SYM "get_eplugin_info"
+# define GPLUGIN_SYM "get_gplugin_info"
+# define VPLUGIN_SYM "get_vplugin_info"
+#endif
gchar *plugin_dir_list[] =
{
@@ -264,9 +277,9 @@
#endif /* HPUX */
{
#ifdef HPUX
- if ((shl_findsym(&h, "get_iplugin_info", TYPE_PROCEDURE, (void*) &gpi)) == 0)
+ if ((shl_findsym(&h, IPLUGIN_SYM, TYPE_PROCEDURE, (void*) &gpi)) == 0)
#else
- if ((gpi = dlsym(h, "get_iplugin_info")) != NULL)
+ if ((gpi = dlsym(h, IPLUGIN_SYM)) != NULL)
#endif
{
InputPlugin *p;
@@ -282,9 +295,9 @@
ip_data->input_list = g_list_prepend(ip_data->input_list, p);
}
#ifdef HPUX
- else if ((shl_findsym(&h, "get_oplugin_info", TYPE_PROCEDURE, (void*) &gpi)) == 0)
+ else if ((shl_findsym(&h, OPLUGIN_SYM, TYPE_PROCEDURE, (void*) &gpi)) == 0)
#else
- else if ((gpi = dlsym(h, "get_oplugin_info")) != NULL)
+ else if ((gpi = dlsym(h, OPLUGIN_SYM)) != NULL)
#endif
{
OutputPlugin *p;
@@ -295,9 +308,9 @@
op_data->output_list = g_list_prepend(op_data->output_list, p);
}
#ifdef HPUX
- else if ((shl_findsym(&h, "get_eplugin_info", TYPE_PROCEDURE, (void *) &gpi)) == 0)
+ else if ((shl_findsym(&h, EPLUGIN_SYM, TYPE_PROCEDURE, (void *) &gpi)) == 0)
#else
- else if ((gpi = dlsym(h, "get_eplugin_info")) != NULL)
+ else if ((gpi = dlsym(h, EPLUGIN_SYM)) != NULL)
#endif
{
EffectPlugin *p;
@@ -308,9 +321,9 @@
ep_data->effect_list = g_list_prepend(ep_data->effect_list, p);
}
#ifdef HPUX
- else if ((shl_findsym(&h, "get_gplugin_info", TYPE_PROCEDURE, (void*) &gpi)) == 0)
+ else if ((shl_findsym(&h, GPLUGIN_SYM, TYPE_PROCEDURE, (void*) &gpi)) == 0)
#else
- else if ((gpi = dlsym(h, "get_gplugin_info")) != NULL)
+ else if ((gpi = dlsym(h, GPLUGIN_SYM)) != NULL)
#endif
{
GeneralPlugin *p;
@@ -322,9 +335,9 @@
gp_data->general_list = g_list_prepend(gp_data->general_list, p);
}
#ifdef HPUX
- else if ((shl_findsym(&h, "get_vplugin_info", TYPE_PROCEDURE, (void *) &gpi)) == 0)
+ else if ((shl_findsym(&h, VPLUGIN_SYM, TYPE_PROCEDURE, (void *) &gpi)) == 0)
#else
- else if ((gpi = dlsym(h, "get_vplugin_info")) != NULL)
+ else if ((gpi = dlsym(h, VPLUGIN_SYM)) != NULL)
#endif
{
VisPlugin *p;
@@ -355,7 +368,7 @@
void scan_plugins(char *dirname)
{
- gchar *filename, *ext;
+ gchar *filename;
DIR *dir;
struct dirent *ent;
struct stat statbuf;
@@ -368,9 +381,8 @@
{
filename = g_strdup_printf("%s/%s", dirname, ent->d_name);
if (!stat(filename, &statbuf) && S_ISREG(statbuf.st_mode) &&
- (ext = strrchr(ent->d_name, '.')) != NULL)
- if (!strcmp(ext, SHARED_LIB_EXT))
- add_plugin(filename);
+ strstr(ent->d_name, SHARED_LIB_EXT))
+ add_plugin(filename);
g_free(filename);
}
closedir(dir);
@@ -422,6 +434,12 @@
while (node)
{
op = (OutputPlugin *) node->data;
+ if(op && op->cleanup) {
+ op->cleanup();
+ GDK_THREADS_LEAVE();
+ while(g_main_iteration(FALSE));
+ GDK_THREADS_ENTER();
+ }
#ifdef HPUX
h = op->handle;
shl_unload(*h);

13
audio/xmms/pkg/DESCR Normal file
View File

@ -0,0 +1,13 @@
XMMS - Multimedia player for the X Window System.
X Multimedia System is a sound player written from scratch. Since it
uses the WinAmp GUI, it can use WinAmp skins. It can play mp3s, mods,
s3ms and other formats. It has now support for input, output, general,
and visualization plugins.
Packages can be built with additional FLAVORs:
esd: Built with Esound Output plugin.
vorbis: Built with Ogg Vorbis plugin.
WWW: ${HOMEPAGE}

8
audio/xmms/pkg/MESSAGE Normal file
View File

@ -0,0 +1,8 @@
To use native audio, pick the Sun output plugin in the XMMS preferences
window (ctrl-p).
To go easier on resources, don't use the `scope' visualization mode, and
increasing the buffer size in audio preferences significantly might help.
If all else fails, use renice(8) on XMMS. Enabling the `XMMS uses mixer
exclusively' option may be of some help on extremely slow systems.

3
audio/xmms/pkg/PFRAG.esd Normal file
View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.esd,v 1.1.1.1 2001/07/20 14:26:16 espie Exp $
lib/xmms/Output/libesdout.la
lib/xmms/Output/libesdout.so.0.0

View File

@ -0,0 +1,35 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/07/20 14:26:16 espie Exp $
%%esd%%
%%vorbis%%
lib/libxmms.la
lib/libxmms.so.2.0
lib/xmms/Output/libsun.la
lib/xmms/Output/libsun.so.0.0
lib/xmms/Output/libdisk_writer.la
lib/xmms/Output/libdisk_writer.so.0.0
lib/xmms/Input/libwav.la
lib/xmms/Input/libwav.so.0.0
lib/xmms/Input/libtonegen.la
lib/xmms/Input/libtonegen.so.0.0
lib/xmms/Input/libmpg123.la
lib/xmms/Input/libmpg123.so.0.0
lib/xmms/Input/libcdaudio.la
lib/xmms/Input/libcdaudio.so.0.0
lib/xmms/Input/libidcin.la
lib/xmms/Input/libidcin.so.0.0
lib/xmms/Effect/libvoice.la
lib/xmms/Effect/libvoice.so.0.0
lib/xmms/Effect/libecho.la
lib/xmms/Effect/libecho.so.0.0
lib/xmms/Effect/libstereo.la
lib/xmms/Effect/libstereo.so.0.0
lib/xmms/General/libir.la
lib/xmms/General/libir.so.0.0
lib/xmms/General/libsong_change.la
lib/xmms/General/libsong_change.so.0.0
lib/xmms/Visualization/libbscope.la
lib/xmms/Visualization/libbscope.so.0.0
lib/xmms/Visualization/libsanalyzer.la
lib/xmms/Visualization/libsanalyzer.so.0.0
lib/xmms/Visualization/libogl_spectrum.la
lib/xmms/Visualization/libogl_spectrum.so.0.0

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.vorbis,v 1.1.1.1 2001/07/20 14:26:16 espie Exp $
lib/xmms/Input/libvorbis.la
lib/xmms/Input/libvorbis.so.0.0

69
audio/xmms/pkg/PLIST Normal file
View File

@ -0,0 +1,69 @@
@comment $Id: PLIST,v 1.1.1.1 2001/07/20 14:26:16 espie Exp $
bin/xmms-config
bin/xmms
bin/wmxmms
%%SHARED%%
man/man1/xmms.1
include/xmms/configfile.h
include/xmms/dirbrowser.h
include/xmms/formatter.h
include/xmms/fullscreen.h
include/xmms/plugin.h
include/xmms/titlestring.h
include/xmms/util.h
include/xmms/xmmsctrl.h
share/doc/xmms/AUTHORS
share/doc/xmms/COPYING
share/doc/xmms/ChangeLog
share/doc/xmms/FAQ
share/doc/xmms/INSTALL
share/doc/xmms/NEWS
share/doc/xmms/README
share/doc/xmms/TODO
share/xmms/wmxmms.xpm
share/aclocal/xmms.m4
share/locale/af/LC_MESSAGES/xmms.mo
share/locale/az/LC_MESSAGES/xmms.mo
share/locale/bg/LC_MESSAGES/xmms.mo
share/locale/ca/LC_MESSAGES/xmms.mo
share/locale/cs/LC_MESSAGES/xmms.mo
share/locale/da/LC_MESSAGES/xmms.mo
share/locale/de/LC_MESSAGES/xmms.mo
share/locale/el/LC_MESSAGES/xmms.mo
share/locale/eo/LC_MESSAGES/xmms.mo
share/locale/es/LC_MESSAGES/xmms.mo
share/locale/fr/LC_MESSAGES/xmms.mo
share/locale/ga/LC_MESSAGES/xmms.mo
share/locale/gl/LC_MESSAGES/xmms.mo
share/locale/hr/LC_MESSAGES/xmms.mo
share/locale/hu/LC_MESSAGES/xmms.mo
share/locale/id/LC_MESSAGES/xmms.mo
share/locale/it/LC_MESSAGES/xmms.mo
share/locale/ja/LC_MESSAGES/xmms.mo
share/locale/ko/LC_MESSAGES/xmms.mo
share/locale/lt/LC_MESSAGES/xmms.mo
share/locale/lv/LC_MESSAGES/xmms.mo
share/locale/nl/LC_MESSAGES/xmms.mo
share/locale/no/LC_MESSAGES/xmms.mo
share/locale/pl/LC_MESSAGES/xmms.mo
share/locale/pt/LC_MESSAGES/xmms.mo
share/locale/pt_BR/LC_MESSAGES/xmms.mo
share/locale/ro/LC_MESSAGES/xmms.mo
share/locale/ru/LC_MESSAGES/xmms.mo
share/locale/sk/LC_MESSAGES/xmms.mo
share/locale/sr/LC_MESSAGES/xmms.mo
share/locale/sv/LC_MESSAGES/xmms.mo
share/locale/tr/LC_MESSAGES/xmms.mo
share/locale/uk/LC_MESSAGES/xmms.mo
share/locale/wa/LC_MESSAGES/xmms.mo
share/locale/zh_CN.GB2312/LC_MESSAGES/xmms.mo
share/locale/zh_TW/LC_MESSAGES/xmms.mo
@dirrm lib/xmms/Output
@dirrm lib/xmms/Input
@dirrm lib/xmms/Effect
@dirrm lib/xmms/General
@dirrm lib/xmms/Visualization
@dirrm lib/xmms
@dirrm include/xmms
@dirrm share/xmms
@dirrm share/doc/xmms

6
audio/xmms/pkg/SECURITY Normal file
View File

@ -0,0 +1,6 @@
$OpenBSD: SECURITY,v 1.1.1.1 2001/07/20 14:26:16 espie Exp $
XMMS can be optionally installed setuid root in order to use its `Real
time priority' feature, which drains resources but improve playback on
extremely slow systems. Although XMMS will drop privileges, renice(8)
is a better idea as a last resort.