Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37528861
en ru br
Репозитории ALT
S:0.99.80-alt11.3
5.1: 0.99.80-alt11
4.1: 0.99.80-alt6
4.0: 0.99.80-alt0.9
3.0: 0.99.76-alt1.1.1
www.altlinux.org/Changes

Группа :: Звук
Пакет: alsaplayer

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: alsaplayer-svn-r1332-configure.patch
Скачать


diff -urN alsaplayer-svn-r1332.orig/configure.ac alsaplayer-svn-r1332/configure.ac
--- alsaplayer-svn-r1332.orig/configure.ac	2008-03-02 03:15:07 +0200
+++ alsaplayer-svn-r1332/configure.ac	2008-03-02 04:01:14 +0200
@@ -23,6 +23,9 @@
 have_opengl=no
 have_audiofile=no
 have_oggvorbis=no
+have_mad=yes
+have_wav=yes
+have_null=yes
 have_flac=no
 have_libFLAC_113=no
 have_oggflac=no
@@ -35,7 +38,11 @@
 have_nas=no
 have_mikmod=no
 have_jack=no
+have_text=yes
 have_xosd=no
+have_daemon=yes
+have_file=yes
+have_http=yes
 dynload=no
 use_3dnow_asm=no
 have_libmad=no
@@ -128,11 +135,9 @@
 dnl OpenGL
 dnl ======
 
-AC_ARG_ENABLE(opengl,
-[  --enable-opengl         Enable OpenGL plugins (default=yes)],,
-	enable_opengl=yes)
+AC_ARG_ENABLE(opengl,[  --disable-opengl        Disable OpenGL plugins (default=yes)])
 
-if test "x$enable_opengl" = xyes; then
+if test "x$enable_opengl" != "xno"; then
 	LIBS_save=$LIBS
 	OPENGL_LIBS=error
 	AC_CHECK_LIB(GL, glBegin, OPENGL_LIBS="-lGL -lpthread")
@@ -285,10 +290,46 @@
 	fi
 fi])
 
+AC_ARG_ENABLE(mad,
+[  --enable-mad            Enable MAD plugin (default=yes)],
+[if test "$enableval" = "no"
+then
+	if test "$have_mad" = "yes"
+	then
+		have_mad=no
+	fi
+fi])
+
+
+AC_ARG_ENABLE(wav,
+[  --enable-wav            Enable WAV plugin (default=yes)],
+[if test "$enableval" = "no"
+then
+	if test "$have_wav" = "yes"
+	then
+		have_wav=no
+	fi
+fi])
+
+
+AC_ARG_ENABLE(null,
+[  --enable-null           Enable NULL plugin (default=yes)],
+[if test "$enableval" = "no"
+then
+	if test "$have_null" = "yes"
+	then
+		have_null=no
+	fi
+fi])
+
+
 dnl ==============
 dnl id3tab library
 dnl ==============
 
+AC_ARG_ENABLE(opengl,[  --disable-id3tag        Disable libid3tag support (default=yes)])
+
+if test "x$enable_id3tag" != "xno"; then
 oldcflags=$CFLAGS
 CFLAGS="$CFLAGS -lz"
 
@@ -296,6 +337,9 @@
      FLC_LDADD="$FLC_LDADD -lid3tag -lz"; use_libid3tag=yes; AC_DEFINE(HAVE_LIBID3TAG, 1, [Define if you have libid3tag library (-lid3tag)]), use_libid3tag=no)
 
 CFLAGS=$oldcflags
+else
+AC_MSG_RESULT([*** Disabling libid3tag support per user request ***])
+fi
 
 AC_SUBST(FLC_LDADD)
 AC_SUBST(OGGFLC_LDADD)
@@ -322,6 +366,17 @@
 dnl ==========
 AC_CHECK_LIB(xosd, xosd_create,
      XOSD_LDADD=-lxosd; have_xosd=yes; AC_DEFINE(HAVE_LIBXOSD, 1, [Define if you have XOSD library (-lxosd)]), have_xosd=no; XOSD_LDADD=, -lxosd)
+
+AC_ARG_ENABLE(xosd,
+[  --enable-xosd               Enable XOSD interface (default=yes)],
+[if test "$enableval" = "no"
+then
+	if test "$have_xosd" = "yes"
+	then
+		have_xosd=no
+	fi
+fi])
+     
 AM_CONDITIONAL(HAVE_XOSD, test "x$have_xosd" = xyes)
 
 dnl ==========
@@ -386,6 +441,17 @@
 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.4, have_sndfile=yes, have_sndfile=no)
 AC_SUBST(SNDFILE_LIBS)
 AC_SUBST(SNDFILE_CFLAGS)
+
+AC_ARG_ENABLE(sndfile,
+[  --enable-sndfile            Enable sndfile plugin (default=yes)],
+[if test "$enableval" = "no"
+then
+	if test "$have_sndfile" = "yes"
+	then
+		have_sndfile=no
+	fi
+fi])
+
 AM_CONDITIONAL(HAVE_SNDFILE, test "x$have_sndfile" = xyes)
 
 dnl ===============
@@ -416,6 +482,16 @@
 AC_CHECK_HEADERS(FLAC/stream_decoder.h)
 AC_CHECK_HEADERS(OggFLAC/stream_decoder.h)
 
+AC_ARG_ENABLE(cdda,
+[  --enable-cdda           Enable CDDA plugin (default=yes)],
+[if test "$enableval" = "no"
+then
+	if test "x$ac_cv_header_linux_cdrom_h" = "xyes"
+	then
+		ac_cv_header_linux_cdrom_h=no
+	fi
+fi])
+
 dnl ==========
 dnl ALSA stuff
 dnl ==========
@@ -479,27 +555,6 @@
 	have_oss=no
 fi
 
-dnl =========
-dnl SGI stuff
-dnl =========
-
-AC_CHECK_LIB(audio, alOpenPort,
-[have_sgi=yes
-SGI_LIBS=-laudio],
-have_sgi=no)
-
-AC_SUBST(SGI_LIBS)
-
-dnl =========
-dnl NAS stuff
-dnl =========
-
-oldcflags=$CFLAGS
-CFLAGS="$CFLAGS -I$x_includes -L$x_libraries -lXt"
-AC_CHECK_LIB(audio,AuStartFlow, [have_nas=yes NAS_LIB="-L$x_libraries -laudio -lXt"], have_nas=no)
-CFLAGS=$oldcflags
-AC_SUBST(NAS_LIB)
-
 
 dnl ======================
 dnl JACK conditional stuff
@@ -520,7 +575,8 @@
 [  --enable-alsa		  Enable ALSA (default=yes)],
 [if test "$enableval" = "no"
 then
-have_alsa=no
+have_alsa_05x=no
+have_alsa_final=no
 fi])
 
 AC_ARG_ENABLE(esd,
@@ -533,7 +589,6 @@
 
 AC_ARG_ENABLE(sparc,
 [  --enable-sparc          Enable SPARC driver (default=yes)],
-
 [if test "$enableval" = "no"
 then
 have_sparc=no
@@ -562,13 +617,64 @@
 have_gtk2=no
 fi])
 
+AC_ARG_ENABLE(text,
+[  --enable-text           Enable TEXT interface (default=yes)],
+[if test "$enableval" = "no"
+then
+have_text=no
+fi])
+
+AC_ARG_ENABLE(daemon,
+[  --enable-daemon         Enable DAEMON interface (default=yes)],
+[if test "$enableval" = "no"
+then
+have_daemon=no
+fi])
+
 AC_ARG_ENABLE(nas,
-[  --enable-nas            Enable NAS driver (default=yes)],
+[  --enable-nas            Enable NAS driver (default=no)],
+[if test "$enableval" != "no"
+then
+have_nas=yes
+fi])
+
+AC_ARG_ENABLE(file,
+[  --enable-file           Enable file read (default=yes)],
 [if test "$enableval" = "no"
 then
-have_nas=no
+have_file=no
 fi])
 
+AC_ARG_ENABLE(http,
+[  --enable-http           Enable HTTP read (default=yes)],
+[if test "$enableval" = "no"
+then
+have_http=no
+fi])
+
+dnl =========
+dnl NAS stuff
+dnl =========
+
+if test "x$have_nas" != "xno"; then
+oldcflags=$CFLAGS
+CFLAGS="$CFLAGS -I$x_includes -L$x_libraries -lXt"
+AC_CHECK_LIB(audio,AuStartFlow, [have_nas=yes NAS_LIB="-L$x_libraries -laudio -lXt"], have_nas=no)
+CFLAGS=$oldcflags
+fi
+AC_SUBST(NAS_LIB)
+
+
+dnl =========
+dnl SGI stuff
+dnl =========
+
+if test "x$have_sgi" != "xno"; then
+AC_CHECK_LIB(audio, alOpenPort, [have_sgi=yes SGI_LIBS=-laudio], have_sgi=no)
+fi
+AC_SUBST(SGI_LIBS)
+
+
 if test "x$ac_cv_header_mad_h" = "xno"
 then
 	have_libmad=no
@@ -593,6 +699,9 @@
 AM_CONDITIONAL(HAVE_LIBMAD,test "x$have_libmad" = xyes)
 AM_CONDITIONAL(USE_LIBID3TAG, test "x$use_libid3tag" = xyes)
 AM_CONDITIONAL(HAVE_FLC, test "x$have_flac" = xyes)
+AM_CONDITIONAL(HAVE_MAD, test "x$have_mad" = xyes)
+AM_CONDITIONAL(HAVE_WAV, test "x$have_wav" = xyes)
+AM_CONDITIONAL(HAVE_NULL, test "x$have_null" = xyes)
 AM_CONDITIONAL(HAVE_OGGFLC, test "x$have_oggflac" = xyes)
 AM_CONDITIONAL(HAVE_JACK,	test "x$have_jack" = xyes)
 AM_CONDITIONAL(HAVE_ALSA_05X, test "x$have_alsa_05x" = xyes)
@@ -605,7 +714,11 @@
 AM_CONDITIONAL(HAVE_LINUX_CDROM,test "x$ac_cv_header_linux_cdrom_h" = xyes)
 AM_CONDITIONAL(HAVE_GLIB2, test "x$have_glib2" = xyes)
 AM_CONDITIONAL(HAVE_GTK2, test "x$have_gtk2" = xyes)
+AM_CONDITIONAL(HAVE_TEXT, test "x$have_text" = xyes)
+AM_CONDITIONAL(HAVE_DAEMON, test "x$have_daemon" = xyes)
 AM_CONDITIONAL(HAVE_MIKMOD,test "x$have_mikmod" = xyes)
+AM_CONDITIONAL(HAVE_FILE, test "x$have_file" = xyes)
+AM_CONDITIONAL(HAVE_HTTP, test "x$have_http" = xyes)
 AM_CONDITIONAL(HAVE_SYSTRAY,test "x$have_systray" = xyes)
 
 
@@ -794,9 +907,14 @@
   Enable libid3tag support:           ${use_libid3tag}
   Build GTK2 interface:               ${have_gtk2}
   Build XOSD interface:               ${have_xosd}
+  Build TEXT interface:               ${have_text}
+  Build DAEMON interface:             ${have_daemon}
+  Build file read plugin:             ${have_file}
+  Build HTTP read plugin:             ${have_http}
   Build OpenGL based visual plugins:  ${have_opengl}
   Build alsa 0.5.x output plugin:     ${have_alsa_05x}
   Build alsa 0.9.x output plugin:     ${have_alsa_final}
+  Build sndfile output plugin:        ${have_sndfile}
   Build jack output plugin:           ${have_jack}
   Build oss output plugin:            ${have_oss}
   Build esound output plugin:         ${have_esd}
@@ -808,6 +926,9 @@
   Build mikmod input plugin:          ${have_mikmod}
   Build audiofile input plugin:       ${have_audiofile}
   Build FLAC input plugin:            ${have_flac}
+  Build MAD input plugin:             ${have_mad}
+  Build WAV input plugin:             ${have_wav}
+  Build NULL output plugin:           ${have_null}
   Included OggFLAC input plugin:      ${have_libFLAC_113}
   Separated OggFLAC input plugin:     ${have_oggflac}
   Build sndfile input plugin:         ${have_sndfile}
diff -urN alsaplayer-svn-r1332.orig/input/mad/Makefile.am alsaplayer-svn-r1332/input/mad/Makefile.am
--- alsaplayer-svn-r1332.orig/input/mad/Makefile.am	2008-03-02 03:15:02 +0200
+++ alsaplayer-svn-r1332/input/mad/Makefile.am	2008-03-02 04:00:06 +0200
@@ -18,8 +18,13 @@
 endif
 endif
 
+if HAVE_MAD
 EXTRA_DIST = xing.c xing.h mad_engine.c
-
+else
+mad_inltlibs =
+mad_inldflags =
+mad_insources =
+endif
 
 lib_LTLIBRARIES = $(mad_inltlibs)
 
diff -urN alsaplayer-svn-r1332.orig/input/wav/Makefile.am alsaplayer-svn-r1332/input/wav/Makefile.am
--- alsaplayer-svn-r1332.orig/input/wav/Makefile.am	2008-03-02 03:15:04 +0200
+++ alsaplayer-svn-r1332/input/wav/Makefile.am	2008-03-02 04:00:06 +0200
@@ -1,7 +1,17 @@
+if HAVE_WAV
+
 wavltlibs = libwav.la
 wavldflags = -export-dynamic -avoid-version
 wavsources = wav_engine.c formats.h
 
+else
+
+wavltlibs =
+wavldflags =
+wavsources =
+
+endif
+
 lib_LTLIBRARIES = $(wavltlibs)
 
 AM_CFLAGS = @DFLAGS@ -D_REENTRANT -I$(top_builddir) -I$(top_srcdir)/alsaplayer
diff -urN alsaplayer-svn-r1332.orig/interface/daemon/Makefile.am alsaplayer-svn-r1332/interface/daemon/Makefile.am
--- alsaplayer-svn-r1332.orig/interface/daemon/Makefile.am	2008-03-02 03:15:06 +0200
+++ alsaplayer-svn-r1332/interface/daemon/Makefile.am	2008-03-02 04:00:06 +0200
@@ -1,7 +1,17 @@
+if HAVE_DAEMON
+
 daemon_interfaceltlibs = libdaemon_interface.la
 daemon_interfaceldflags = -export-dynamic -avoid-version
 daemon_interfacesources = daemon.cpp
 
+else
+
+daemon_interfaceltlibs =
+daemon_interfaceldflags =
+daemon_interfacesources =
+
+endif
+
 lib_LTLIBRARIES = $(daemon_interfaceltlibs)
 
 COMMON_FLAGS = @ARCH_CFLAGS@
diff -urN alsaplayer-svn-r1332.orig/interface/text/Makefile.am alsaplayer-svn-r1332/interface/text/Makefile.am
--- alsaplayer-svn-r1332.orig/interface/text/Makefile.am	2008-03-02 03:15:06 +0200
+++ alsaplayer-svn-r1332/interface/text/Makefile.am	2008-03-02 04:00:06 +0200
@@ -1,7 +1,17 @@
+if HAVE_TEXT
+
 text_interfaceltlibs = libtext_interface.la
 text_interfaceldflags = -export-dynamic -avoid-version
 text_interfacesources = text.cpp
 
+else
+
+text_interfaceltlibs =
+text_interfaceldflags =
+text_interfacesources =
+
+endif
+
 lib_LTLIBRARIES = $(text_interfaceltlibs)
 
 COMMON_FLAGS = @ARCH_CFLAGS@
diff -urN alsaplayer-svn-r1332.orig/output/null/Makefile.am alsaplayer-svn-r1332/output/null/Makefile.am
--- alsaplayer-svn-r1332.orig/output/null/Makefile.am	2008-03-02 03:15:06 +0200
+++ alsaplayer-svn-r1332/output/null/Makefile.am	2008-03-02 04:00:06 +0200
@@ -1,7 +1,17 @@
+if HAVE_NULL
+
 null_outltlibs = libnull_out.la
 null_outldflags = -export-dynamic -avoid-version
 null_outsources = null.c
 
+else
+
+null_outltlibs =
+null_outldflags =
+null_outsources =
+
+endif
+
 lib_LTLIBRARIES = $(null_outltlibs)
 
 AM_CFLAGS = -D_REENTRANT -I$(top_builddir) -I$(top_srcdir)/alsaplayer @ARCH_CFLAGS@
diff -urN alsaplayer-svn-r1332.orig/reader/file/Makefile.am alsaplayer-svn-r1332/reader/file/Makefile.am
--- alsaplayer-svn-r1332.orig/reader/file/Makefile.am	2008-03-02 03:15:07 +0200
+++ alsaplayer-svn-r1332/reader/file/Makefile.am	2008-03-02 04:00:06 +0200
@@ -1,7 +1,17 @@
+if HAVE_FILE
+
 fileltlibs = libfile.la
 fileldflags = -export-dynamic -avoid-version
 filesources = file.c
 
+else
+
+fileltlibs =
+fileldflags =
+filesources =
+
+endif
+
 lib_LTLIBRARIES = $(fileltlibs)
 
 AM_CFLAGS = @DFLAGS@ -Wall -D_REENTRANT -I$(top_builddir) -I$(top_srcdir)/alsaplayer
diff -urN alsaplayer-svn-r1332.orig/reader/http/Makefile.am alsaplayer-svn-r1332/reader/http/Makefile.am
--- alsaplayer-svn-r1332.orig/reader/http/Makefile.am	2008-03-02 03:15:07 +0200
+++ alsaplayer-svn-r1332/reader/http/Makefile.am	2008-03-02 04:00:06 +0200
@@ -1,7 +1,17 @@
+if HAVE_HTTP
+
 httpltlibs = libhttp.la
 httpldflags = -export-dynamic -avoid-version
 httpsources = http.c
 
+else
+
+httpltlibs =
+httpldflags =
+httpsources =
+
+endif
+
 lib_LTLIBRARIES = $(httpltlibs)
 
 AM_CFLAGS = @DFLAGS@ -Wall -D_REENTRANT -I$(top_builddir) -I$(top_srcdir)/alsaplayer
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin