# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/aegisub/aegisub-3.0.2.ebuild,v 1.1 2013/03/31 19:37:29 maksbotan Exp $ EAPI="5" AUTOTOOLS_AUTORECONF="1" AUTOTOOLS_IN_SOURCE_BUILD="1" WX_GTK_VER="2.9" inherit autotools-utils wxwidgets DESCRIPTION="Advanced SSA/ASS subtitle editor" HOMEPAGE="http://www.aegisub.org/" SRC_URI="http://ftp.aegisub.org/pub/releases/${P}.tar.xz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="alsa debug +ffmpeg fftw lua openal oss portaudio pulseaudio spell" REQUIRED_USE=" || ( alsa openal oss portaudio pulseaudio ) " RDEPEND=" >=x11-libs/wxGTK-2.9.3:${WX_GTK_VER}[X,opengl,debug?] virtual/opengl virtual/glu >=media-libs/libass-0.10.0[fontconfig] virtual/libiconv >=media-libs/fontconfig-2.4.2 >=media-libs/freetype-2.3.5:2 alsa? ( >=media-libs/alsa-lib-1.0.16 ) portaudio? ( =media-libs/portaudio-19* ) pulseaudio? ( >=media-sound/pulseaudio-0.9.5 ) openal? ( media-libs/openal ) lua? ( >=dev-lang/lua-5.1.1 ) spell? ( >=app-text/hunspell-1.2.2 ) ffmpeg? ( >=media-libs/ffmpegsource-2.17 ) fftw? ( >=sci-libs/fftw-3.3 ) " DEPEND="${RDEPEND} oss? ( virtual/os-headers ) >=sys-devel/gettext-0.18 dev-util/intltool virtual/pkgconfig " S=${WORKDIR}/${PN}/${PN} src_configure() { local myeconfargs=( $(use_with alsa) $(use_with oss) $(use_with portaudio) $(use_with pulseaudio libpulse) $(use_with openal) $(use_with lua) $(use_with ffmpeg ffms2) $(use_with fftw fftw3) $(use_with spell hunspell) $(use_enable debug) ) autotools-utils_src_configure }