blob: 5ab8c2aa78dac3d55ccba6c66ca46c1d225ab840 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
pkgname=psp-gcc-base
pkgver=14.1.0
pkgrel=1
pkgdesc="A port of gcc to the PSP (bootstrap) (psp)"
arch=('x86_64')
url="https://github.com/pspdev/gcc"
license=('GPL' 'LGPL' 'FDL' 'custom')
depends=('mpfr')
makedepends=('psp-binutils' 'git')
conflicts=('psp-gcc')
options=('!buildflags' '!strip' 'staticlibs')
prepare()
{
rm -rf "$srcdir/gcc-$pkgver"
git clone https://github.com/pspdev/gcc.git -b allegrex-v${pkgver} --depth 1 "$srcdir/gcc-$pkgver"
}
build()
{
cd "$srcdir/gcc-$pkgver"
mkdir -p build-psp && pushd build-psp
../configure \
--quiet \
--prefix=/usr \
--target=psp \
--enable-languages="c" \
--with-float=hard \
--with-headers=no \
--without-newlib \
--disable-libgcc \
--disable-shared \
--disable-threads \
--disable-libssp \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-nls
make
}
package()
{
cd "$srcdir/gcc-$pkgver/build-psp"
make install DESTDIR="$pkgdir"
# Remove files owned by host gcc
rm -r "$pkgdir"/usr/share
rm "$pkgdir"/usr/lib/libcc1.*
}
|