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.
49 lines
1.5 KiB
49 lines
1.5 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
5 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
3 years ago
|
CMAKE_ECLASS=cmake
|
||
5 years ago
|
inherit cmake-multilib
|
||
|
|
||
|
DESCRIPTION="A free OpenGL utility toolkit, the open-sourced alternative to the GLUT library"
|
||
|
HOMEPAGE="http://freeglut.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||
5 years ago
|
IUSE="debug static-libs"
|
||
|
|
||
|
# enabling GLES support seems to cause build failures
|
||
|
RDEPEND=">=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
|
||
|
>=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
|
||
|
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
|
||
|
>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
|
||
|
>=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
|
||
|
>=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}]
|
||
|
>=x11-libs/libXxf86vm-1.1.3[${MULTILIB_USEDEP}]"
|
||
|
# gles? ( media-libs/mesa[egl,gles1,gles2,${MULTILIB_USEDEP}] )
|
||
|
DEPEND="${RDEPEND}
|
||
|
x11-base/xorg-proto"
|
||
|
BDEPEND="virtual/pkgconfig"
|
||
|
|
||
4 years ago
|
PATCHES=( "${FILESDIR}"/${PN}-3.2.1-gcc10-fno-common.patch )
|
||
5 years ago
|
HTML_DOCS=( doc/. )
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
3 years ago
|
# "-DOpenGL_GL_PREFERENCE=GLVND" # bug 721006
|
||
5 years ago
|
"-DFREEGLUT_GLES=OFF"
|
||
5 years ago
|
"-DFREEGLUT_BUILD_DEMOS=OFF"
|
||
5 years ago
|
"-DFREEGLUT_BUILD_STATIC_LIBS=$(usex static-libs ON OFF)"
|
||
|
)
|
||
|
# $(cmake-utils_use gles FREEGLUT_GLES)
|
||
|
cmake-multilib_src_configure
|
||
|
}
|
||
5 years ago
|
|
||
|
multilib_src_install() {
|
||
3 years ago
|
cmake_src_install
|
||
3 years ago
|
cp "${ED}"/usr/$(get_libdir)/pkgconfig/{,free}glut.pc || die
|
||
5 years ago
|
}
|