mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
c07f91474d
We may need entries with spaces in makeopts, installopts, and configopts, and at that point we should also convert depends and auth_opts to avoid confusion.
31 lines
997 B
Bash
Executable file
31 lines
997 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=dash
|
|
version=0.5.10.2
|
|
useconfigure=true
|
|
files="http://gondor.apana.org.au/~herbert/dash/files/dash-${version}.tar.gz dash-${version}.tar.gz 3c663919dc5c66ec991da14c7cf7e0be8ad00f3db73986a987c118862b5f6071"
|
|
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_INSTALL_ROOT}" ${installopts[@]} install"
|
|
}
|