summaryrefslogtreecommitdiff
blob: a2c5c3f2e6105209eedeabdf69d988fc25abcb92 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/pornview/pornview-0.1.5.ebuild,v 1.4 2003/09/11 01:18:39 msterret Exp $

DESCRIPTION="Image viewer/manager with optional support for MPEG movies."
HOMEPAGE="http://pornview.sourceforge.net"
LICENSE="GPL-2"

DEPEND="media-libs/libpng
	>=media-libs/gdk-pixbuf-0.16
	=x11-libs/gtk+-1.2*
	mpeg? ( =media-libs/xine-lib-0.9* )"

#From README mplayer is broken
#	avi? ( media-video/mplayer )"

SLOT="0"
KEYWORDS="x86 ppc"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
IUSE="mpeg"

S="${WORKDIR}/${P}"

src_compile() {
	local myflags=""
#	use avi && myflags="--enable-mplayer"
	use mpeg && myflags="--enable-xine"
	./configure $myflags\
		--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 ChangeLog INSTALL NEWS README

	einfo "Sorry, mplayer support is broken so we had to disable it"
	einfo "Please do not open a bug even if this is fixed by"
	einfo "the pornview developer himself"

}