summaryrefslogtreecommitdiffstats
path: root/audio-libs
diff options
context:
space:
mode:
Diffstat (limited to 'audio-libs')
-rw-r--r--audio-libs/faad2/HISTORY3
-rwxr-xr-xaudio-libs/faad2/PRE_BUILD8
2 files changed, 8 insertions, 3 deletions
diff --git a/audio-libs/faad2/HISTORY b/audio-libs/faad2/HISTORY
index e89bf9e5fe..80bda2f8cc 100644
--- a/audio-libs/faad2/HISTORY
+++ b/audio-libs/faad2/HISTORY
@@ -1,3 +1,6 @@
+2019-05-27 Ismael Luceno <ismael@sourcemage.org>
+ * PRE_BUILD: Fixed build against musl
+
2019-01-19 Treeve Jelbert <treeve@sourcemage.org>
* DETAILS: version 2.8.0
* PRE_BUILD: clean
diff --git a/audio-libs/faad2/PRE_BUILD b/audio-libs/faad2/PRE_BUILD
index 0e93d06ae6..e7a30bc963 100755
--- a/audio-libs/faad2/PRE_BUILD
+++ b/audio-libs/faad2/PRE_BUILD
@@ -1,5 +1,7 @@
default_pre_build &&
cd $SOURCE_DIRECTORY &&
-#sedit 's/^AC_PROG_CPP$/AC_PROG_CXX/' configure.in &&
-#sedit 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in &&
-/bin/sh ./bootstrap
+# Bundled getopt is broken, and so is main.c, so let's avoid it and use the
+# system version whatever it is.
+sedit '/^AC_OUTPUT/iAC_DEFINE([HAVE_GETOPT_H], 1, [Use getopt from system])' \
+ configure.ac &&
+autoreconf -i