You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/tdfsb/tdfsb-0.0.10.ebuild

43 lines
869 B

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit eutils toolchain-funcs
DESCRIPTION="SDL based graphical file browser"
HOMEPAGE="http://www.determinate.net/webdata/seg/tdfsb.html"
SRC_URI="http://www.determinate.net/webdata/data/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="alpha amd64 ppc -sparc x86"
IUSE=""
DEPEND="media-libs/smpeg
media-libs/sdl-image
media-libs/freeglut
virtual/glu
x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXmu"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${P}-asneeded.patch \
"${FILESDIR}"/${P}-debugging.patch
sed -i -e "s:-O2:${CFLAGS} ${LDFLAGS}:" \
-e "s:gcc:$(tc-getCC):" "${S}"/compile.sh || die
}
src_compile() {
./compile.sh || die "compile failed"
}
src_install() {
dobin tdfsb
dodoc ChangeLog README
}