ports: Update toolchain triple and add post_configure

post_configure is called after default configure. This can be used for
port specific customization when using default configure function
This commit is contained in:
Bananymous 2025-06-11 12:40:25 +03:00
parent 125f8b591d
commit a0a9d49d81
1 changed files with 7 additions and 1 deletions

View File

@ -43,10 +43,16 @@ clean() {
find . -mindepth 1 -maxdepth 1 -not -name 'patches' -not -name 'build.sh' -exec rm -rf {} +
}
post_configure() {
:
}
configure() {
configure_options=("--host=$BANAN_ARCH-banan_os" '--prefix=/usr')
configure_options=("--host=$BANAN_ARCH-pc-banan_os" '--prefix=/usr')
configure_options+=("${CONFIGURE_OPTIONS[@]}")
./configure "${configure_options[@]}" || exit 1
post_configure
}
build() {