Skip to content

Commit ea0b093

Browse files
committed
alephone - fix building due to removal of autogen.sh
The autogen.sh script has been removed upstream in favour of using autoreconf -i Switch to checking for autogen.sh and use it if present, otherwise use autoreconf -iv (--install --verbose). Add required autoconf-archive as a dependency.
1 parent 70d019e commit ea0b093

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

scriptmodules/ports/alephone.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function _get_branch_alephone() {
2626
}
2727

2828
function depends_alephone() {
29-
local depends=(libboost-all-dev libspeexdsp-dev libzzip-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev autoconf automake libboost-system-dev libcurl4-openssl-dev)
29+
local depends=(libboost-all-dev libspeexdsp-dev libzzip-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev autoconf automake libboost-system-dev libcurl4-openssl-dev autoconf-archive)
3030
if compareVersions "$__os_debian_ver" ge 9 || [[ -n "$__os_ubuntu_ver" ]]; then
3131
depends+=(libsdl2-dev libsdl2-net-dev libsdl2-image-dev libsdl2-ttf-dev libglu1-mesa-dev libgl1-mesa-dev)
3232
else
@@ -42,7 +42,14 @@ function sources_alephone() {
4242
function build_alephone() {
4343
params=(--prefix="$md_inst")
4444
isPlatform "arm" && params+=(--with-boost-libdir=/usr/lib/arm-linux-gnueabihf)
45-
./autogen.sh
45+
46+
# if building an older release, use autogen.sh otherwise use autoreconf
47+
if [[ -f "autogen.sh" ]]; then
48+
./autogen.sh
49+
else
50+
autoreconf -iv
51+
fi
52+
4653
./configure "${params[@]}"
4754
make clean
4855
make

0 commit comments

Comments
 (0)