blob: 2ffce59c75b9029ecb69ca0279ca5284361e250c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/mac/mac-3.99.4.4.ebuild,v 1.1 2006/03/21 16:13:03 sbriesen Exp $
inherit eutils
# weird version string :-/
MY_P=$(printf "%s-%d.%d-u%d-b%d" ${PN} ${PV//./ })
DESCRIPTION="Monkey's Audio lossless audio codec"
HOMEPAGE="http://sourceforge.net/projects/mac-port/"
SRC_URI="mirror://sourceforge/mac-port/${MY_P}.tar.gz"
LICENSE="MAC"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="x86? ( dev-lang/nasm )"
RDEPEND=""
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
# fix CXXFLAGS
sed -i -e "s:^\(CXXFLAGS=.*\)-O3 \(.*\):\1\2:g" configure*
# fix NASM source
epatch "${FILESDIR}/${MY_P}-nxstack.diff"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README TODO src/*.txt
dohtml src/*.htm
}
|