summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-13 09:06:59 +0000
committerSam James <sam@gentoo.org>2021-06-13 11:07:34 +0000
commit0bd563a6f3738f8a32cd337a9d6d6b91be97b0dd (patch)
treedb80b1785f60f3bc374d93da2b0d60e6141ce144 /dev-games/clanlib/clanlib-4.1.0.ebuild
parentnet-misc/ipv6calc: add 3.1.1 (diff)
downloadgentoo-0bd563a6f3738f8a32cd337a9d6d6b91be97b0dd.tar.gz
gentoo-0bd563a6f3738f8a32cd337a9d6d6b91be97b0dd.tar.bz2
gentoo-0bd563a6f3738f8a32cd337a9d6d6b91be97b0dd.zip
dev-games/clanlib: add 4.1.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-games/clanlib/clanlib-4.1.0.ebuild')
-rw-r--r--dev-games/clanlib/clanlib-4.1.0.ebuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/dev-games/clanlib/clanlib-4.1.0.ebuild b/dev-games/clanlib/clanlib-4.1.0.ebuild
new file mode 100644
index 000000000000..257d24b427cb
--- /dev/null
+++ b/dev-games/clanlib/clanlib-4.1.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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.1"
+KEYWORDS="~amd64 ~x86" #not big endian safe #82779
+IUSE="cpu_flags_x86_sse2 doc examples ipv6 opengl sound static-libs X"
+REQUIRED_USE="opengl? ( X )"
+
+RDEPEND="
+ sys-libs/zlib
+ X? (
+ media-libs/freetype:2
+ media-libs/fontconfig
+ x11-libs/libX11
+ opengl? (
+ virtual/opengl
+ x11-libs/libXrender
+ )
+ )
+ sound? ( media-libs/alsa-lib )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ doc? (
+ app-doc/doxygen
+ dev-lang/perl
+ media-gfx/graphviz
+ )"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(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 ipv6 getaddr)
+ $(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
+}