From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/allegro/, media-libs/allegro/files/
Date: Fri, 23 May 2025 00:23:20 +0000 (UTC) [thread overview]
Message-ID: <1747959768.4bbcf6068a6c6ee9cf4fddb2cbec0ff7243742ac.asturm@gentoo> (raw)
commit: 4bbcf6068a6c6ee9cf4fddb2cbec0ff7243742ac
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu May 22 22:49:10 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri May 23 00:22:48 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bbcf606
media-libs/allegro: add 5.2.10.1
Closes: https://bugs.gentoo.org/949104
Bug: https://bugs.gentoo.org/951547
Closes: https://bugs.gentoo.org/954853
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
media-libs/allegro/Manifest | 1 +
media-libs/allegro/allegro-5.2.10.1.ebuild | 104 +++++++++++++++++++++
.../allegro/files/allegro-5.2.10.1-cmake4.patch | 22 +++++
3 files changed, 127 insertions(+)
diff --git a/media-libs/allegro/Manifest b/media-libs/allegro/Manifest
index c66334ab9581..1f6d850c71b2 100644
--- a/media-libs/allegro/Manifest
+++ b/media-libs/allegro/Manifest
@@ -1,2 +1,3 @@
DIST allegro-4.4.3.1.tar.gz 4663634 BLAKE2B 23fa8cd77858243bfa8191f6bca26f50d1621fa84616968595c1284c73a86160cdbad201eece5bd026bb7ac13753568b6915295646b86e536b5d26c0394e2d1f SHA512 c5a552ab710226493447eb2547b3d7559badb96f511fbefd315b665b7486013a6710c83b69363eb09f90f53ef4278fe7b90cfee88d90d88f0fe8dc7df7606729
+DIST allegro-5.2.10.1.tar.gz 9858581 BLAKE2B bd4b5008030657e451349dc01ded4856349a36aaaeef366dcbfb63c744e76b05ddcfc5f8e47add6c7eb07849e275cbe52dde7a28f274b07b01a2be1fea16c2e2 SHA512 126fe357049b9f069d5b1d880dd7579406f87c7b17b05b26088b40ed72bb8f4b2d014b879d49f89648accf9b80dd5d81c4a1a116d7cb4601130187ae3d5b05f9
DIST allegro-5.2.7.0.tar.gz 7911231 BLAKE2B 9cc588a42d461ce06db94c1dd57642a2e9445c4930fcc164f2da57edfb463552a279a5e50f46740561a88c974c96605bb09fcc596e7bc6afb5e30b18ff7b74d5 SHA512 300bb951c661e7a220d913cca4116aba99afdcb5346af7c57b09bbdfa892d446cd64fde54397c57edb3c5f57d3380fbc2b6c4d9c9e17f48ff8180cfbf59e7d99
diff --git a/media-libs/allegro/allegro-5.2.10.1.ebuild b/media-libs/allegro/allegro-5.2.10.1.ebuild
new file mode 100644
index 000000000000..5cd72f33ce1b
--- /dev/null
+++ b/media-libs/allegro/allegro-5.2.10.1.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib
+
+DESCRIPTION="Cross-platform library aimed at video game and multimedia programming"
+HOMEPAGE="https://liballeg.org/"
+SRC_URI="https://github.com/liballeg/allegro5/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="BSD ZLIB"
+SLOT="5"
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="alsa dumb flac gtk jpeg openal opengl opus oss physfs png pulseaudio test truetype vorbis webp X xinerama"
+
+# TODO: For tests, we need some extra deps.
+# -- Could NOT find OPENSL (missing: OPENSL_INCLUDE_DIR OPENSL_LIBRARY)
+# -- Could NOT find MiniMP3 (missing: MINIMP3_INCLUDE_DIRS)
+# TODO: Tweak REQUIRED_USE for tests?
+# WARNING: allegro_video wanted but no supported backend found
+
+REQUIRED_USE="X? ( opengl )
+ xinerama? ( X )
+ || ( alsa openal oss pulseaudio )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
+ dumb? ( media-libs/libopenmpt[${MULTILIB_USEDEP}] )
+ flac? ( >=media-libs/flac-1.2.1-r5:=[${MULTILIB_USEDEP}] )
+ gtk? ( x11-libs/gtk+:3[${MULTILIB_USEDEP}] )
+ jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] )
+ openal? ( >=media-libs/openal-1.15.1[${MULTILIB_USEDEP}] )
+ opengl? (
+ >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
+ )
+ opus? ( media-libs/opus[${MULTILIB_USEDEP}] )
+ physfs? ( >=dev-games/physfs-2.0.3-r1[${MULTILIB_USEDEP}] )
+ png? ( >=media-libs/libpng-1.5.18:0=[${MULTILIB_USEDEP}] )
+ pulseaudio? ( media-libs/libpulse[${MULTILIB_USEDEP}] )
+ truetype? ( >=media-libs/freetype-2.5.0.1[${MULTILIB_USEDEP}] )
+ vorbis? ( >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] )
+ webp? ( media-libs/libwebp:0=[${MULTILIB_USEDEP}] )
+ X? (
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXcursor-1.1.14[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libXxf86vm-1.1.3[${MULTILIB_USEDEP}]
+ )
+ xinerama? ( >=x11-libs/libXinerama-1.1.3[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ x11-base/xorg-proto
+"
+BDEPEND="virtual/pkgconfig"
+
+MULTILIB_WRAPPED_HEADERS=( /usr/include/allegro5/allegro_native_dialog.h )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-cmake4.patch # bug 951547
+)
+
+src_configure() {
+ # We forego freeimage for now because ebuild is not multilib
+ # No known consumers yet anyway
+ local mycmakeargs=(
+ -DMANDIR="${EPREFIX}"/usr/share/man
+ -DWANT_DEMO=OFF
+ -DWANT_EXAMPLES=OFF
+ -DWANT_IMAGE_FREEIMAGE=OFF
+ -DWANT_ALSA=$(usex alsa)
+ -DWANT_FLAC=$(usex flac)
+ -DWANT_IMAGE_JPG=$(usex jpeg)
+ -DWANT_IMAGE_PNG=$(usex png)
+ -DWANT_IMAGE_WEBP=$(usex webp)
+ -DWANT_OPENMPT=$(usex dumb)
+ -DWANT_NATIVE_DIALOG=$(usex gtk)
+ -DWANT_OGG_VIDEO=$(usex vorbis)
+ -DWANT_OPENAL=$(usex openal)
+ -DWANT_OPENGL=$(usex opengl)
+ -DWANT_OPUS=$(usex opus)
+ -DWANT_OSS=$(usex oss)
+ -DWANT_PHYSFS=$(usex physfs)
+ -DWANT_PRIMITIVES=$(usex opengl)
+ -DWANT_PULSEAUDIO=$(usex pulseaudio)
+ -DWANT_TESTS=$(usex test)
+ -DWANT_TTF=$(usex truetype)
+ -DWANT_VORBIS=$(usex vorbis)
+ -DWANT_X11=$(usex X)
+ -DWANT_X11_XINERAMA=$(usex xinerama)
+ )
+
+ cmake-multilib_src_configure
+}
+
+src_install() {
+ local HTML_DOCS=( docs/html/refman/. )
+ cmake-multilib_src_install
+
+ dodoc CHANGES-5.0.txt CHANGES-5.1.txt CHANGES-5.2.txt
+ doman docs/man/*.3
+}
diff --git a/media-libs/allegro/files/allegro-5.2.10.1-cmake4.patch b/media-libs/allegro/files/allegro-5.2.10.1-cmake4.patch
new file mode 100644
index 000000000000..e5bdc915394a
--- /dev/null
+++ b/media-libs/allegro/files/allegro-5.2.10.1-cmake4.patch
@@ -0,0 +1,22 @@
+From 6e93fcaabaafd81701f4cd1b74f4b69dd598bc9b Mon Sep 17 00:00:00 2001
+From: Pavel Sountsov <siege@google.com>
+Date: Thu, 3 Apr 2025 23:04:02 -0700
+Subject: [PATCH] Bump CMake minimum version to 3.5
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 74742c22d..551f92897 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,7 +5,7 @@
+ # - some documentation targets still missing
+ # - installing documentation
+ #
+-cmake_minimum_required(VERSION 3.0)
++cmake_minimum_required(VERSION 3.5)
+ if(COMMAND cmake_policy)
+ cmake_policy(SET CMP0003 NEW)
+ if(POLICY CMP0026)
next reply other threads:[~2025-05-23 0:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-23 0:23 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-01-19 0:08 [gentoo-commits] repo/gentoo:master commit in: media-libs/allegro/, media-libs/allegro/files/ Sam James
2020-02-22 23:31 James Le Cuirot
2019-10-03 20:48 James Le Cuirot
2019-09-30 21:34 James Le Cuirot
2019-06-12 10:37 Andreas Sturmlechner
2019-01-05 21:26 Andreas K. Hüttel
2018-07-16 22:26 Andreas Sturmlechner
2016-02-29 6:43 Michael Sterrett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1747959768.4bbcf6068a6c6ee9cf4fddb2cbec0ff7243742ac.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox