update n64-toolkit names

This commit is contained in:
Connor Olding 2018-03-25 05:45:52 +02:00
parent 573fdb756e
commit 738a95bcb8
5 changed files with 41 additions and 38 deletions

View file

@ -15,11 +15,10 @@ patches tbox to compile/run with MSYS2.
### n64-toolkit ### n64-toolkit
compiles a cross-compiler for N64 homebrew. builds a cross-compiler for N64 homebrew.
works on both Arch and MSYS2. works on both Arch and MSYS2.
i need to rename this package at some point. installs to `/opt/mips64-elf-ultra64`, so add that to your PATH as needed.
currently, it doesn't follow any guidelines.
### xml2 ### xml2

View file

@ -1,13 +1,14 @@
_target=mips64 _target=mips64
_prefix="/opt/n64-toolchain-slim" _tuple=$_target-elf-ultra64
pkgname=n64-toolkit-binutils _prefix=/opt/$_tuple
pkgname=$_tuple-binutils
pkgver=2.30 pkgver=2.30
pkgrel=1 pkgrel=1
_binutils="binutils-$pkgver" _binutils="binutils-$pkgver"
pkgdesc="A set of programs to assemble and manipulate binary and object files (${_target})" pkgdesc="A set of programs to assemble and manipulate binary and object files ($_target)"
arch=('any') arch=('any')
license=('GPL') license=('GPL')
url="http://www.gnu.org/software/binutils/" url='http://www.gnu.org/software/binutils/'
depends=('zlib') depends=('zlib')
source=("ftp://gcc.gnu.org/pub/binutils/releases/$_binutils.tar.bz2") source=("ftp://gcc.gnu.org/pub/binutils/releases/$_binutils.tar.bz2")
md5sums=('cc47a2f256b4a593206b4d7e62a60b32') md5sums=('cc47a2f256b4a593206b4d7e62a60b32')
@ -27,7 +28,7 @@ build() {
export CPPFLAGS="" export CPPFLAGS=""
export LDFLAGS="" export LDFLAGS=""
export CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections \ export CFLAGS_FOR_TARGET="-O2 -G0 -ffunction-sections -fdata-sections \
-fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables" -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables"
export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET -fno-rtti" export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET -fno-rtti"
@ -40,7 +41,7 @@ build() {
_build="--build=$MINGW_CHOST --host=$MINGW_CHOST" _build="--build=$MINGW_CHOST --host=$MINGW_CHOST"
fi fi
"../$_binutils/configure" $_build --target=${_target} --prefix="$_prefix" \ "../$_binutils/configure" $_build --target=$_target --prefix="$_prefix" \
--enable-static \ --enable-static \
--disable-gold \ --disable-gold \
--disable-multilib \ --disable-multilib \

View file

@ -1,20 +1,20 @@
_target=mips64 _target=mips64
_prefix="/opt/n64-toolchain-slim" _tuple=$_target-elf-ultra64
_prefix=/opt/$_tuple
pkgname=$_tuple-bootstrap
pkgver=7.3.0
pkgrel=1
_gcc=gcc-$pkgver
_mpfr=mpfr-4.0.1 _mpfr=mpfr-4.0.1
_gmp=gmp-6.1.2 _gmp=gmp-6.1.2
_mpc=mpc-1.1.0 _mpc=mpc-1.1.0
_isl=isl-0.18 _isl=isl-0.18
pkgname=n64-toolkit-bootstrap pkgdesc="The GNU Compiler Collection. Stage 1 for toolchain building ($_target)"
pkgver=7.3.0
pkgrel=1
_gcc="gcc-$pkgver"
pkgdesc="The GNU Compiler Collection. Stage 1 for toolchain building (${_target})"
arch=('any') arch=('any')
license=('GPL' 'LGPL' 'FDL') license=('GPL' 'LGPL' 'FDL')
url='http://www.gnu.org/software/gcc/' url='http://www.gnu.org/software/gcc/'
depends=('zlib' 'n64-toolkit-binutils') # 'libmpc' depends=('zlib' "$_tuple-binutils")
makedepends=('gmp' 'mpfr') makedepends=('gmp' 'mpfr')
provides=('n64-toolkit-gcc')
source=("ftp://gcc.gnu.org/pub/gcc/releases/$_gcc/$_gcc.tar.gz" source=("ftp://gcc.gnu.org/pub/gcc/releases/$_gcc/$_gcc.tar.gz"
"ftp://ftp.gnu.org/gnu/mpfr/$_mpfr.tar.bz2" "ftp://ftp.gnu.org/gnu/mpfr/$_mpfr.tar.bz2"
"ftp://ftp.gnu.org/gnu/gmp/$_gmp.tar.bz2" "ftp://ftp.gnu.org/gnu/gmp/$_gmp.tar.bz2"
@ -50,7 +50,7 @@ build() {
export CPPFLAGS="" export CPPFLAGS=""
export LDFLAGS="" export LDFLAGS=""
export CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections \ export CFLAGS_FOR_TARGET="-O2 -G0 -ffunction-sections -fdata-sections \
-fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables" -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables"
export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET -fno-rtti" export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET -fno-rtti"
@ -63,7 +63,7 @@ build() {
_build="--build=$MINGW_CHOST --host=$MINGW_CHOST" _build="--build=$MINGW_CHOST --host=$MINGW_CHOST"
fi fi
"../$_gcc/configure" $_build --target=${_target} --prefix="$_prefix" \ "../$_gcc/configure" $_build --target=$_target --prefix="$_prefix" \
--disable-__cxa_atexit \ --disable-__cxa_atexit \
--disable-decimal-float \ --disable-decimal-float \
--disable-gold \ --disable-gold \
@ -94,8 +94,8 @@ build() {
--with-arch=vr4300 \ --with-arch=vr4300 \
--with-newlib \ --with-newlib \
--with-tune=vr4300 \ --with-tune=vr4300 \
--without-included-gettext \
--without-headers \ --without-headers \
--without-included-gettext \
make all-gcc make all-gcc
} }

View file

@ -1,22 +1,23 @@
_target=mips64 _target=mips64
_prefix="/opt/n64-toolchain-slim" _tuple=$_target-elf-ultra64
_prefix=/opt/$_tuple
pkgname=$_tuple-gcc
pkgver=7.3.0
pkgrel=1
_gcc=gcc-$pkgver
_mpfr=mpfr-4.0.1 _mpfr=mpfr-4.0.1
_gmp=gmp-6.1.2 _gmp=gmp-6.1.2
_mpc=mpc-1.1.0 _mpc=mpc-1.1.0
_isl=isl-0.18 _isl=isl-0.18
pkgname=n64-toolkit-gcc pkgdesc="The GNU Compiler Collection ($_target)"
pkgver=7.3.0
pkgrel=1
_gcc="gcc-$pkgver"
pkgdesc="The GNU Compiler Collection (${_target})"
arch=('any') arch=('any')
license=('GPL' 'LGPL' 'FDL') license=('GPL' 'LGPL' 'FDL')
url='http://www.gnu.org/software/gcc/' url='http://www.gnu.org/software/gcc/'
depends=('zlib' "n64-toolkit-binutils" "n64-toolkit-newlib") # 'libmpc' depends=('zlib' "$_tuple-binutils" "$_tuple-newlib")
makedepends=('gmp' 'mpfr') makedepends=('gmp' 'mpfr')
conflicts=('n64-toolkit-bootstrap') conflicts=("$_tuple-bootstrap")
provides=('n64-toolkit-bootstrap') provides=("$_tuple-bootstrap")
replaces=('n64-toolkit-bootstrap') replaces=("$_tuple-bootstrap")
source=("ftp://gcc.gnu.org/pub/gcc/releases/$_gcc/$_gcc.tar.gz" source=("ftp://gcc.gnu.org/pub/gcc/releases/$_gcc/$_gcc.tar.gz"
"ftp://ftp.gnu.org/gnu/mpfr/$_mpfr.tar.bz2" "ftp://ftp.gnu.org/gnu/mpfr/$_mpfr.tar.bz2"
"ftp://ftp.gnu.org/gnu/gmp/$_gmp.tar.bz2" "ftp://ftp.gnu.org/gnu/gmp/$_gmp.tar.bz2"
@ -52,7 +53,7 @@ build() {
export CPPFLAGS="" export CPPFLAGS=""
export LDFLAGS="" export LDFLAGS=""
export CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections \ export CFLAGS_FOR_TARGET="-O2 -G0 -ffunction-sections -fdata-sections \
-fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables" -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables"
export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET -fno-rtti" export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET -fno-rtti"
@ -65,7 +66,7 @@ build() {
_build="--build=$MINGW_CHOST --host=$MINGW_CHOST" _build="--build=$MINGW_CHOST --host=$MINGW_CHOST"
fi fi
"../$_gcc/configure" $_build --target=${_target} --prefix="$_prefix" \ "../$_gcc/configure" $_build --target=$_target --prefix="$_prefix" \
--disable-__cxa_atexit \ --disable-__cxa_atexit \
--disable-decimal-float \ --disable-decimal-float \
--disable-gold \ --disable-gold \
@ -96,6 +97,7 @@ build() {
--with-arch=vr4300 \ --with-arch=vr4300 \
--with-newlib \ --with-newlib \
--with-tune=vr4300 \ --with-tune=vr4300 \
--without-headers \
--without-included-gettext \ --without-included-gettext \
make all make all

View file

@ -1,14 +1,15 @@
_target=mips64 _target=mips64
_prefix="/opt/n64-toolchain-slim" _tuple=$_target-elf-ultra64
pkgname=n64-toolkit-newlib _prefix=/opt/$_tuple
pkgname=$_tuple-newlib
pkgver=2.5.0.20171222 pkgver=2.5.0.20171222
pkgrel=1 pkgrel=1
_newlib="newlib-$pkgver" _newlib="newlib-$pkgver"
pkgdesc="A C library intended for use on embedded systems (${_target})" pkgdesc="A C library intended for use on embedded systems ($_target)"
arch=('any') arch=('any')
license=('BSD') license=('BSD')
url='http://sourceware.org/newlib/' url='http://sourceware.org/newlib/'
makedepends=('n64-toolkit-bootstrap') makedepends=("$_tuple-bootstrap")
source=("ftp://sourceware.org/pub/newlib/$_newlib.tar.gz") source=("ftp://sourceware.org/pub/newlib/$_newlib.tar.gz")
md5sums=('98215f83a542fdde946c11661a34ab3f') md5sums=('98215f83a542fdde946c11661a34ab3f')
options=('!emptydirs' '!strip') options=('!emptydirs' '!strip')
@ -23,7 +24,7 @@ build() {
export CPPFLAGS="" export CPPFLAGS=""
export LDFLAGS="" export LDFLAGS=""
export CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections \ export CFLAGS_FOR_TARGET="-O2 -G0 -ffunction-sections -fdata-sections \
-fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables" -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables"
export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET -fno-rtti" export CXXFLAGS_FOR_TARGET="$CFLAGS_FOR_TARGET -fno-rtti"
@ -36,7 +37,7 @@ build() {
_build="--build=$MINGW_CHOST --host=$MINGW_CHOST" _build="--build=$MINGW_CHOST --host=$MINGW_CHOST"
fi fi
"../$_newlib/configure" $_build --target=${_target} --prefix="$_prefix" \ "../$_newlib/configure" $_build --target=$_target --prefix="$_prefix" \
--with-newlib \ --with-newlib \
--enable-lto \ --enable-lto \
--enable-target-optspace \ --enable-target-optspace \