diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2019-03-03 20:26:25 +0300 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2020-02-22 23:31:35 +0000 |
commit | a1ef1d7cc128b1608c525ee55aaac9d172b73ff4 (patch) | |
tree | 22fe7dd6e340db29754a0434d5f20aa69dad2966 /media-libs/allegro | |
parent | media-video/mplayer: Disable GIF support (diff) | |
download | gentoo-a1ef1d7cc128b1608c525ee55aaac9d172b73ff4.tar.gz gentoo-a1ef1d7cc128b1608c525ee55aaac9d172b73ff4.tar.bz2 gentoo-a1ef1d7cc128b1608c525ee55aaac9d172b73ff4.zip |
media-libs/allegro: update to 4.4.3.1
Updated to new maintainance release. Some patches applied by upstream.
Added multilib support for 4.2 slot. Migrated to EAPI=7 and cmake eclass.
Removed test USE-flag since it do nothing regarding unittests.
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11244
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'media-libs/allegro')
-rw-r--r-- | media-libs/allegro/Manifest | 1 | ||||
-rw-r--r-- | media-libs/allegro/allegro-4.4.3.1.ebuild | 110 |
2 files changed, 111 insertions, 0 deletions
diff --git a/media-libs/allegro/Manifest b/media-libs/allegro/Manifest index bbf2f83fa40f..83d3d6d72f73 100644 --- a/media-libs/allegro/Manifest +++ b/media-libs/allegro/Manifest @@ -1,2 +1,3 @@ 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 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..a00cbb33c6a9 --- /dev/null +++ b/media-libs/allegro/allegro-4.4.3.1.ebuild @@ -0,0 +1,110 @@ +# 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 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" + +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 +) + +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_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 +} |