ports: binutils :^)

This commit is contained in:
dzwdz 2023-08-25 18:36:57 +02:00
parent eff47b170a
commit 1f938c20b4
2 changed files with 27 additions and 0 deletions

25
ports/binutils/port Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
. ports/pre
pkg=binutils
tarball_dir=binutils
# TODO more general ports system
fetch() { true; }
checksum() { true; }
unpack() {
mkdir -p $tarball_dir
}
configure() {
mkdir -p $tarball_dir/gas/doc # otherwise the build errors out
test -e $tarball_dir/Makefile && return
(cd $tarball_dir && $repodir/toolchain/binutils/configure --with-build-sysroot=$repodir/toolchain/sysroot/ --host=x86_64-camellia --prefix=/usr --disable-gdb --disable-gprof --disable-readline --disable-libbacktrace --disable-libctf --disable-gnulib --disable-gdbserver --disable-sim)
}
post_install() {
ln -f $repodir/out/sysrootu/lib/* $DESTDIR/usr/lib/
}
. ports/post

View File

@ -63,7 +63,9 @@ clean() {
_make clean
}
post_install() { true; }
install() {
build
_make install
post_install
}