summaryrefslogtreecommitdiff
blob: 166d08badc74f64e431ff48d5e3bcc42a46f0dac (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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/gogo/gogo-3.10-r1.ebuild,v 1.2 2002/07/11 06:30:40 drobbins Exp $

S=${WORKDIR}/petit310pl3
DESCRIPTION="GoGo is an assembly optimized version of LAME 3.91"
SRC_URI="http://member.nifty.ne.jp/~pen/free/gogo3/down/petit310pl3.tgz"
HOMEPAGE="http://member.nifty.ne.jp/~pen/free/gogo3/mct_gogo.htm"

DEPEND="virtual/glibc
	dev-lang/nasm"
#	>=sys-libs/ncurses-5.H2
#	gtk?    ( =x11-libs/gtk+-1.2* )"
#	oggvorbis? ( >=media-libs/libvorbis-1.0_rc3 )"
# Oggvorbis support breaks with -rc3 
RDEPEND="virtual/glibc"
#	>=sys-libs/ncurses-5.2
#	gtk?    ( =x11-libs/gtk+-1.2* )"
#	oggvorbis? ( >=media-libs/libvorbis-1.0_rc3 )"

src_compile() {

	local myconf=""
#	if [ "`use oggvorbis`" ] ; then
#		myconf="--with-vorbis"
		myconf="--without-vorbis"
#	else
#		myconf="--without-vorbis"
#	fi
#	if [ "`use gtk`" ] ; then
#		myconf="$myconf --enable-mp3x"
#	fi
	if [ "$DEBUG" ] ; then
		myconf="$myconf --enable-debug=yes"
	else
		myconf="$myconf --enable-debug=no"
	fi
	
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--enable-shared \
		--enable-nasm \
		--enable-extopt=full \
		$myconf || die
		
	emake || die
}

src_install () {

	cd /var/tmp/portage/gogo-${PV}/work/petit310pl3
	patch -p0 < ${FILESDIR}/make-work-3.10pl3.patch || die
	mkdir ${D}/usr
	mkdir ${D}/usr/bin
	mkdir ${D}/usr/share
	mkdir ${D}/usr/share/man
	mkdir ${D}/usr/share/doc
	make exec_prefix=${D}usr \
		mandir=${D}usr/share/man \
		install || die

	dodoc  COPYING readme_e.txt
	dohtml -r ./
}