blob: 8a56840395735980999d188255cd7a6af5bb270a (
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-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit flag-o-matic multilib
VERSION="501" #every bump, new version
DESCRIPTION="Graphical LCD Driver"
HOMEPAGE="https://projects.vdr-developer.org/projects/graphlcd-base"
SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
KEYWORDS="amd64 ~ppc x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="g15"
DEPEND="media-libs/freetype"
RDEPEND="g15? ( app-misc/g15daemon )
media-libs/freetype"
src_prepare() {
sed -i Make.config -e "s:usr\/local:usr:" -e "s:FLAGS *=:FLAGS ?=:"
eapply "${FILESDIR}/${PN}-0.1.5-nostrip.patch"
sed -i glcdskin/Makefile -e "s:-shared:\$(LDFLAGS) -shared:"
#gcc-6 fix
sed -i glcddrivers/futabaMDM166A.c -e "s:0xff7f0004:(int) 0xff7f0004:"
default
}
src_install() {
emake DESTDIR="${D}"/usr LIBDIR="${D}"/usr/$(get_libdir) install
insinto /etc
doins graphlcd.conf
local DOCS=( HISTORY README docs/* )
einstalldocs
}
|