summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Guertin <gerk@gentoo.org>2002-07-07 19:22:51 +0000
committerMark Guertin <gerk@gentoo.org>2002-07-07 19:22:51 +0000
commit7412aaf2da9a9947f74f920a1ea16914884b5f78 (patch)
treea569482929b6bc76c2e799210f946ddc25c329e2 /media-sound/mad
parentOpps had couple little mistakes (diff)
downloadgentoo-2-7412aaf2da9a9947f74f920a1ea16914884b5f78.tar.gz
gentoo-2-7412aaf2da9a9947f74f920a1ea16914884b5f78.tar.bz2
gentoo-2-7412aaf2da9a9947f74f920a1ea16914884b5f78.zip
updated for proper ARCH handling in configure
Diffstat (limited to 'media-sound/mad')
-rw-r--r--media-sound/mad/ChangeLog8
-rw-r--r--media-sound/mad/files/digest-mad-0.14.2b-r21
-rw-r--r--media-sound/mad/mad-0.14.2b-r2.ebuild45
3 files changed, 53 insertions, 1 deletions
diff --git a/media-sound/mad/ChangeLog b/media-sound/mad/ChangeLog
index b7a8d9461652..9065889be588 100644
--- a/media-sound/mad/ChangeLog
+++ b/media-sound/mad/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/mad
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/media-sound/mad/ChangeLog,v 1.2 2002/03/12 22:44:18 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mad/ChangeLog,v 1.3 2002/07/07 19:22:51 gerk Exp $
+
+*mad-0.14.2b-r2 (7 July 2002)
+
+ 7 Jul 2002; Mark Guertin <gerk@gentoo.org> Changelog :
+
+ Added case ARCH to set proper ARCH in configure options
*mad-0.14.2b (12 Mar 2002)
diff --git a/media-sound/mad/files/digest-mad-0.14.2b-r2 b/media-sound/mad/files/digest-mad-0.14.2b-r2
new file mode 100644
index 000000000000..4d4bba1ea629
--- /dev/null
+++ b/media-sound/mad/files/digest-mad-0.14.2b-r2
@@ -0,0 +1 @@
+MD5 eb3bfbe634ba9d5b4928aa11e0f6819d mad-0.14.2b.tar.gz 721345
diff --git a/media-sound/mad/mad-0.14.2b-r2.ebuild b/media-sound/mad/mad-0.14.2b-r2.ebuild
new file mode 100644
index 000000000000..3f82513ee781
--- /dev/null
+++ b/media-sound/mad/mad-0.14.2b-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/media-sound/mad/mad-0.14.2b-r2.ebuild,v 1.1 2002/07/07 19:22:51 gerk Exp $
+
+S=${WORKDIR}/${P}
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+HOMEPAGE="http://mad.sourceforge.net/"
+DESCRIPTION="A high-quality MP3 decoder"
+
+DEPEND="sys-devel/gcc
+ virtual/glibc
+ sys-devel/ld.so
+ nls? ( sys-devel/gettext )"
+RDEPEND="virtual/glibc sys-devel/ld.so"
+SLOT="0"
+LICENSE="GPL-2"
+
+src_compile() {
+ confopts="--infodir=/usr/share/info --mandir=/usr/share/man \
+ --prefix=/usr --host=${CHOST} --enable-static \
+ --disable-debugging --enable-shared"
+
+ use nls || confopts="${confopts} --disable-nls"
+
+ # set proper ARCH in configure options
+ case ${ARCH} in
+ x86)
+ confopts="${confopts} --enable-fpm=intel"
+ ;;
+ ppc)
+ confopts="${confopts} --enable-fpm=ppc"
+ ;;
+ sparc*)
+ confopts="${confopts} --enable-fpm=sparc"
+ ;;
+ esac
+
+ ./configure ${confopts} || die
+ emake || die
+}
+
+src_install () {
+ make DESTDIR=${D} install || die
+}