blob: fa701caa684c866efe678987bd6cc8483a6c7155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
PORT_DIR=bash
fetch() {
run_fetch_git "https://git.savannah.gnu.org/git/bash.git"
# Add serenity as a system for configure
run_patch configure-system.patch -p1
# For some reason, the build fails due to FILE* being undefined without this.
# This is probably a LibC bug, but work around it for now.
run_patch include-stdio.patch -p1
# Locale calls crash right now. LibC bug, probably.
run_patch disable-locale.patch -p1
}
configure() {
run_configure_autotools --disable-nls --without-bash-malloc
}
build() {
# Avoid some broken cross compile tests...
run_replace_in_file "s/define GETCWD_BROKEN 1/undef GETCWD_BROKEN/" config.h
run_replace_in_file "s/define CAN_REDEFINE_GETENV 1/undef CAN_REDEFINE_GETENV/" config.h
run_make
}
install() {
run_make_install DESTDIR="$SERENITY_ROOT"/Root
}
. ../.port_include.sh
|