summaryrefslogtreecommitdiff
blob: 0121d8759eb93dd121e5b25d73098c9dd503e233 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit eutils toolchain-funcs

DESCRIPTION="A bsnes helper library which provides image filters"
HOMEPAGE="http://byuu.org/bsnes/"
MY_PV="${PV/0./}"
SRC_URI="http://byuu.org/files/${PN}_v${MY_PV}.tar.bz2"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=">=x11-libs/qt-gui-4.4"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${PN}"

src_prepare() {
	epatch "${FILESDIR}/${P}_gentoo.patch"
}

src_compile() {
	emake platform=x compiler="$(tc-getCC)" cpp="$(tc-getCXX)" ar="$(tc-getAR)" || die "emake failed"
}

src_install() {
	dolib libsnesfilter.* || die "install failed"
}