summaryrefslogtreecommitdiff
blob: 1a8c449e756e307e5867bde0b6614dff1bc9281f (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/xpp/xpp-1.5-r1.ebuild,v 1.2 2012/01/05 17:25:33 ssuominen Exp $

EAPI=4
inherit eutils toolchain-funcs

DESCRIPTION="X Printing Panel"
HOMEPAGE="http://cups.sourceforge.net/xpp/"
SRC_URI="mirror://sourceforge/cups/${P}.tar.gz"

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

RDEPEND=">=media-libs/libpng-1.2:0
	net-print/cups
	sys-libs/zlib
	virtual/jpeg
	>=x11-libs/fltk-1.3:1
	x11-libs/libX11
	x11-libs/libXext
	x11-libs/libXft"
DEPEND="${RDEPEND}"

src_prepare() {
	epatch \
		"${FILESDIR}"/xpp-gcc4.patch \
		"${FILESDIR}"/xpp-glibc-2.10.patch \
		"${FILESDIR}"/xpp-fltk-1.3.0.patch
}

src_configure() {
	tc-export CXX
	export LDFLAGS="-L/usr/lib/fltk-1 -lfltk"
	export CPPFLAGS="-I/usr/include/fltk-1"

	STRIP="$(type -P true)" econf
}

src_compile() {
	emake -j1
}

src_install() {
	einstall
	dodoc ChangeLog README
}