| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 4.2.0 | 8 | amd64 x86 | 4.2 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools toolchain-funcs
MY_PN=ClanLib
DESCRIPTION="Multi-platform game development library"
HOMEPAGE="https://github.com/sphair/ClanLib"
SRC_URI="https://github.com/sphair/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="ZLIB"
SLOT="4.2"
KEYWORDS="amd64 x86" #not big endian safe #82779
IUSE="cpu_flags_x86_sse2 doc examples opengl +sound static-libs X"
REQUIRED_USE="opengl? ( X )"
RDEPEND="
virtual/zlib:=
X? (
media-libs/freetype:2
media-libs/fontconfig
x11-libs/libX11
x11-libs/libXinerama
opengl? (
virtual/opengl
x11-libs/libXrender
)
)
sound? ( media-libs/alsa-lib )"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
doc? (
app-text/doxygen
dev-lang/perl
media-gfx/graphviz
)"
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
--enable-getaddr
$(use_enable doc docs)
$(use_enable cpu_flags_x86_sse2 sse2)
$(use_enable opengl clanGL)
$(use_enable opengl clanUI)
$(use_enable X clanDisplay)
$(use_enable sound clanSound)
$(use_enable static-libs static)
)
tc-export PKG_CONFIG
econf "${myeconfargs[@]}"
}
src_compile() {
default
use doc && emake html
}
src_install() {
default
use doc && emake DESTDIR="${D}" install-html
use examples && dodoc -r Examples Resources
# package provides .pc files
find "${ED}" -name '*.la' -delete || die
}
virtual/zlib:= X? ( media-libs/freetype:2 media-libs/fontconfig x11-libs/libX11 x11-libs/libXinerama opengl? ( virtual/opengl x11-libs/libXrender ) ) sound? ( media-libs/alsa-lib )
virtual/zlib:= X? ( media-libs/freetype:2 media-libs/fontconfig x11-libs/libX11 x11-libs/libXinerama opengl? ( virtual/opengl x11-libs/libXrender ) ) sound? ( media-libs/alsa-lib )
virtual/pkgconfig doc? ( app-text/doxygen dev-lang/perl media-gfx/graphviz )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | clanlib-4.2.0.tar.gz | 6830997 bytes | https://github.com/sphair/ClanLib/archive/v4.2.0.tar.gz |