Ports: Use SERENITY_ARCH in --target/--host
Recent ports already do this, let's update the others as well. One step closer to multi-arch support for ports! :^)
This commit is contained in:
parent
7cb9237be9
commit
4c497228a9
Notes:
sideshowbarker
2024-07-18 21:25:04 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/4c497228a97 Pull-request: https://github.com/SerenityOS/serenity/pull/5739
9 changed files with 14 additions and 10 deletions
|
@ -155,7 +155,7 @@ func_defined pre_configure || pre_configure() {
|
|||
}
|
||||
func_defined configure || configure() {
|
||||
chmod +x "${workdir}"/"$configscript"
|
||||
run ./"$configscript" --host=i686-pc-serenity $configopts
|
||||
run ./"$configscript" --host="${SERENITY_ARCH}-pc-serenity" $configopts
|
||||
}
|
||||
func_defined post_configure || post_configure() {
|
||||
:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
port=binutils
|
||||
version=2.32
|
||||
useconfigure=true
|
||||
configopts="--target=i686-pc-serenity --with-sysroot=/ --with-build-sysroot=${SERENITY_BUILD_DIR}/Root --disable-werror --disable-gdb --disable-nls"
|
||||
configopts="--target=${SERENITY_ARCH}-pc-serenity --with-sysroot=/ --with-build-sysroot=${SERENITY_BUILD_DIR}/Root --disable-werror --disable-gdb --disable-nls"
|
||||
files="https://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.xz binutils-${version}.tar.xz
|
||||
https://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.xz.sig binutils-${version}.tar.xz.sig
|
||||
https://ftp.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
port=gcc
|
||||
version=10.2.0
|
||||
useconfigure=true
|
||||
configopts="--target=i686-pc-serenity --with-sysroot=/ --with-build-sysroot=${SERENITY_BUILD_DIR}/Root --with-newlib --enable-languages=c,c++ --disable-lto --disable-nls --enable-shared --enable-default-pie --enable-host-shared"
|
||||
configopts="--target=${SERENITY_ARCH}-pc-serenity --with-sysroot=/ --with-build-sysroot=${SERENITY_BUILD_DIR}/Root --with-newlib --enable-languages=c,c++ --disable-lto --disable-nls --enable-shared --enable-default-pie --enable-host-shared"
|
||||
files="https://ftp.gnu.org/gnu/gcc/gcc-${version}/gcc-${version}.tar.xz gcc-${version}.tar.xz
|
||||
https://ftp.gnu.org/gnu/gcc/gcc-${version}/gcc-${version}.tar.xz.sig gcc-${version}.tar.xz.sig
|
||||
https://ftp.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
|
||||
|
@ -18,7 +18,7 @@ post_fetch() {
|
|||
|
||||
build() {
|
||||
run make $makeopts
|
||||
run find ./host-i686-pc-serenity/gcc/ -maxdepth 1 -type f -executable -exec strip --strip-debug {} \; || echo
|
||||
run find "./host-${SERENITY_ARCH}-pc-serenity/gcc/" -maxdepth 1 -type f -executable -exec strip --strip-debug {} \; || echo
|
||||
}
|
||||
|
||||
install() {
|
||||
|
|
|
@ -3,7 +3,7 @@ port=git
|
|||
version=2.26.0
|
||||
useconfigure="true"
|
||||
files="https://mirrors.edge.kernel.org/pub/software/scm/git/git-${version}.tar.xz git-${version}.tar.xz"
|
||||
configopts="--target=i686-pc-serenity CFLAGS=-DNO_IPV6"
|
||||
configopts="--target=${SERENITY_ARCH}-pc-serenity CFLAGS=-DNO_IPV6"
|
||||
depends="zlib"
|
||||
|
||||
build() {
|
||||
|
|
|
@ -16,7 +16,7 @@ index 7ffe373..3c8aae4 100755
|
|||
basic_machine=we32k-att
|
||||
;;
|
||||
+ *serenity*)
|
||||
+ basic_machine=i686-pc
|
||||
+ basic_machine="${SERENITY_ARCH}-pc"
|
||||
+ ;;
|
||||
+
|
||||
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
|
||||
|
|
|
@ -7,4 +7,4 @@ http://ftp.gnu.org/gnu/make/make-${version}.tar.gz.sig make-${version}.tar.gz.si
|
|||
https://ftp.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
|
||||
auth_type="sig"
|
||||
auth_opts="--keyring ./gnu-keyring.gpg make-${version}.tar.gz.sig"
|
||||
configopts="--target=i686-pc-serenity --with-sysroot=/ --without-guile"
|
||||
configopts="--target=${SERENITY_ARCH}-pc-serenity --with-sysroot=/ --without-guile"
|
||||
|
|
|
@ -4,7 +4,7 @@ version=4.5
|
|||
useconfigure="true"
|
||||
files="https://www.nano-editor.org/dist/v4/nano-${version}.tar.xz nano-${version}.tar.xz
|
||||
https://www.nano-editor.org/dist/v4/nano-${version}.tar.xz.asc nano-${version}.tar.xz.asc"
|
||||
configopts="--target=i686-pc-serenity --disable-browser --disable-utf8"
|
||||
configopts="--target=${SERENITY_ARCH}-pc-serenity --disable-browser --disable-utf8"
|
||||
depends="ncurses"
|
||||
auth_type="sig"
|
||||
auth_import_key="BFD009061E535052AD0DF2150D28D4D2A0ACE884"
|
||||
|
|
|
@ -4,4 +4,4 @@ version=3.1.3
|
|||
useconfigure="true"
|
||||
files="https://download.samba.org/pub/rsync/src/rsync-${version}.tar.gz rsync-${version}.tar.gz
|
||||
https://download.samba.org/pub/rsync/src/rsync-${version}.tar.gz.asc rsync-${version}.tar.gz.asc"
|
||||
configopts="--target=i686-pc-serenity"
|
||||
configopts="--target=${SERENITY_ARCH}-pc-serenity"
|
||||
|
|
|
@ -6,7 +6,11 @@ useconfigure=true
|
|||
makeopts=tcc
|
||||
|
||||
configure() {
|
||||
run ./configure --cross-prefix=i686-pc-serenity- --cpu=i686 --triplet=i686-pc-serenity --crtprefix=/usr/lib
|
||||
run ./configure \
|
||||
--cross-prefix="${SERENITY_ARCH}-pc-serenity-" \
|
||||
--cpu="${SERENITY_ARCH}" \
|
||||
--triplet="${SERENITY_ARCH}-pc-serenity" \
|
||||
--crtprefix=/usr/lib
|
||||
}
|
||||
|
||||
export CONFIG_ldl=no
|
||||
|
|
Loading…
Add table
Reference in a new issue