# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/ogle/ogle-0.9.2-r1.ebuild,v 1.2 2005/09/10 15:38:09 flameeyes Exp $ inherit eutils libtool DESCRIPTION="Full featured DVD player that supports DVD menus." HOMEPAGE="http://www.dtek.chalmers.se/groups/dvd/" SRC_URI="http://www.dtek.chalmers.se/groups/dvd/dist/${P}.tar.gz" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64 ~alpha ~ia64 ~sparc" LICENSE="GPL-2" IUSE="oss mmx alsa xv altivec" DEPEND=">=media-libs/libdvdcss-1.2.2 media-libs/jpeg >=media-libs/libdvdread-0.9.4 media-libs/libmad virtual/x11 >=dev-libs/libxml2-2.4.19 >=media-libs/a52dec-0.7.3 alsa? ( media-libs/alsa-lib )" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/ogle-configure-alsa-fix.patch epatch ${FILESDIR}/ogle-gcc34-fix.patch epatch ${FILESDIR}/ogle-gcc4-fix.patch elibtoolize } src_compile() { # STOP! If you make any changes, make sure to unmerge all copies # of ogle and ogle-gui from your system and merge ogle-gui using your # new version of ogle... Changes in this package can break ogle-gui # very very easily -- blocke # configure needs access to the updated CFLAGS CFLAGS="${CFLAGS} -I/usr/include/libxml2/libxml -I/usr/include/libxml2" econf \ $(use_enable mmx) \ $(use_enable altivec) \ $(use_enable oss) \ $(use_enable alsa) \ $(use_enable xv) \ ${myconf} || die "./configure failed" emake CFLAGS="${CFLAGS}" || die "make failed" } src_install() { einstall || die "make install failed" cd ${D}usr/bin/ mv ./ifo_dump ./ifo_dump_ogle dodoc AUTHORS ChangeLog HISTORY NEWS README TODO doc/liba52.txt }