commit: 9da1291326aae1b1e8465ce0c10f2db4c7cf546e Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> AuthorDate: Thu Jun 16 20:09:06 2022 +0000 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> CommitDate: Thu Jun 16 20:09:06 2022 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=9da12913
media-gfx/recoil: Update to 6.1.1 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> media-gfx/recoil/files/recoil-6.1.1_LDFLAGS.patch | 40 +++++++++++++++++++++++ media-gfx/recoil/recoil-6.1.1.ebuild | 31 ++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/media-gfx/recoil/files/recoil-6.1.1_LDFLAGS.patch b/media-gfx/recoil/files/recoil-6.1.1_LDFLAGS.patch new file mode 100644 index 0000000..effb127 --- /dev/null +++ b/media-gfx/recoil/files/recoil-6.1.1_LDFLAGS.patch @@ -0,0 +1,40 @@ +From fa9042fea0e98aed0fb63aa2d43e5f637f10dad8 Mon Sep 17 00:00:00 2001 +From: "Azamat H. Hackimov" <azamat.hacki...@gmail.com> +Date: Thu, 16 Jun 2022 23:04:30 +0300 +Subject: [PATCH] Adding support of LDFLAGS + +--- + Makefile | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index d2f5c63..719768e 100644 +--- a/Makefile ++++ b/Makefile +@@ -21,12 +21,12 @@ INSTALL_DATA = $(INSTALL) -m 644 + all: recoil2png $(if $(CAN_INSTALL_MAGICK),imagemagick/recoil.so) recoil-mime.xml + + recoil2png: recoil2png.c pngsave.c pngsave.h recoil-stdio.c recoil-stdio.h recoil.c recoil.h +- $(CC) $(CFLAGS) recoil2png.c pngsave.c recoil-stdio.c recoil.c -lpng -lz -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) recoil2png.c pngsave.c recoil-stdio.c recoil.c -lpng -lz -o $@ + + ifdef CAN_INSTALL_MAGICK + imagemagick/recoil.so: imagemagick/recoilmagick.c recoil.c recoil.h formats.h + ifdef MAGICK_INCLUDE_PATH +- $(CC) $(CFLAGS) $(MAGICK_CFLAGS) -I$(MAGICK_INCLUDE_PATH) imagemagick/recoilmagick.c recoil.c -shared $(MAGICK_LDFLAGS) -ldl $(MAGICK_LIBS) -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) $(MAGICK_CFLAGS) -I$(MAGICK_INCLUDE_PATH) imagemagick/recoilmagick.c recoil.c -shared $(MAGICK_LDFLAGS) -ldl $(MAGICK_LIBS) -o $@ + else + @echo "\nDetected ImageMagick version $(MAGICK_VERSION) on your system." + @echo "To build RECOIL coder for ImageMagick," +@@ -43,7 +43,7 @@ formats.h: formats.h.xsl formats.xml + $(CITO) -o $*.c $< + + benchmark: benchmark.c recoil-stdio.c recoil-stdio.h recoil.c recoil.h +- $(CC) $(CFLAGS) benchmark.c recoil-stdio.c recoil.c -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) benchmark.c recoil-stdio.c recoil.c -o $@ + + clean: + rm -f recoil2png imagemagick/recoil.so imagemagick/coder.xml.new formats.h recoil-mime.xml benchmark Xrecoil.usr +-- +2.35.1 + diff --git a/media-gfx/recoil/recoil-6.1.1.ebuild b/media-gfx/recoil/recoil-6.1.1.ebuild new file mode 100644 index 0000000..463ef3f --- /dev/null +++ b/media-gfx/recoil/recoil-6.1.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 2018-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Retro Computer Image Library" +HOMEPAGE="http://recoil.sourceforge.net/" +SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="media-libs/libpng:0=" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}_LDFLAGS.patch" +) + +src_compile() { + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" recoil2png +} + +src_install() { + dobin recoil2png + doman recoil2png.1 + dodoc README +}