summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzwdz2023-08-25 18:36:57 +0200
committerdzwdz2023-08-25 18:36:57 +0200
commit1f938c20b4a82ca1267ab9a1ec0922878a21ca6b (patch)
treeb0d76ec31f0e7543d23dc3f286654a857ac28de9
parenteff47b170a7b0ea24a7c6e3a538186faac758c23 (diff)
ports: binutils :^)
-rwxr-xr-xports/binutils/port25
-rw-r--r--ports/pre2
2 files changed, 27 insertions, 0 deletions
diff --git a/ports/binutils/port b/ports/binutils/port
new file mode 100755
index 0000000..b57ed7f
--- /dev/null
+++ b/ports/binutils/port
@@ -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
diff --git a/ports/pre b/ports/pre
index 0c00ef3..fd77784 100644
--- a/ports/pre
+++ b/ports/pre
@@ -63,7 +63,9 @@ clean() {
_make clean
}
+post_install() { true; }
install() {
build
_make install
+ post_install
}