summaryrefslogtreecommitdiff
path: root/dev-embedded/tigcc
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded/tigcc')
-rw-r--r--dev-embedded/tigcc/Manifest9
-rw-r--r--dev-embedded/tigcc/metadata.xml8
-rw-r--r--dev-embedded/tigcc/tigcc-0.96_beta7.ebuild245
-rw-r--r--dev-embedded/tigcc/tigcc-0.96_beta8-r1.ebuild246
4 files changed, 0 insertions, 508 deletions
diff --git a/dev-embedded/tigcc/Manifest b/dev-embedded/tigcc/Manifest
deleted file mode 100644
index 327de452be09..000000000000
--- a/dev-embedded/tigcc/Manifest
+++ /dev/null
@@ -1,9 +0,0 @@
-DIST binutils-2.16.1.tar.bz2 12549917 BLAKE2B be555383e322fc2683b3d14caacd27c6953bdbd777090585eb680b5accded4d788ab00cabd6cdee6c0ed7f5ccffc6bea32c38ec7acc5edbfd5a3c72f026dd274 SHA512 dbfccab518abc3352c4d09039da0f3b946ddc5557d7c193286adb0a39ced41f30246c41370b2b63db53eb5577bc0f1f61b789960443121274fd8f254a1b739bd
-DIST flashosa.zip 2437 BLAKE2B 393a1ad1285f1333ba33c6cfe95768c103dad928515007a04aafad738bc4c97aa61d204b5d3d10f276b2b7ae23bfc144d5245fe511f169a4347b3d81b3a15c62 SHA512 f81edcf7d1b8ec6dab0d44053a967dca5243ee0825f6c1a2b476e02904ead6f575b948ae0da6fbf854eb0e059fb49a9be6e5708fb8c9e50e51b16b406f6b9efa
-DIST gcc-4.1-20060728.tar.bz2 37038705 BLAKE2B 4cd072de19f8d73ca38b9ec4981bbf50508ba415cc119e156d658343d80da91735797042af147d61648c637e0b66abf93c12434eb611cd4e282bc60996797faf SHA512 c54d236d0e7a5b92acc81030067af00dd3ecc0f27a6b81c82fe6535592470f4c6a30e3a386df397fb4dd5bca6455cf473f103f484dc89ed2efba9ae55dda413f
-DIST libfargo.zip 14766 BLAKE2B b235cfdf56ab5c3b0e3d0ea1edcb9a20354db99b18e9773f8e9365fed50a6568f05339ffee1cb41bce1a516d2aff3e919b538f796786c28a5bee4f1eb7c89226 SHA512 a3a48de66f32f5a363465b99bd0be932a585a92b5e914ccc7360586ba9da83f1620cef9b102d69816754ec3437b2de8d76c3504182106baf8eb8cdf2bd823f1a
-DIST tigcc-0.96_beta7.tar.bz2 2828952 BLAKE2B ecbe86da71fa7d8385bbafdb1faddc0bd2c6120ccb804f95a702a699407ced10b3845ecc7f1ccec49755e1f0af98f1ee2e2e37d263619623c28e0857eca2a8ed SHA512 e2b16502ded365561a4c5ca26dc261fb08c3adc717d96effb27b6ea58c2f16a072c36eb114929756cbd4ce0349ba1c47a12f90cccd0587eb7fb2835623bdd966
-DIST tigcc-0.96_beta8.tar.bz2 2829870 BLAKE2B 2ecd16789e8b9df919d74c389b7b243af31e120f3e967f9562ed3b40f446d8cf28700b36b75beb4e479d18b2086f0958ebf4fb229d945577bcb6951cd685348b SHA512 e28415b309b73fa949fe9f0224239f07e62136e93c4d8fe98ad2fe32a99475620092c9317bfdd098d37a2a1dfb826c2f6fd23ab26fdcc444650dc66643cfb0e7
-EBUILD tigcc-0.96_beta7.ebuild 6741 BLAKE2B 94e418c975da3e85e399975c8b20f3890794cf15041006e991a9766d5a3edf7ed904d55ad8cabb620c098d3d130ca2a2cf819ab9969c0dfbca3793602fb610e7 SHA512 37d150fd6bfc6a7217dab8f3a7840b0254d8e8e94cb32f63119cccf1e53e39fb7e5b6a4dfebe35fba8b5b3b41099359ceef60934b0b13de1bc1389e64992cd96
-EBUILD tigcc-0.96_beta8-r1.ebuild 6558 BLAKE2B 25f2a9fb3ee9a81a356f2508a6968ce826792829fe01c2d819cdc14c612880df14295d5ba660b6393b8f9c24f1a7a5a8513f950fb7a611290683973e5fdc772c SHA512 6234d7e4632fedffbd480c129cc11ff87f4724dc131c75512e27c44c00d057bfa850c938ea0375bad31a75742524f79439609789fc522da0aedf742f575fb54a
-MISC metadata.xml 247 BLAKE2B e46b8f2d053251af5cb591bb2ee5e35089c4e8174ee2e7a3c504db23f844b65083d4a3e5198da3977ad3e98b67cab2e0de686a3c62009b487c1e64785a8ff65d SHA512 15df289e0f962f564551f61ada3cfef0311f6af639887def780bf5ad3be105515c8d24c950ff340ed35d89b9cd994af3540322b684c5dec3b43ec6bb0041aa4e
diff --git a/dev-embedded/tigcc/metadata.xml b/dev-embedded/tigcc/metadata.xml
deleted file mode 100644
index 71b1461e1146..000000000000
--- a/dev-embedded/tigcc/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer type="project">
- <email>embedded@gentoo.org</email>
- <name>Embedded Gentoo</name>
-</maintainer>
-</pkgmetadata>
diff --git a/dev-embedded/tigcc/tigcc-0.96_beta7.ebuild b/dev-embedded/tigcc/tigcc-0.96_beta7.ebuild
deleted file mode 100644
index c0463f5421c0..000000000000
--- a/dev-embedded/tigcc/tigcc-0.96_beta7.ebuild
+++ /dev/null
@@ -1,245 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-inherit eutils
-
-BASE_BINUTILS="2.16.1"
-GCC_VER="4.1.2"
-GCC_SNAPSHOT="20060728"
-BIN_VER=${BASE_BINUTILS:0:4}
-ENV_FILE=${D}/etc/env.d/99tigcc
-S="${WORKDIR}"
-DESCRIPTION="Cross compiler for Texas Instruments TI-89, TI-92(+) and V200 calculators"
-HOMEPAGE="http://tigcc.ticalc.org"
-
-#original source can be found at:
-#SRC_URI="http://tigcc.ticalc.org/linux/tigcc_src.tar.bz2"
-#but in fact this file changes as soon as there comes a new beta
-
-#when it hits portage of course it should be mirrored on a gentoo mirror:
-#SRC_URI="mirror://gentoo/${PF}.tar.bz2"
-
-SRC_URI="mirror://gentoo/tigcc-0.96_beta7.tar.bz2
- ftp://gcc.gnu.org/pub/gcc/snapshots/4.1-${GCC_SNAPSHOT}/gcc-4.1-${GCC_SNAPSHOT}.tar.bz2
- https://www.kernel.org/pub/linux/devel/binutils/binutils-${BASE_BINUTILS}.tar.bz2
- http://members.chello.at/gerhard.kofler/kevin/ti89prog/libfargo.zip
- http://members.chello.at/gerhard.kofler/kevin/ti89prog/flashosa.zip"
-
-LICENSE="GPL-2"
-
-SLOT="0"
-KEYWORDS="amd64 ppc ~sparc x86"
-IUSE="doc"
-
-RDEPEND=">=sys-devel/binutils-2.14.90.0.6-r1"
-DEPEND="${RDEPEND}
- app-arch/unzip
- >=sys-devel/bison-1.875"
-
-RESTRICT="strip"
-
-src_unpack() {
- unpack ${A}
-
- # start by patching and cleaning out binutils and gcc directories.
- cd "${WORKDIR}"/binutils-${BASE_BINUTILS}
- epatch "${S}"/sources/gcc/gas-${BIN_VER}-tigcc-*.diff
-
- rm -f .brik
- rm -f md5.sum
- rm -f -r INSTALL
- rm -f -r maintainer-scripts
- rm -f -r binutils
- rm -f -r cpu
- rm -f -r etc
- rm -f -r gas/doc
- rm -f -r gas/po
- rm -f -r gprof
- rm -f -r include/nlm
- rm -f -r include/regs
- rm -f -r ld
- rm -f -r texinfo
-
- cd "${WORKDIR}"/gcc-4.1-${GCC_SNAPSHOT}
- epatch "${S}"/sources/gcc/gcc-4.1-tigcc-patch.diff
-
- rm -f .brik
- rm -f md5.sum
- rm -f -r INSTALL
- rm -f -r fixincludes
- rm -f -r gcc/ginclude
- rm -f -r gcc/po
- rm -f -r gcc/doc
- rm -f -r gcc/treelang
- rm -f -r libcpp/po
- rm -f -r maintainer-scripts
- rm -f -r etc
- rm -f -r gprof
- rm -f -r include/nlm
- rm -f -r include/regs
- rm -f -r texinfo
-
- # create build directories for binutils and gcc
- mkdir -p "${WORKDIR}"/build/binutils
- mkdir "${WORKDIR}"/build/gcc
-
- # Workaround for non-existing directories
- sed -ie '/SUBDIRS =/d' "${WORKDIR}"/binutils-${BASE_BINUTILS}/gas/Makefile.in
-}
-
-src_compile() {
- # build binutils
- cd "${WORKDIR}"/build/binutils
- CFLAGS="${CFLAGS}" "${WORKDIR}"/binutils-${BASE_BINUTILS}/configure \
- --disable-serial-configure --target=m68k-coff --disable-shared \
- --enable-static --disable-multilib --disable-nls \
- || die
- emake || die "gas"
-
- # build gcc
- cd "${WORKDIR}"/build/gcc
- CFLAGS="${CFLAGS}" "${WORKDIR}"/gcc-4.1-${GCC_SNAPSHOT}/configure --target=m68k-coff \
- --with-gnu-as --with-as="${WORKDIR}"/build/binutils/gas/as-new --with-gnu-ld \
- --disable-nls --disable-multilib --disable-shared --enable-static \
- --disable-threads --enable-languages=c --disable-win32-registry \
- --disable-checking --disable-werror --disable-pch --disable-mudflap \
- || die
-
- # GCC compilations _is intended_ to fail on a certain point,
- # don't worry about that.
- emake -j1
-
- # Check if gcc has been built, die otherwise
- ( [ -e "${WORKDIR}"/build/gcc/gcc/xgcc ] && [ -e "${WORKDIR}"/build/gcc/gcc/cc1 ] ) || die "gcc"
-
- # build a68k assembler
- cd "${S}"/sources/a68k
- emake -e || die "a68k"
-
- # build ld-tigcc linker
- cd "${S}"/sources/ld-tigcc
- emake -e || die "ld-tigcc"
-
- # build tigcc front-end
- cd "${S}"/sources/tigcc/src
- emake -e || die "tigcc"
-
- # build tprbuilder (TIGCC project builder)
- cd "${S}"/sources/tprbuilder/src
- emake -e || die "tprbuilder"
-
- # build patcher (object file patcher)
- cd "${S}"/sources/patcher/src
- emake -e || die "patcher"
-
-}
-
-src_install() {
- # install documentation
- dodir /usr/bin
-
- if use doc ; then
- # patch the script that launches the documentation
- # browser to point to the correct location
- sed "s:\${TIGCC}/doc:/usr/share/doc/${P}:g" \
- "${S}"/tigcclib/doc/converter/tigccdoc \
- > "${S}"/tigcclib/doc/converter/tigccdoc.new
-
- cd "${S}"/tigcclib/doc/converter
- newbin tigccdoc.new tigccdoc
- cd "${S}"/tigcclib/doc
- dohtml -r html/*
- cp html/qt-assistant.adp "${D}"/usr/share/doc/${PF}/html
-
- cd "${S}"/sources/a68k
- fi
-
- dodir /usr/share/doc/${PF}
- cd "${S}"
- dodoc AUTHORS BUGS CHANGELOG DIRECTORIES HOWTO \
- INSTALL README README.linux README.osX
-
- cd "${S}"/sources/tigcc
- docinto tigcc
- dodoc AUTHORS ChangeLog README
-
- cd "${S}"/sources/tprbuilder
- docinto tprbuilder
- dodoc AUTHORS ChangeLog README
-
- cd "${S}"/sources/patcher
- docinto patcher
- dodoc AUTHORS ChangeLog README
-
- exeinto /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}
- # install gcc
- cd "${WORKDIR}"/build/gcc
- doexe gcc/cc1
- newexe gcc/xgcc gcc
- dosym /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/gcc \
- /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/ti-linux-gnu-gcc
-
- # install gas
- # exeinto /usr/ti-linux-gnu/bin <-- a symlink will be
- # created so that gas resides in /usr/ti-linux-gnu/bin too
- cd "${WORKDIR}"/build/binutils
- newexe gas/as-new as
-
- # install a68k
- cd "${S}"/sources/a68k
- newexe A68k a68k
-
- # install ld-tigcc
- cd "${S}"/sources/ld-tigcc
- doexe ld-tigcc
- doexe ar-tigcc
-
- # install tigcc
- cd "${S}"/sources/tigcc/src
- doexe tigcc
- dosym /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/tigcc \
- /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/ti-linux-gnu-tigcc
-
- # install tprbuilder
- cd "${S}"/sources/tprbuilder/src
- doexe tprbuilder
-
- # install patcher
- cd "${S}"/sources/patcher/src
- doexe patcher
-
- # install header files
- dodir /usr/include/tigcc
- cp -R "${S}"/tigcclib/include/* "${D}"/usr/include/tigcc
- dosym /usr/include/tigcc/asm/os.h /usr/include/tigcc/asm/OS.h
-
- insinto /usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER}
- # install library
- cd "${S}"/tigcclib
- doins lib/*
- cd "${WORKDIR}"
- doins flashos.a
- doins fargo.a
-
- dodir /usr/share/tigcc
- # copy example programs
- # cp -r "${S}"/examples ${D}/usr/share/tigcc
-
- # create TIGCC env variable
- dodir /etc/env.d/gcc
- # echo -e "TIGCC=\"/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}\"" >> ${ENV_FILE}
- # echo -e "CC=\"tigcc\"" >> ${ENV_FILE}
- echo -e "TIGCC=\"/usr/ti-linux-gnu\"" >> ${ENV_FILE}
- echo -e "PATH=\"/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}:/usr/ti-linux-gnu/bin\"" >> ${ENV_FILE}
- echo -e "ROOTPATH=\"/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}:/usr/ti-linux-gnu/bin\"" >> ${ENV_FILE}
- echo -e "LDPATH=\"/usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER}\"" >> ${ENV_FILE}
-
- # a cross-compiling gcc with hard-coded names has been built.
- # therefore, we must place some symlinks.
- dosym /usr/include/tigcc /usr/ti-linux-gnu/include
- dosym /usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER} /usr/ti-linux-gnu/lib
- dosym /usr/share/doc/${PF} /usr/ti-linux-gnu/doc
- dosym /usr/ti-linux-gnu/tigcc-bin/${GCC_VER} /usr/ti-linux-gnu/bin
-}
diff --git a/dev-embedded/tigcc/tigcc-0.96_beta8-r1.ebuild b/dev-embedded/tigcc/tigcc-0.96_beta8-r1.ebuild
deleted file mode 100644
index 80b1dbd83e22..000000000000
--- a/dev-embedded/tigcc/tigcc-0.96_beta8-r1.ebuild
+++ /dev/null
@@ -1,246 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-inherit eutils
-
-BASE_BINUTILS="2.16.1"
-GCC_VER="4.1.2"
-GCC_SNAPSHOT="20060728"
-BIN_VER=${BASE_BINUTILS:0:4}
-
-DESCRIPTION="Cross compiler for Texas Instruments TI-89, TI-92(+) and V200 calculators"
-HOMEPAGE="http://tigcc.ticalc.org/"
-
-#original source can be found at:
-#SRC_URI="http://tigcc.ticalc.org/linux/tigcc_src.tar.bz2"
-#but in fact this file changes as soon as there comes a new beta
-
-#when it hits portage of course it should be mirrored on a gentoo mirror:
-#SRC_URI="mirror://gentoo/${PF}.tar.bz2"
-
-SRC_URI="mirror://gentoo/${P}.tar.bz2
- ftp://gcc.gnu.org/pub/gcc/snapshots/4.1-${GCC_SNAPSHOT}/gcc-4.1-${GCC_SNAPSHOT}.tar.bz2
- https://www.kernel.org/pub/linux/devel/binutils/binutils-${BASE_BINUTILS}.tar.bz2
- http://members.chello.at/gerhard.kofler/kevin/ti89prog/libfargo.zip
- http://members.chello.at/gerhard.kofler/kevin/ti89prog/flashosa.zip"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-IUSE="doc"
-RESTRICT="strip"
-
-RDEPEND=">=sys-devel/binutils-2.14.90.0.6-r1"
-DEPEND="${RDEPEND}
- app-arch/unzip
- >=sys-devel/bison-1.875"
-
-S=${WORKDIR}
-
-src_unpack() {
- unpack ${A}
-
- # start by patching and cleaning out binutils and gcc directories.
- cd "${WORKDIR}"/binutils-${BASE_BINUTILS}
- epatch "${S}"/sources/gcc/gas-${BIN_VER}-tigcc-*.diff
-
- rm -f .brik
- rm -f md5.sum
- rm -f -r INSTALL
- rm -f -r maintainer-scripts
- rm -f -r binutils
- rm -f -r cpu
- rm -f -r etc
- rm -f -r gas/doc
- rm -f -r gas/po
- rm -f -r gprof
- rm -f -r include/nlm
- rm -f -r include/regs
- rm -f -r ld
- rm -f -r texinfo
-
- cd "${WORKDIR}"/gcc-4.1-${GCC_SNAPSHOT}
- epatch "${S}"/sources/gcc/gcc-4.1-tigcc-patch.diff
-
- rm -f .brik
- rm -f md5.sum
- rm -f -r INSTALL
- rm -f -r fixincludes
- rm -f -r gcc/ginclude
- rm -f -r gcc/po
- rm -f -r gcc/doc
- rm -f -r gcc/treelang
- rm -f -r libcpp/po
- rm -f -r maintainer-scripts
- rm -f -r etc
- rm -f -r gprof
- rm -f -r include/nlm
- rm -f -r include/regs
- rm -f -r texinfo
-
- # create build directories for binutils and gcc
- mkdir -p "${WORKDIR}"/build/binutils
- mkdir "${WORKDIR}"/build/gcc
-
- # Workaround for non-existing directories
- sed -ie '/SUBDIRS =/d' "${WORKDIR}"/binutils-${BASE_BINUTILS}/gas/Makefile.in
-}
-
-src_compile() {
- # build binutils
- cd "${WORKDIR}"/build/binutils
- CFLAGS="${CFLAGS}" "${WORKDIR}"/binutils-${BASE_BINUTILS}/configure \
- --disable-serial-configure --target=m68k-coff --disable-shared \
- --enable-static --disable-multilib --disable-nls \
- || die
- emake || die "gas"
-
- # build gcc
- cd "${WORKDIR}"/build/gcc
- CFLAGS="${CFLAGS}" "${WORKDIR}"/gcc-4.1-${GCC_SNAPSHOT}/configure --target=m68k-coff \
- --with-gnu-as --with-as="${WORKDIR}"/build/binutils/gas/as-new --with-gnu-ld \
- --disable-nls --disable-multilib --disable-shared --enable-static \
- --disable-threads --enable-languages=c --disable-win32-registry \
- --disable-checking --disable-werror --disable-pch --disable-mudflap \
- || die
-
- # GCC compilations _is intended_ to fail on a certain point,
- # don't worry about that.
- emake -j1
-
- # Check if gcc has been built, die otherwise
- ( [ -e "${WORKDIR}"/build/gcc/gcc/xgcc ] && [ -e "${WORKDIR}"/build/gcc/gcc/cc1 ] ) || die "gcc"
-
- # build a68k assembler
- cd "${S}"/sources/a68k
- emake -e || die "a68k"
-
- # build ld-tigcc linker
- cd "${S}"/sources/ld-tigcc
- emake -e || die "ld-tigcc"
-
- # build tigcc front-end
- cd "${S}"/sources/tigcc/src
- emake -e || die "tigcc"
-
- # build tprbuilder (TIGCC project builder)
- cd "${S}"/sources/tprbuilder/src
- emake -e || die "tprbuilder"
-
- # build patcher (object file patcher)
- cd "${S}"/sources/patcher/src
- emake -e || die "patcher"
-
-}
-
-src_install() {
- # install documentation
- dodir /usr/bin
-
- if use doc ; then
- # patch the script that launches the documentation
- # browser to point to the correct location
- sed "s:\${TIGCC}/doc:/usr/share/doc/${P}:g" \
- "${S}"/tigcclib/doc/converter/tigccdoc \
- > "${S}"/tigcclib/doc/converter/tigccdoc.new
-
- cd "${S}"/tigcclib/doc/converter
- newbin tigccdoc.new tigccdoc
- cd "${S}"/tigcclib/doc
- dohtml -r html/*
- cp html/qt-assistant.adp "${D}"/usr/share/doc/${PF}/html
-
- cd "${S}"/sources/a68k
- fi
-
- dodir /usr/share/doc/${PF}
- cd "${S}"
- dodoc AUTHORS BUGS CHANGELOG DIRECTORIES HOWTO \
- INSTALL README README.linux README.osX
-
- cd "${S}"/sources/tigcc
- docinto tigcc
- dodoc AUTHORS ChangeLog README
-
- cd "${S}"/sources/tprbuilder
- docinto tprbuilder
- dodoc AUTHORS ChangeLog README
-
- cd "${S}"/sources/patcher
- docinto patcher
- dodoc AUTHORS ChangeLog README
-
- exeinto /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}
- # install gcc
- cd "${WORKDIR}"/build/gcc
- doexe gcc/cc1
- newexe gcc/xgcc gcc
- dosym /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/gcc \
- /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/ti-linux-gnu-gcc
-
- # install gas
- # exeinto /usr/ti-linux-gnu/bin <-- a symlink will be
- # created so that gas resides in /usr/ti-linux-gnu/bin too
- cd "${WORKDIR}"/build/binutils
- newexe gas/as-new as
-
- # install a68k
- cd "${S}"/sources/a68k
- newexe A68k a68k
-
- # install ld-tigcc
- cd "${S}"/sources/ld-tigcc
- doexe ld-tigcc
- doexe ar-tigcc
-
- # install tigcc
- cd "${S}"/sources/tigcc/src
- doexe tigcc
- dosym /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/tigcc \
- /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/ti-linux-gnu-tigcc
-
- # install tprbuilder
- cd "${S}"/sources/tprbuilder/src
- doexe tprbuilder
-
- # install patcher
- cd "${S}"/sources/patcher/src
- doexe patcher
-
- # install header files
- dodir /usr/include/tigcc
- cp -R "${S}"/tigcclib/include/* "${D}"/usr/include/tigcc
- dosym /usr/include/tigcc/asm/os.h /usr/include/tigcc/asm/OS.h
-
- insinto /usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER}
- # install library
- cd "${S}"/tigcclib
- doins lib/*
- cd "${WORKDIR}"
- doins flashos.a
- doins fargo.a
-
- dodir /usr/share/tigcc
- # copy example programs
- # cp -r "${S}"/examples ${D}/usr/share/tigcc
-
- # create TIGCC env variable
- # TIGCC="/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}"
- # CC="tigcc"
- cat <<-EOF > 99tigcc
- TIGCC="/usr/ti-linux-gnu"
- PATH="/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}:/usr/ti-linux-gnu/bin"
- ROOTPATH="/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}:/usr/ti-linux-gnu/bin"
- LDPATH="/usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER}"
- EOF
- doenvd 99tigcc
-
- # a cross-compiling gcc with hard-coded names has been built.
- # therefore, we must place some symlinks.
- dosym /usr/include/tigcc /usr/ti-linux-gnu/include
- dosym /usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER} /usr/ti-linux-gnu/lib
- dosym /usr/share/doc/${PF} /usr/ti-linux-gnu/doc
- dosym /usr/ti-linux-gnu/tigcc-bin/${GCC_VER} /usr/ti-linux-gnu/bin
-}