You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# TODO: Bump to EAPI 6
|
|
|
|
EAPI=5
|
|
|
|
PYTHON_COMPAT=( python{2_7,3_2,3_3} )
|
|
PYTHON_REQ_USE="threads(+)"
|
|
inherit git-2 python-any-r1 waf-utils
|
|
|
|
DESCRIPTION="Fast Light ToolKit fork, adding improved graphics rendering via Cairo"
|
|
HOMEPAGE="http://non.tuxfamily.org/wiki/NTK"
|
|
EGIT_REPO_URI="git://git.tuxfamily.org/gitroot/non/fltk.git"
|
|
|
|
# --enable-test to waf builds and installs test programs. There is no test suite in the source code.
|
|
RESTRICT="test"
|
|
|
|
LICENSE="FLTK LGPL-2"
|
|
SLOT="0"
|
|
KEYWORDS=""
|
|
|
|
IUSE="debug opengl png"
|
|
|
|
RDEPEND="media-libs/fontconfig
|
|
x11-libs/cairo
|
|
x11-libs/libX11
|
|
x11-libs/libXft
|
|
virtual/jpeg:*
|
|
opengl? ( media-libs/glu )
|
|
png? ( media-libs/libpng:* )"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
DOCS=( ANNOUNCEMENT CREDITS README )
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-noldconfig-r1.patch
|
|
"${FILESDIR}"/${P}-nooptimize.patch
|
|
)
|
|
|
|
src_unpack() {
|
|
git-2_src_unpack
|
|
}
|
|
|
|
src_configure() {
|
|
local mywafconfargs=(
|
|
$(usex debug --enable-debug "")
|
|
$(usex opengl --enable-gl "")
|
|
)
|
|
waf-utils_src_configure ${mywafconfargs[@]}
|
|
}
|
|
|
|
src_install() {
|
|
DESTDIR="${D}" waf-utils_src_install
|
|
}
|