Lines 1-36
Link Here
|
1 |
# Copyright 1999-2003 Gentoo Technologies, Inc. |
1 |
# Copyright 1999-2003 Gentoo Technologies, Inc. |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# http://www.mtek.chalmers.se/~hjormagn/mhwaveedit-1.2.1.tar.gz |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
IUSE="gtk2 oss sdl" |
5 |
IUSE="gtk2 oss sdl" |
6 |
P=${PN}-${PV/_/} |
6 |
|
7 |
S=${WORKDIR}/${P} |
|
|
8 |
DESCRIPTION="GTK2 Sound file editor (wav, and a few others.)" |
7 |
DESCRIPTION="GTK2 Sound file editor (wav, and a few others.)" |
9 |
SRC_URI="http://www.mtek.chalmers.se/~hjormagn/${P}.tar.gz" |
8 |
SRC_URI="http://www.mtek.chalmers.se/~hjormagn/${P}.tar.gz" |
10 |
HOMEPAGE="http://www.mtek.chalmers.se/~hjormagn/mhwaveedit.html" |
9 |
HOMEPAGE="http://www.mtek.chalmers.se/~hjormagn/mhwaveedit.html" |
11 |
|
10 |
|
12 |
SLOT="0" |
11 |
SLOT="0" |
13 |
LISCENSE="GPL-2" |
12 |
LISCENSE="GPL-2" |
14 |
KEYWORDS="x86 ~ppc ~sparc " |
13 |
KEYWORDS="x86 ~ppc ~sparc" |
15 |
|
14 |
|
16 |
DEPEND="virtual/x11 |
15 |
DEPEND="gtk2? ( >=x11-libs/gtk+-2.0.0 ) |
17 |
gtk2? ( >=x11-libs/gtk+-2.0.0 ) |
|
|
18 |
!gtk2? ( =x11-libs/gtk+-1.2* ) |
16 |
!gtk2? ( =x11-libs/gtk+-1.2* ) |
19 |
( >=media-libs/libsdl-1.2.3 ) |
17 |
sdl? ( >=media-libs/libsdl-1.2.3 ) |
20 |
( >=media-libs/libsndfile-1.0.1 ) |
18 |
( >=media-libs/libsndfile-1.0.1 ) |
21 |
( >=media-libs/portaudio-18 )" |
19 |
( >=media-libs/portaudio-18 )" |
22 |
|
20 |
|
23 |
src_compile() { |
21 |
src_compile() { |
24 |
local myconf |
22 |
local myconf |
25 |
|
23 |
|
26 |
use gtk2 \ |
24 |
use gtk2 || myconf="${myconf} --disable-gtk2" |
27 |
&& myconf="${myconf}" \ |
25 |
use oss || myconf="${myconf} --without-oss" |
28 |
|| myconf="${myconf} --disable-gtk2" |
26 |
use sdl || myconf="${myconf} --without-sdl" |
29 |
use oss \ |
27 |
|
30 |
&& myconf="${myconf}" \ |
28 |
econf ${myconf} |
31 |
|| myconf="${myconf} --without-oss" |
|
|
32 |
|
33 |
econf ${myconf} || die |
34 |
emake || die |
29 |
emake || die |
35 |
} |
30 |
} |
36 |
|
31 |
|