blob: e7852e3172fef341bad9c6efd2edf42cad2c7244 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/graphlcd-base/graphlcd-base-0.1.5-r2.ebuild,v 1.1 2010/08/10 17:25:32 hwoarang Exp $
EAPI="2"
inherit eutils flag-o-matic multilib
DESCRIPTION="Graphical LCD Driver"
HOMEPAGE="http://graphlcd.berlios.de/"
SRC_URI="mirror://berlios/graphlcd/${P}.tgz
mirror://vdrfiles/${PN}/${P}_utf8.diff.tgz"
KEYWORDS="~amd64 ~ppc ~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="truetype unicode g15"
DEPEND=""
RDEPEND="truetype? ( media-libs/freetype media-fonts/corefonts )
unicode? ( media-libs/freetype media-fonts/corefonts )
g15? ( app-misc/g15daemon )"
src_prepare() {
sed -i Make.config -e "s:usr\/local:usr:" -e "s:FLAGS *=:FLAGS ?=:"
epatch "${FILESDIR}/${P}-nostrip.patch"
epatch "${FILESDIR}/${P}-gcc43.patch"
epatch "${FILESDIR}/${P}-ldflags.patch"
use !truetype && sed -i "s:HAVE_FREETYPE2:#HAVE_FREETYPE2:" Make.config
use unicode && epatch "${WORKDIR}/${P}_utf8.diff" && \
sed -i "s:#HAVE_FREETYPE2:HAVE_FREETYPE2:" Make.config
}
src_install() {
make DESTDIR="${D}"/usr LIBDIR="${D}"/usr/$(get_libdir) install || die "make install failed"
insinto /etc
doins graphlcd.conf
dodoc docs/*
}
|