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

DESCRIPTION="DSL Modem Tool - read line characteristics and generate statistics"
HOMEPAGE="http://www.spida.net/projects/dmt-ux"
SRC_URI="http://www.spida.net/projects/dmt-ux/dmt-ux-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="png rrdtool"

RDEPEND="png? (media-fonts/ttf-bitstream-vera)"
DEPEND="png? (media-libs/libpng
             >=media-libs/freetype-2.0.0)
	    rrdtool? (>=net-analyzer/rrdtool-1.2.0)" 

src_unpack() {
	unpack ${A}
	cd ${S}
	use rrdtool || sed -i -e 's:-lrrd::g' \
	-e 's:rrdstat.o::' -e 's:-Drrd::' Makefile
	use png || sed -i -e 's:-lpng::g' -e 's:-lfreetype::' \
	-e 's:graphic.o::' -e 's:-Dgraphic::'\
	-e 's:-I/usr/local/include/freetype2::' \
	-e 's:-I/usr/include/freetype2::' Makefile
	sed -i -e \
	's:./fonts/Vera.ttf:/usr/share/fonts/ttf-bitstream-vera/Vera.ttf:' dmt-ux.c
}

src_install() {
	dobin dmt-ux
	dodoc doc/README 
}