1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:17:44 +00:00

Ports: Fix building the dash port

This commit is contained in:
Gunnar Beutner 2021-04-12 09:18:56 +02:00 committed by Andreas Kling
parent 80af81bab6
commit 097901818e
3 changed files with 50 additions and 79 deletions

View file

@ -5,3 +5,28 @@ useconfigure=true
files="http://gondor.apana.org.au/~herbert/dash/files/dash-${version}.tar.gz dash-${version}.tar.gz
http://gondor.apana.org.au/~herbert/dash/files/dash-${version}.tar.gz.sha256sum dash-${version}.tar.gz.sha256sum"
auth_type="sha256"
configure() {
host_env
run autoupdate
run autoconf
run aclocal
run automake --add-missing
run mkdir -p host-build
run sh -c "cd host-build && ../configure $configopts CFLAGS=-I."
target_env
run mkdir -p target-build
run sh -c "cd target-build && ../configure --host="${SERENITY_ARCH}-pc-serenity" --disable-helpers $configopts CFLAGS=-I."
}
build() {
host_env
run sh -c "cd host-build && make $makeopts"
run cp host-build/src/{mkinit,mksyntax,mknodes,mksignames} src
target_env
run sh -c "cd target-build && make $makeopts"
}
install() {
run sh -c "cd target-build && make DESTDIR="${SERENITY_BUILD_DIR}/Root" $installopts install"
}