summaryrefslogtreecommitdiff
path: root/media-libs/allegro
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-29 18:01:47 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-29 18:01:47 +0000
commitceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (patch)
tree9f47ee47c31a0f13f9496879cd88a1042550aa81 /media-libs/allegro
parent53cba99042fa967e2a93da9f8db806fe2d035543 (diff)
gentoo (leap year) resync : 29.02.2020
Diffstat (limited to 'media-libs/allegro')
-rw-r--r--media-libs/allegro/Manifest3
-rw-r--r--media-libs/allegro/allegro-4.4.3.1.ebuild115
-rw-r--r--media-libs/allegro/files/allegro-4.4.3.1-texinfo-encoding.patch19
3 files changed, 137 insertions, 0 deletions
diff --git a/media-libs/allegro/Manifest b/media-libs/allegro/Manifest
index c0e45cf4bf28..c07e96e3c4ba 100644
--- a/media-libs/allegro/Manifest
+++ b/media-libs/allegro/Manifest
@@ -6,8 +6,11 @@ AUX allegro-4.4.2-rpath.patch 182 BLAKE2B c6bae5a2ca5cd77022bf07690c5eb4d5b78f44
AUX allegro-4.4.2-shared.patch 247 BLAKE2B d5bada972b4c2555f9ad9da18b30b224f5aa70762d6d68883601df933cc44788b6e5a78289d0bde863f788b65cf583ea828ffb6455d03d1d7493b00ff6c40b77 SHA512 5b982f857197dd9256bb1a151b544484b0178fa8e90d6b876bf2d26ea37c6e6bf6f44d1b729f9d2ccd11899024dccc2afbfbbfb73b816cb17e97dc3eb4df51e5
AUX allegro-4.4.2-static-func.patch 416 BLAKE2B 3f7436cf87dd66c6ac336a3d8be8901a4679ae3054c1fe8ecb1012b5da883d3bfffc41c7421af6d95171e24e5ed864c8a6b029a9b387ad76c082437b406a8891 SHA512 ad1cd77c66f75192ccf5048f0742b9f420e611b7790576c3915721d104299b9e91619451d615d3653737bb2333b1cb170acb3202f0293be92b8be3371445ac19
AUX allegro-4.4.2-underlink.patch 456 BLAKE2B ede5f9e5195b1c54460f584924afd9daa64c795a0e083499084c7377f1989bc0df621339ff3988bc2a997447050ebf3fe0f5055fbcef8ee21dd66dfdf1ca003a SHA512 0e873aa6d1b6e72e2e4b46276f0a2a4ffe816c8d0b6a10dd9462cfed826b40d7b3461ebe51e595e9f2e7a5d2f19fd261b1ad0e05f60b77717224911e59a537d0
+AUX allegro-4.4.3.1-texinfo-encoding.patch 778 BLAKE2B 7bd9538fb2fbded6e425ef6bbc0aa009707e522e1dc3d09540bf1f9fa6350375f7acea942a986304a834964bb20849da4f08ff3f963b86f43c179a9fc2b012ff SHA512 d8960e21b713a24d415704d023443dc09d6a8909d65063a7b55da47228619485fc7e647c5c52e9a9459da027daaebdc19e6c3e56fe618ee5f553fd03c4716bcc
DIST allegro-4.4.2.tar.gz 4674902 BLAKE2B 9f43fad416348425692481524f6c15808ee03946d93df4a072a46557817ccd5f6ae7eede908ca4a02a0a9e49f9a7c42909c48c14923b2155d3999ff370401006 SHA512 ad4bc1c15fc83bc8a019031fed82f37a793664bb6683cf023ec05fd9cd945f00f43764f3126892426036249c63afa5678fb4906407bb325ce5827b36aee0fa86
+DIST allegro-4.4.3.1.tar.gz 4663634 BLAKE2B 23fa8cd77858243bfa8191f6bca26f50d1621fa84616968595c1284c73a86160cdbad201eece5bd026bb7ac13753568b6915295646b86e536b5d26c0394e2d1f SHA512 c5a552ab710226493447eb2547b3d7559badb96f511fbefd315b665b7486013a6710c83b69363eb09f90f53ef4278fe7b90cfee88d90d88f0fe8dc7df7606729
DIST allegro-5.2.5.0.tar.gz 7849326 BLAKE2B 8d8995b9ad252b81c534099ffd91d81bbdcf4a34f7ca7c4fb7dd97e5c075869c212fa68445a5fe479a675d755ad0414976c11cbc112ecdd61f1fa09704957b21 SHA512 c6341396ad7340233c1297ed122095e5c2d129a32da2350b4bb39c4b74f8d56d57ec4e608defec471d63fff51d786f0a9f3844be82f81cdb3d48d5bc49908b12
EBUILD allegro-4.4.2-r2.ebuild 2737 BLAKE2B 53d1da512860d07ae86685094c73795eff384dccac3bfdcaa14e766300043289163cf721ff53abcc826070182eb14bef098fcadb2cda4730cd6042ed76116d4c SHA512 947594d6b3dcc1df3cb7359d41ddac48b8095933aa82dc5e064c92534e94d380ff0b65896a5558b82c11b7149c5f4dd552017b247c35b233318a6e5b010cff0c
+EBUILD allegro-4.4.3.1.ebuild 2974 BLAKE2B 528154f76a3881238dc604cddfa85c308d5b03333be69ff946083abb26aa589e44a85b684b4913638f2ca70b6dabd84df392d07bfd806f204c61d61af31263d5 SHA512 45f1829f0cc3cdd3a15f7ff92c6712c4c871e61cacf92ba8be1b0394f20b1649532e0e5a7bda3407218d0203788217383d8c788a72145d7a02965eeacdd8cb3f
EBUILD allegro-5.2.5.0.ebuild 2815 BLAKE2B f9e0fa04cef9144f57076184248d86aa7a2db28e2c3bb31c34abb7f3a06d1f6130bfc45e041293378b42854fbefdf0cf9718d709b7b1e73b79365d76ddfebf11 SHA512 09fd35132056411a1e45080ecf97563f52df1bcfadc2557d72dc954fbebe27f352cb7d11c54824063a8335fcf6a3f3866b00d52f43123c2b1eacec6373b981f0
MISC metadata.xml 1034 BLAKE2B c1cdd935feae4561903bde181428ef0d71743f85e7756f507087528641471b4af3d1339758c3d829f8244b5cec7cc74bb7563699b9e5b05146ae4c6abe8dd5af SHA512 21301cc66fe94a4d728900cd5856d3e0d27507b1d340e36246c183b13232cb7f9c9da9f8b20428bd387c7216a892dce169c2bc885caabacb08a32892faffc994
diff --git a/media-libs/allegro/allegro-4.4.3.1.ebuild b/media-libs/allegro/allegro-4.4.3.1.ebuild
new file mode 100644
index 000000000000..c0f62180c012
--- /dev/null
+++ b/media-libs/allegro/allegro-4.4.3.1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CMAKE_ECLASS=cmake
+inherit cmake-multilib desktop
+
+DESCRIPTION="cross-platform multimedia library"
+HOMEPAGE="https://liballeg.org/"
+SRC_URI="https://github.com/liballeg/allegro5/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="Allegro MIT GPL-2+ ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~mips ~ppc ~ppc64 ~x86"
+IUSE="alsa doc fbcon jack jpeg opengl oss png svga vga vorbis X"
+
+RDEPEND="
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
+ jack? ( virtual/jack[${MULTILIB_USEDEP}] )
+ jpeg? ( virtual/jpeg:0[${MULTILIB_USEDEP}] )
+ png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] )
+ svga? ( media-libs/svgalib[${MULTILIB_USEDEP}] )
+ vorbis? ( media-libs/libvorbis[${MULTILIB_USEDEP}] )
+ X? (
+ x11-libs/libX11[${MULTILIB_USEDEP}]
+ x11-libs/libXcursor[${MULTILIB_USEDEP}]
+ x11-libs/libXext[${MULTILIB_USEDEP}]
+ x11-libs/libXpm[${MULTILIB_USEDEP}]
+ x11-libs/libXt[${MULTILIB_USEDEP}]
+ x11-libs/libXxf86dga[${MULTILIB_USEDEP}]
+ x11-libs/libXxf86vm[${MULTILIB_USEDEP}]
+ opengl? (
+ virtual/glu[${MULTILIB_USEDEP}]
+ virtual/opengl[${MULTILIB_USEDEP}]
+ )
+ )"
+DEPEND="${RDEPEND}
+ X? ( x11-base/xorg-proto )"
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( sys-apps/texinfo )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.4.2-shared.patch
+ "${FILESDIR}"/${PN}-4.4.2-underlink.patch
+ "${FILESDIR}"/${PN}-4.4.2-gentoo.patch
+ "${FILESDIR}"/${PN}-4.4.2-rpath.patch
+ "${FILESDIR}"/${PN}-4.4.3.1-texinfo-encoding.patch
+)
+
+src_prepare() {
+ cmake_src_prepare
+
+ sed -i \
+ -e "s:allegro-\${ALLEGRO_VERSION}:${PF}:" \
+ docs/CMakeLists.txt || die
+}
+
+src_configure() {
+ # WANT_LINUX_CONSOLE is by default OFF
+ # WANT_EXAMPLES doesn't install anything
+ # WANT_TEST doesn't do anything regarding unittests
+ local mycmakeargs=(
+ -DDOCDIR=share/doc
+ -DINFODIR=share/info
+ -DMANDIR=share/man
+ -DWANT_ALSA=$(usex alsa)
+ -DWANT_DOCS_INFO=$(usex doc)
+ -DWANT_EXAMPLES=OFF
+ -DWANT_JACK=$(usex jack)
+ -DWANT_JPGALLEG=$(usex jpeg)
+ -DWANT_LINUX_CONSOLE=OFF
+ -DWANT_LINUX_FBCON=$(usex fbcon)
+ -DWANT_LINUX_SVGALIB=$(usex svga)
+ -DWANT_LINUX_VGA=$(usex vga)
+ -DWANT_LOADPNG=$(usex png)
+ -DWANT_LOGG=$(usex vorbis)
+ -DWANT_OSS=$(usex oss)
+ -DWANT_TESTS=OFF
+ -DWANT_TOOLS=$(usex X)
+ -DWANT_X11=$(usex X)
+ )
+
+ if use X; then
+ mycmakeargs+=( -DWANT_ALLEGROGL=$(usex opengl) )
+ else
+ mycmakeargs+=( -DWANT_ALLEGROGL=OFF )
+ fi
+
+ cmake-multilib_src_configure
+}
+
+multilib_src_install() {
+ if multilib_is_native_abi ; then
+ dodoc -r docs/html
+ #176020 (init_dialog.3), #409305 (key.3)
+ pushd docs/man >/dev/null
+ local manpage
+ for manpage in $(ls -d *.3); do
+ newman ${manpage} ${PN}-${manpage}
+ done
+ popd >/dev/null
+
+ if use X; then
+ newbin setup/setup ${PN}-setup
+ insinto /usr/share/${PN}
+ doins "${S}"/{keyboard,language,setup/setup}.dat
+ newicon "${S}"/misc/icon.png ${PN}.png
+ make_desktop_entry ${PN}-setup "Allegro Setup" ${PN} "Settings"
+ fi
+ fi
+ cmake_src_install
+}
diff --git a/media-libs/allegro/files/allegro-4.4.3.1-texinfo-encoding.patch b/media-libs/allegro/files/allegro-4.4.3.1-texinfo-encoding.patch
new file mode 100644
index 000000000000..1b6b52f7383d
--- /dev/null
+++ b/media-libs/allegro/files/allegro-4.4.3.1-texinfo-encoding.patch
@@ -0,0 +1,19 @@
+From 7694155b74a4be1dedc9d13db6d9d2264d05f107 Mon Sep 17 00:00:00 2001
+From: Vitezslav Crhonek <vcrhonek@redhat.com>
+Date: Mon, 4 Nov 2019 12:07:16 +0100
+Subject: [PATCH] Fix FTBFS
+
+@documentencoding needed when generating documentation from
+non UTF-8 encoding source with texinfo-6.7 (rhbz#1767827)
+
+diff -up allegro-4.4.3/docs/src/allegro._tx.orig allegro-4.4.3/docs/src/allegro._tx
+--- allegro-4.4.3/docs/src/allegro._tx.orig 2019-02-02 20:28:46.000000000 +0100
++++ allegro-4.4.3/docs/src/allegro._tx 2019-11-04 11:12:39.352699777 +0100
+@@ -23,6 +23,7 @@
+ @man_shortdesc_force1=allegro
+ @man_shortdesc_force2=Allegro game programming library.
+ @$\input texinfo
++@$@documentencoding ISO-8859-1
+ @$@setfilename allegro.inf
+ @$@settitle Allegro Manual
+ @$@setchapternewpage odd