dev-libs/libtickit-0.3.4: add
[sgilles-overlay.git] / media-libs / sdl-ttf / sdl-ttf-2.0.11-r99.ebuild
blob0bb1744dcb677b5feb5762ae9226fb87edbd8436
1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-ttf/sdl-ttf-2.0.11.ebuild,v 1.9 2012/06/08 19:38:07 mr_bones_ Exp $
5 EAPI=2
6 inherit autotools eutils
8 MY_P="${P/sdl-/SDL_}"
9 DESCRIPTION="library that allows you to use TrueType fonts in SDL applications"
10 HOMEPAGE="http://www.libsdl.org/projects/SDL_ttf/"
11 SRC_URI="http://www.libsdl.org/projects/SDL_ttf/release/${MY_P}.tar.gz"
13 LICENSE="ZLIB"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
16 IUSE="static-libs X"
18 DEPEND="X? ( x11-libs/libXt )
19         media-libs/libsdl
20         >=media-libs/freetype-2.3"
22 S=${WORKDIR}/${MY_P}
24 src_prepare() {
25         epatch "${FILESDIR}"/${P}-underlink.patch
26         epatch "${FILESDIR}"/${P}-fix-onscripter.patch
27         eautoreconf
30 src_configure() {
31         econf \
32                 --disable-dependency-tracking \
33                 $(use_enable static-libs static) \
34                 $(use_with X x)
37 src_install() {
38         emake DESTDIR="${D}" install || die
39         dodoc CHANGES README
40         use static-libs || prune_libtool_files --all