summaryrefslogtreecommitdiff
blob: 59968cd3f41c1a6ba55ec5b568ca8b4d45f2d1e4 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/zgv/zgv-5.6.ebuild,v 1.7 2003/02/13 12:39:26 vapier Exp $

S=${WORKDIR}/${P}
DESCRIPTION="A svgalib console image viewer."
SRC_URI="http://www.svgalib.org/rus/zgv/${P}.tar.gz"
HOMEPAGE="http://www.svgalib.org/rus/zgv"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"

DEPEND=">=media-libs/svgalib-1.4.2
	>=media-libs/jpeg-6b-r2
	media-libs/libpng
	>=media-libs/tiff-3.5.5
	>=sys-libs/zlib-1.1.4"

src_unpack() {
	unpack ${A}
	
	cd ${S}/src
	cp Makefile Makefile.orig
	sed -e "s:-O2 -fomit-frame-pointer -finline-functions:${CFLAGS}:" \
		Makefile.orig > Makefile
}

src_compile() {
	emake || die
}

src_install() {
	dodir /usr/bin /usr/share/info /usr/share/man/man1
	make PREFIX=${D}/usr \
		INFODIR=${D}/usr/share/info \
		MANDIR=${D}/usr/share/man/man1 \
		install || die
	
	# Fix info files
	cd ${D}/usr/share/info
	rm dir*
	mv zgv zgv.info
	for i in 1 2 3 4
	do
		mv zgv-$i zgv.info-$i
	done
	cd ${S}
	
	dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README* SECURITY TODO
}