summaryrefslogtreecommitdiff
blob: 99786625cc33513cd126faa760bb708c66b20a5c (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/flphoto/flphoto-1.3.1.ebuild,v 1.3 2008/11/23 20:25:34 halcy0n Exp $

EAPI=1

inherit eutils

DESCRIPTION="Basic image management and display program based on the FLTK toolkit"
HOMEPAGE="http://www.easysw.com/~mike/flphoto/"
SRC_URI="mirror://sourceforge/fltk/${P}-source.tar.gz"

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

DEPEND=">=x11-libs/fltk-1.1.4:1.1
	cups? ( net-print/cups )
	gphoto2? ( media-gfx/gphoto2 )"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/flphoto-1.3.1-glibc28.patch
}

src_compile() {
	econf --with-docdir=/usr/share/doc/${P} || die
	emake -j1 || die
}

src_install() {
	make DESTDIR="${D}" install || die
}