diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-09 22:33:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-09 22:33:12 +0000 |
commit | 6147e25e3b1f6ce82b661605708d0b8292c03f47 (patch) | |
tree | b8c60917145c0a076da1e88dd73edfaad594d5a6 /dev-libs/libzia/libzia-4.49.ebuild | |
parent | 3f5a5d10d87cd7f434c3a4207fc0a7ffc25d9123 (diff) |
gentoo auto-resync : 09:11:2023 - 22:33:12
Diffstat (limited to 'dev-libs/libzia/libzia-4.49.ebuild')
-rw-r--r-- | dev-libs/libzia/libzia-4.49.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/libzia/libzia-4.49.ebuild b/dev-libs/libzia/libzia-4.49.ebuild new file mode 100644 index 000000000000..9c39a847c882 --- /dev/null +++ b/dev-libs/libzia/libzia-4.49.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic + +DESCRIPTION="Platform abstraction code for tucnak package" +HOMEPAGE="http://tucnak.nagano.cz" +SRC_URI="http://tucnak.nagano.cz/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ftdi" + +RDEPEND="dev-libs/glib:2 + x11-libs/gtk+:2 + media-libs/libsdl2 + media-libs/libpng:0 + ftdi? ( dev-embedded/libftdi:1 ) + elibc_musl? ( sys-libs/libunwind )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +MAKEOPTS+=" -j1" + +src_prepare() { + eapply_user + sed -i -e "s/docsdir/#docsdir/g" \ + -e "s/docs_/#docs_/g" Makefile.am || die + + # Fix QA-Warning "QA Notice: pkg-config files with wrong LDFLAGS detected" + sed -i -e 's/@LDFLAGS@//' libzia.pc.in || die + + # fix build for MUSL (bug #832235) + if use elibc_musl ; then + sed -i -e "s/ backtrace(/ unw_backtrace(/" src/zbfd.c || die + fi + eautoreconf +} + +src_configure() { + use elibc_musl && append-libs -lunwind + econf \ + $(use_with ftdi) --with-sdl \ + --with-png --without-bfd \ + --disable-static +} + +src_install() { + emake DESTDIR="${D}" install + find "${D}" -name '*.la' -type f -delete || die +} |