summaryrefslogtreecommitdiff
blob: ef27361f0649eff9115dda27b2b2be3ba9682df8 (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
# Copyright 1999-2002 Arcady Genkin <agenkin@thpoon.com>
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libdvdnav/libdvdnav-0.1.2-r2.ebuild,v 1.1 2002/07/01 15:12:45 lostlogic Exp $

DESCRIPTION="Library for DVD navigation tools."
HOMEPAGE="http://sourceforge.net/projects/dvd/"

SRC_URI="mirror://sourceforge/dvd/${P}.tar.gz"
S=${WORKDIR}/${P}

LICENSE="GPL"
SLOT="0"

DEPEND="media-libs/libdvdread"
RDEPEND="${DEPEND}"

src_unpack() {

	unpack ${A}
	cd ${S}/src

	# This nice little patch that makes compilation work on gcc2
	# breaks compilation on gcc-3.1 so, don't use it if we are
	# going to be running gcc-3.1
	[ -z "${CC}" ] && export CC=gcc
	[[ "`${CC} -dumpversion`" != "3.1" ]] && \
	( patch < ${FILESDIR}/${P}-gentoo.patch || die )

}

src_compile() {

	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man || die "./configure failed"
	emake || die
}

src_install () {
	make DESTDIR=${D} install || die
	dodoc AUTHORS COPYING INSTALL NEWS README
}

pkg_postinst() {
	einfo
	einfo "Please remove old versions of libdvdnav manually,"
	einfo "having multiple versions installed can cause problems."
	einfo
}