summaryrefslogtreecommitdiff
blob: 68c74e984d5cf00d52d02d5e4550cf492d7c465c (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/mode2cdmaker/mode2cdmaker-1.5.1.ebuild,v 1.3 2005/09/15 20:40:18 mr_bones_ Exp $

DESCRIPTION="Utility to create mode-2 CDs, for example XCDs."
HOMEPAGE="http://webs.ono.com/usr016/de_xt/mcf.html"
SRC_URI="http://dext.peque.org/xcd/${P}-src.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE=""

DEPEND="app-arch/unzip"
RDEPEND=""

S=${WORKDIR}

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -e 's:gcc -c:gcc $(CFLAGS) -DMAX_PATH=512 -c:g' \
		Makefile.linux > Makefile || die "sed failed"
	sed -i -e 's:lstrlen:strlen:g' mkvcdfs.c || die "sed failed"
}

src_compile() {
	emake || die "emake failed"
}

src_install() {
	dobin mode2cdmaker || die "dobin failed"
	dodoc bugs.txt compatibility.txt readme.txt
}