+++ /dev/null
-Index: mpfc-1.3.7/libmpfc/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/libmpfc/Makefile.am
-+++ mpfc-1.3.7/libmpfc/Makefile.am
-@@ -18,6 +18,6 @@ libmpfc_la_SOURCES = cfg.c charset.c fil
- song_info.c string.c vfs.c logger.c cfg_rcfile.c \
- plugin.c plugin_general.c command.c \
- $(libmpfchdr_HEADERS)
--libmpfc_la_LIBADD = @COMMON_LIBS@ @RESOLV_LIBS@
-+libmpfc_la_LIBADD = @COMMON_LIBS@ @RESOLV_LIBS@ @DL_LIBS@
- INCLUDES = -I$(top_builddir)/src -I$(top_builddir)/libmpfcwnd
- localedir = $(datadir)/locale
-Index: mpfc-1.3.7/src/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/src/Makefile.am
-+++ mpfc-1.3.7/src/Makefile.am
-@@ -13,6 +13,7 @@ localedir = $(datadir)/locale
- DEFS = -DLOCALEDIR=\"$(localedir)\" -DLIBDIR=\"$(libdir)\" \
- -DSYSCONFDIR=\"$(sysconfdir)\" @DEFS@
- INCLUDES = -I$(top_builddir)/libmpfcwnd/
--mpfc_LDADD = @COMMON_LIBS@ @PTHREAD_LIBS@ @DL_LIBS@ @MATH_LIBS@ \
-+mpfc_LDADD = \
- $(top_builddir)/libmpfc/libmpfc.la \
-- $(top_builddir)/libmpfcwnd/libmpfcwnd.la
-+ $(top_builddir)/libmpfcwnd/libmpfcwnd.la \
-+ @COMMON_LIBS@ @PTHREAD_LIBS@ @DL_LIBS@ @MATH_LIBS@
+++ /dev/null
-Index: mpfc-1.3.7/libmpfc/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/libmpfc/Makefile.am
-+++ mpfc-1.3.7/libmpfc/Makefile.am
-@@ -1,7 +1,5 @@
- lib_LTLIBRARIES = libmpfc.la
-
--libdir = $(prefix)/lib/
--
- libmpfchdrdir = $(prefix)/include/mpfc
- libmpfchdr_HEADERS = ../mpfc-config.h ../src/types.h ../src/cfg.h \
- ../src/charset.h \
-Index: mpfc-1.3.7/libmpfcwnd/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/libmpfcwnd/Makefile.am
-+++ mpfc-1.3.7/libmpfcwnd/Makefile.am
-@@ -1,5 +1,4 @@
- lib_LTLIBRARIES = libmpfcwnd.la
--libdir = $(prefix)/lib/
- libmpfcwndhdrdir = $(prefix)/include/mpfc/libmpfcwnd
- libmpfcwndhdr_HEADERS = wnd.h wnd_print.h wnd_msg.h wnd_kbd.h \
- wnd_def_handlers.h wnd_root.h wnd_mouse.h wnd_types.h \
-Index: mpfc-1.3.7/plugins/input/audiocd/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/plugins/input/audiocd/Makefile.am
-+++ mpfc-1.3.7/plugins/input/audiocd/Makefile.am
-@@ -1,6 +1,6 @@
--lib_LTLIBRARIES = libaudiocd.la
-+plugin_LTLIBRARIES = libaudiocd.la
-
--libdir = $(prefix)/lib/mpfc/input
-+plugindir = $(libdir)/mpfc/input
-
- libaudiocd_la_SOURCES = audiocd.c audiocd.h cddb.c cddb.h
- libaudiocd_la_LIBADD = @COMMON_LIBS@ @RESOLV_LIBS@
-Index: mpfc-1.3.7/plugins/input/mp3/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/plugins/input/mp3/Makefile.am
-+++ mpfc-1.3.7/plugins/input/mp3/Makefile.am
-@@ -1,6 +1,6 @@
--lib_LTLIBRARIES = libmp3.la
-+plugin_LTLIBRARIES = libmp3.la
-
--libdir = $(prefix)/lib/mpfc/input
-+plugindir = $(libdir)/mpfc/input
-
- libmp3_la_SOURCES = mp3.c mp3.h
- INCLUDES = -I$(top_builddir)/src -I$(top_builddir)/libmpfcwnd
-Index: mpfc-1.3.7/plugins/input/ogg/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/plugins/input/ogg/Makefile.am
-+++ mpfc-1.3.7/plugins/input/ogg/Makefile.am
-@@ -1,6 +1,6 @@
--lib_LTLIBRARIES = libogg_vorbis.la
-+plugin_LTLIBRARIES = libogg_vorbis.la
-
--libdir = $(prefix)/lib/mpfc/input
-+plugindir = $(libdir)/mpfc/input
-
- libogg_vorbis_la_SOURCES = ogg.c vcedit.c vcedit.h
- INCLUDES = -I$(top_builddir)/src -I$(top_builddir)/libmpfcwnd
-Index: mpfc-1.3.7/plugins/input/wav/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/plugins/input/wav/Makefile.am
-+++ mpfc-1.3.7/plugins/input/wav/Makefile.am
-@@ -1,6 +1,6 @@
--lib_LTLIBRARIES = libwav.la
-+plugin_LTLIBRARIES = libwav.la
-
--libdir = $(prefix)/lib/mpfc/input
-+plugindir = $(libdir)/mpfc/input
-
- libwav_la_SOURCES = wav.c wav.h
- libwav_la_LIBADD = @COMMON_LIBS@
-Index: mpfc-1.3.7/plugins/output/alsa/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/plugins/output/alsa/Makefile.am
-+++ mpfc-1.3.7/plugins/output/alsa/Makefile.am
-@@ -1,6 +1,6 @@
--lib_LTLIBRARIES = libalsa.la
-+plugin_LTLIBRARIES = libalsa.la
-
--libdir = $(prefix)/lib/mpfc/output
-+plugindir = $(libdir)/mpfc/output
-
- libalsa_la_SOURCES = alsa.c
- INCLUDES = -I$(top_builddir)/src -I$(top_builddir)/libmpfcwnd
-Index: mpfc-1.3.7/plugins/output/disk_writer/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/plugins/output/disk_writer/Makefile.am
-+++ mpfc-1.3.7/plugins/output/disk_writer/Makefile.am
-@@ -1,6 +1,6 @@
--lib_LTLIBRARIES = libdisk_writer.la
-+plugin_LTLIBRARIES = libdisk_writer.la
-
--libdir = $(prefix)/lib/mpfc/output
-+plugindir = $(libdir)/mpfc/output
-
- libdisk_writer_la_SOURCES = writer.c
- libdisk_writer_la_LIBADD = @COMMON_LIBS@
-Index: mpfc-1.3.7/plugins/output/oss/Makefile.am
-===================================================================
---- mpfc-1.3.7.orig/plugins/output/oss/Makefile.am
-+++ mpfc-1.3.7/plugins/output/oss/Makefile.am
-@@ -1,6 +1,6 @@
--lib_LTLIBRARIES = liboss.la
-+plugin_LTLIBRARIES = liboss.la
-
--libdir = $(prefix)/lib/mpfc/output
-+plugindir = $(libdir)/mpfc/output
-
- liboss_la_SOURCES = oss.c
- liboss_la_LIBADD = @COMMON_LIBS@
+++ /dev/null
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=2
-inherit autotools eutils
-
-DESCRIPTION="Music Player For Console"
-HOMEPAGE="http://mpfc.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE="alsa gpm mad vorbis oss wav cdda nls"
-
-RDEPEND="alsa? ( >=media-libs/alsa-lib-0.9.0 )
- gpm? ( >=sys-libs/gpm-1.19.3 )
- mad? ( media-libs/libmad )
- vorbis? ( media-libs/libvorbis )"
-DEPEND="${RDEPEND}"
-
-src_prepare() {
- sed -i \
- -e 's:../src/file.h ../src/file.h:../src/file.h:' \
- libmpfc/Makefile.am || die #335449
-
- epatch "${FILESDIR}"/${P}-libdir.patch \
- "${FILESDIR}"/${PN}-gcc4.patch \
- "${FILESDIR}"/${P}-mathlib.patch \
- "${FILESDIR}"/${P}-asneeded.patch \
- "${FILESDIR}"/${P}-INT_MAX.patch
-
- AT_M4DIR="m4" eautoreconf
-}
-
-src_configure() {
- econf \
- $(use_enable alsa) \
- $(use_enable gpm) \
- $(use_enable mad mp3) \
- $(use_enable vorbis ogg) \
- $(use_enable oss) \
- $(use_enable wav) \
- $(use_enable cdda audiocd) \
- $(use_enable nls)
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
-
- insinto /etc
- doins mpfcrc || die
-
- dodoc AUTHORS ChangeLog NEWS README
-}