2017-02-08 09:21:43 +03:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
2011-11-09 11:33:19 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-03-16 15:18:23 +04:00
|
|
|
|
2015-12-18 12:04:56 +03:00
|
|
|
EAPI=5
|
2011-11-09 11:33:19 +04:00
|
|
|
inherit eutils flag-o-matic autotools
|
|
|
|
|
|
|
|
MY_PV=${PV/_/-}
|
|
|
|
MY_PV2=${PV/_/\~}
|
|
|
|
MY_P=${PN}-${MY_PV}
|
|
|
|
MY_P2=${PN}-${MY_PV2}
|
|
|
|
|
|
|
|
DESCRIPTION="library to use arbitrary fonts in OpenGL applications"
|
2017-02-08 09:21:43 +03:00
|
|
|
HOMEPAGE="http://ftgl.sourceforge.net/"
|
2011-11-09 11:33:19 +04:00
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
2015-03-03 15:02:00 +03:00
|
|
|
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
2012-03-16 15:18:23 +04:00
|
|
|
IUSE="static-libs"
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
DEPEND=">=media-libs/freetype-2.0.9
|
|
|
|
virtual/opengl
|
|
|
|
virtual/glu
|
|
|
|
media-libs/freeglut"
|
2015-12-18 12:04:56 +03:00
|
|
|
RDEPEND=${DEPEND}
|
2011-11-09 11:33:19 +04:00
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_P2}
|
|
|
|
|
|
|
|
src_prepare() {
|
2015-12-18 12:04:56 +03:00
|
|
|
epatch \
|
|
|
|
"${FILESDIR}"/${P}-gentoo.patch \
|
2011-11-09 11:33:19 +04:00
|
|
|
"${FILESDIR}"/${P}-underlink.patch
|
2013-04-28 05:08:42 +04:00
|
|
|
sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
|
2011-11-09 11:33:19 +04:00
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
strip-flags # ftgl is sensitive - bug #112820
|
2015-12-18 12:04:56 +03:00
|
|
|
econf $(use_enable static-libs static)
|
2011-11-09 11:33:19 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2015-12-18 12:04:56 +03:00
|
|
|
DOCS="AUTHORS BUGS ChangeLog NEWS README TODO docs/projects_using_ftgl.txt" \
|
|
|
|
default
|
|
|
|
rm -rf "${D}"/usr/share/doc/ftgl || die
|
|
|
|
prune_libtool_files
|
2011-11-09 11:33:19 +04:00
|
|
|
}
|