diff options
Diffstat (limited to 'dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild')
-rw-r--r-- | dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild b/dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild new file mode 100644 index 000000000..d713fdb56 --- /dev/null +++ b/dev-lang/fbc-bootstrap/fbc-bootstrap-1.08.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Bootstrap package for dev-lang/fbc" +HOMEPAGE="https://www.freebasic.net" +SRC_URI="https://github.com/freebasic/fbc/releases/download/${PV}/FreeBASIC-${PV}-source-bootstrap.tar.xz" + +LICENSE="FDL-1.2 GPL-2+ LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( "${FILESDIR}"/fbc-1.08.1-Pass-ltinfo-to-linker.patch ) + +S="${WORKDIR}/FreeBASIC-${PV}-source-bootstrap" + +src_compile() { + emake bootstrap-minimal \ + AR=$(tc-getAR) AS=$(tc-getAS) CC=$(tc-getCC) CFLAGS="${CFLAGS}" V=1 +} + +src_install() { + newbin bin/fbc fbc-bootstrap + emake DESTDIR="${D}" prefix="/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-includes + emake DESTDIR="${D}" prefix="/usr/share/freebasic-bootstrap" TARGET=${CHOST} install-rtlib +} |