diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-13 06:46:47 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-13 06:46:47 +0000 |
commit | afb19abe0ec73761b4e330ee952a19e98d4bc7e3 (patch) | |
tree | c831ae0927550faddb9a37c12b33f38c1b376073 /dev-libs/libx86/libx86-1.1-r6.ebuild | |
parent | 360468f13add58583c7780bcacafb5452a07851d (diff) |
gentoo auto-resync : 13:03:2024 - 06:46:47
Diffstat (limited to 'dev-libs/libx86/libx86-1.1-r6.ebuild')
-rw-r--r-- | dev-libs/libx86/libx86-1.1-r6.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/libx86/libx86-1.1-r6.ebuild b/dev-libs/libx86/libx86-1.1-r6.ebuild new file mode 100644 index 000000000000..924c7e02a2ab --- /dev/null +++ b/dev-libs/libx86/libx86-1.1-r6.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="A hardware-independent library for executing real-mode x86 code" +HOMEPAGE="https://www.codon.org.uk/~mjg59/libx86/" +SRC_URI="https://www.codon.org.uk/~mjg59/${PN}/downloads/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm -ppc -riscv -sparc ~x86" + +PATCHES=( + # fix compile failure with linux-headers-2.6.26, bug 235599 + "${FILESDIR}"/${PN}-0.99-ifmask.patch + # Patch for bugs #236888 and #456648 + "${FILESDIR}"/${P}-makefile.patch + # Wider arch compatibility, bug #579682 + "${FILESDIR}"/${P}-x86emu.patch + "${FILESDIR}"/${P}-c99.patch +) + +src_configure() { + tc-export AR CC + append-cflags -fno-delete-null-pointer-checks #523276 +} + +src_compile() { + emake $(usev !x86 BACKEND=x86emu) LIBRARY=shared shared +} + +src_install() { + emake \ + LIBDIR=/usr/$(get_libdir) \ + DESTDIR="${ED}" \ + install-header install-shared +} |