diff --git a/host-recipes/autoconf b/host-recipes/autoconf new file mode 100644 index 00000000..addbe571 --- /dev/null +++ b/host-recipes/autoconf @@ -0,0 +1,16 @@ +name=autoconf +revision=1 +from_source=autoconf +imagedeps="gcc" + +configure() { + ${source_dir}/configure --prefix="${prefix}" +} + +build() { + make -j${parallelism} +} + +install() { + make install DESTDIR="${dest_dir}" +} diff --git a/host-recipes/autoconf-archive b/host-recipes/autoconf-archive new file mode 100644 index 00000000..16878487 --- /dev/null +++ b/host-recipes/autoconf-archive @@ -0,0 +1,16 @@ +name=autoconf-archive +revision=1 +from_source=autoconf-archive +imagedeps="gcc" + +configure() { + ${source_dir}/configure --prefix=${prefix} +} + +build() { + make -j${parallelism} +} + +install() { + make install DESTDIR="${dest_dir}" +} diff --git a/host-recipes/automake b/host-recipes/automake new file mode 100644 index 00000000..1025398f --- /dev/null +++ b/host-recipes/automake @@ -0,0 +1,17 @@ +name=automake +revision=1 +from_source=automake +imagedeps="gcc" +hostdeps="autoconf" + +configure() { + ${source_dir}/configure --prefix=${prefix} +} + +build() { + make -j${parallelism} +} + +install() { + DESTDIR="${dest_dir}" make install +} diff --git a/host-recipes/libstdc++-v3 b/host-recipes/libstdc++-v3 new file mode 100644 index 00000000..81580e40 --- /dev/null +++ b/host-recipes/libstdc++-v3 @@ -0,0 +1,20 @@ +name=libstdc++-v3 +revision=1 +from_source=gcc +imagedeps="base-devel" +hostdeps="automake autoconf xbinutils xgcc" +deps="mlibc" + +configure() { + true +} + +build() { + cd ${base_dir}/host-builds/xgcc + make all-target-libstdc++-v3 -j7 +} + +install(){ + cd ${base_dir}/host-builds/xgcc + make DESTDIR="${dest_dir}" install-target-libstdc++-v3 +} diff --git a/host-recipes/libtool b/host-recipes/libtool new file mode 100644 index 00000000..376d65b2 --- /dev/null +++ b/host-recipes/libtool @@ -0,0 +1,24 @@ +name=libtool +revision=1 +from_source=libtool +hostdeps="autoconf automake" +imagedeps="gcc help2man" + + +configure() { + cp -pr ${source_dir}/* . + ./configure --prefix=${prefix} +} + +build() { + + make -j${parallelism} + +} + +install() { + + make install DESTDIR="${dest_dir}" + +} + diff --git a/host-recipes/limine b/host-recipes/limine new file mode 100644 index 00000000..9694f0dc --- /dev/null +++ b/host-recipes/limine @@ -0,0 +1,17 @@ +name=limine +from_source=limine +revision=1 +imagedeps="base-devel mtools nasm" + +configure() { + # check here for target in order to build aarch64 targets if ever ported + "${source_dir}/configure" --enable-bios-cd --enable-bios-pxe --enable-bios --enable-uefi-ia32 --enable-uefi-x86-64 --enable-uefi-cd --prefix="${prefix}" +} + +build() { + make -j${parallelism} +} + +install() { + make install DESTDIR=${dest_dir} +} diff --git a/host-recipes/pkgconfig b/host-recipes/pkgconfig new file mode 100644 index 00000000..bb613462 --- /dev/null +++ b/host-recipes/pkgconfig @@ -0,0 +1,35 @@ +name=pkgconfig +revision=1 +from_source=pkgconfig +imagedeps="gcc base-devel" + + +configure() { + + ${source_dir}/configure --prefix=${prefix} + +} + +build() { + + make -j${parallelism} + +} + +install() { + + make install DESTDIR="${dest_dir}" + mkdir -p ${dest_dir}${prefix}/share/pkgconfig/personality.d + + cat > ${dest_dir}${prefix}/share/pkgconfig/personality.d/x86_64-astral.personality << EOF +Triplet: x86_64-astral +SysrootDir: ${sysroot_dir} +DefaultSearchPaths: ${sysroot_dir}/usr/lib/pkgconfig:${sysroot_dir}/usr/share/pkgconfig +SystemIncludePaths: ${sysroot_dir}/usr/include +SystemLibraryPaths: ${sysroot_dir}/usr/lib +EOF + + ln -s pkgconf ${dest_dir}${prefix}/bin/x86_64-astral-pkg-config + +} + diff --git a/host-recipes/xbinutils b/host-recipes/xbinutils new file mode 100644 index 00000000..a36a1495 --- /dev/null +++ b/host-recipes/xbinutils @@ -0,0 +1,17 @@ +name=xbinutils +revision=1 +from_source=binutils +imagedeps="base-devel gcc" +hostdeps="automake autoconf" + +configure() { + ${source_dir}/configure --target=x86_64-astral --prefix=${prefix} --with-sysroot=${sysroot_dir} --disable-werror +} + +build() { + make -j${parallelism} +} + +install() { + make install DESTDIR="${dest_dir}" +} diff --git a/host-recipes/xgcc b/host-recipes/xgcc new file mode 100644 index 00000000..0009c689 --- /dev/null +++ b/host-recipes/xgcc @@ -0,0 +1,18 @@ +name=xgcc +revision=1 +from_source=gcc +imagedeps="base-devel" +hostdeps="automake autoconf xbinutils pkgconfig" +deps="mlibc-headers" + +configure() { + ${source_dir}/configure --target=x86_64-astral --prefix=${prefix} --with-sysroot=${sysroot_dir} --enable-languages=c,c++ -enable-threads=posix --disable-multilib +} + +build() { + make all-gcc all-target-libgcc -j ${parallelism} +} + +install(){ + make DESTDIR="${dest_dir}" install-gcc install-target-libgcc +}