summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2024-01-25 20:30:37 +0100
committerConrad Kostecki <conikost@gentoo.org>2024-03-16 13:13:27 +0100
commita357ebd8c860107ac82c3600114b899b9df27f4b (patch)
tree6f14710b95bfc1a6ea81d1be957d6712c5ea48e5 /media-libs/libfpx
parentnet-mail/signify: EAPI8 bump, use HTTPS (diff)
downloadgentoo-a357ebd8c860107ac82c3600114b899b9df27f4b.tar.gz
gentoo-a357ebd8c860107ac82c3600114b899b9df27f4b.tar.bz2
gentoo-a357ebd8c860107ac82c3600114b899b9df27f4b.zip
media-libs/libfpx: EAPI8 bump, fix bug #847412
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://bugs.gentoo.org/847412 Closes: https://github.com/gentoo/gentoo/pull/35019 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'media-libs/libfpx')
-rw-r--r--media-libs/libfpx/libfpx-1.3.1_p10-r1.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/media-libs/libfpx/libfpx-1.3.1_p10-r1.ebuild b/media-libs/libfpx/libfpx-1.3.1_p10-r1.ebuild
new file mode 100644
index 000000000000..9e479ef75f49
--- /dev/null
+++ b/media-libs/libfpx/libfpx-1.3.1_p10-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic libtool
+
+DESCRIPTION="Library for manipulating FlashPIX images"
+HOMEPAGE="https://github.com/ImageMagick/libfpx"
+SRC_URI="mirror://imagemagick/delegates/${P/_p/-}.tar.bz2"
+S="${WORKDIR}/${P/_p/-}"
+
+LICENSE="Flashpix"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="static-libs"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.2.0.13-export-symbols.patch
+ "${FILESDIR}"/${PN}-1.3.1_p10-musl-1.2.3-null.patch
+)
+
+src_prepare() {
+ default
+
+ # we're not windows, even though we don't define __unix by default
+ [[ ${CHOST} == *-darwin* ]] && append-flags -D__unix
+
+ elibtoolize
+}
+
+src_configure() {
+ append-ldflags -Wl,--no-undefined
+ econf \
+ $(use_enable static-libs static) \
+ LIBS="-lstdc++ -lm"
+}
+
+src_install() {
+ default
+
+ # bug 847412
+ if ! use static-libs; then
+ find "${ED}" -type f -name '*.la' -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog doc/*.txt
+
+ docinto pdf
+ dodoc doc/*.pdf
+ docompress -x /usr/share/doc/${PF}/pdf
+}