diff options
author | Michael Mair-Keimberger <mmk@levelnine.at> | 2024-10-29 19:29:23 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2024-11-02 13:05:40 +0100 |
commit | af462ec67aee4653dbc3b8d8be11a79de5c73229 (patch) | |
tree | e4a44edc6564904dcc703ec97fc10ef426b9e871 /dev-games | |
parent | games-roguelike/adom: drop old (diff) | |
download | gentoo-af462ec67aee4653dbc3b8d8be11a79de5c73229.tar.gz gentoo-af462ec67aee4653dbc3b8d8be11a79de5c73229.tar.bz2 gentoo-af462ec67aee4653dbc3b8d8be11a79de5c73229.zip |
dev-games/clanlib: add 4.2.0
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/39151
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/clanlib/Manifest | 1 | ||||
-rw-r--r-- | dev-games/clanlib/clanlib-4.2.0.ebuild | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/dev-games/clanlib/Manifest b/dev-games/clanlib/Manifest index a54ac9118f5b..068821810e2e 100644 --- a/dev-games/clanlib/Manifest +++ b/dev-games/clanlib/Manifest @@ -1,3 +1,4 @@ DIST ClanLib-0.8.1.tgz 7629019 BLAKE2B 7f238111931212e3f9c82ed43842706bf16ee145896735ca35595e29dd357e52364cc592be55d88e231f962adc313bc8f57357bc74c9f1b8b134bc411497f5e9 SHA512 277daaf1055ae0198be7a6bbfd415c79cfae9e2145f62553e83849d670f56e50b8484c83f8b85f23290002e0b0c72c1e01ca597ad608a0954a4add828177293b DIST ClanLib-2.3.7.tgz 26132425 BLAKE2B 109ba92baf21174022c8dbc4044e39ec16ec77c730b57590733418e246ab71d18d81bbf281cd469dd9e2aebd4ac4302fbb581f27dc7fc0054a8c7ce69699e19d SHA512 73169afc0f639390f80403150757a8a14f842bc291a9457c9bca1319642b78bc4d03a93327d75254230e39545c5b4b690e56dc0149ed7b60b223e5a5364e882a DIST clanlib-4.1.0.tar.gz 6871886 BLAKE2B 0aeb9e89998a9ef6975bf16a2e77f461e6415aacda9a26a5c0a9c6ec3c19a136a5f092c7866b60898251fbd6cb8aa7e96c86f6b87afb564824298fac77bf20c3 SHA512 34f5d1fdb7b071a218f081a6b06a6018a9c20cedc4c8500a9796be02d335f06fa148304379eeb1a35e08b9a734e504ceb490a6558a43d1611187bd97be01f4b0 +DIST clanlib-4.2.0.tar.gz 6830997 BLAKE2B edce01df4b9cfd00a7809a4962c126ca168209d36e02f42a7c988fc1e5789601168e38c0dbc4a237f4776098850f096b8f3ac1d54c810d8515eefe2f9c8d0775 SHA512 d3e2df4e2b1c9c661df9322e97a8582b46aaacb7fddd4d86f05a6bf6e02cd5cd3cbe80dbfae16a664b23107b9606a925ac10b4baad92d352ab33bb78d8696da8 diff --git a/dev-games/clanlib/clanlib-4.2.0.ebuild b/dev-games/clanlib/clanlib-4.2.0.ebuild new file mode 100644 index 000000000000..b277a01b2eb2 --- /dev/null +++ b/dev-games/clanlib/clanlib-4.2.0.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 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=" + sys-libs/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 +} |