summaryrefslogtreecommitdiff
path: root/package/mpg123
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-16 13:36:13 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-16 13:36:23 -0600
commit5d33e4840753cc739face7e9689452ed90be6ae8 (patch)
treeb5d4a1c550126eae56b06d320acb49670008f7f0 /package/mpg123
parentc4568758963846e7adb2fa47e89409d44ef749e5 (diff)
fix static linking
Diffstat (limited to 'package/mpg123')
-rw-r--r--package/mpg123/Makefile2
-rw-r--r--package/mpg123/patches/patch-build_ltmain_sh6
-rw-r--r--package/mpg123/patches/patch-configure_ac11
3 files changed, 16 insertions, 3 deletions
diff --git a/package/mpg123/Makefile b/package/mpg123/Makefile
index 3b5f1018f..3ceb1466f 100644
--- a/package/mpg123/Makefile
+++ b/package/mpg123/Makefile
@@ -20,6 +20,8 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,MPG123,mpg123,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+AUTOTOOL_STYLE:= autoreconf
+
ifeq ($(ADK_CPU_I486),y)
CONFIGURE_ARGS+= --with-cpu=i486
endif
diff --git a/package/mpg123/patches/patch-build_ltmain_sh b/package/mpg123/patches/patch-build_ltmain_sh
index 20cae3022..64a24b975 100644
--- a/package/mpg123/patches/patch-build_ltmain_sh
+++ b/package/mpg123/patches/patch-build_ltmain_sh
@@ -1,6 +1,6 @@
---- mpg123-1.13.3.orig/build/ltmain.sh 2011-04-03 09:52:37.000000000 +0200
-+++ mpg123-1.13.3/build/ltmain.sh 2011-05-02 15:02:20.131176071 +0200
-@@ -5840,7 +5840,7 @@ func_mode_link ()
+--- mpg123-1.21.0.orig/build/ltmain.sh 2014-09-28 16:28:03.000000000 -0500
++++ mpg123-1.21.0/build/ltmain.sh 2015-02-16 13:27:19.862189212 -0600
+@@ -5853,7 +5853,7 @@ func_mode_link ()
# -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
diff --git a/package/mpg123/patches/patch-configure_ac b/package/mpg123/patches/patch-configure_ac
new file mode 100644
index 000000000..41a7e658e
--- /dev/null
+++ b/package/mpg123/patches/patch-configure_ac
@@ -0,0 +1,11 @@
+--- mpg123-1.21.0.orig/configure.ac 2014-09-28 16:27:28.000000000 -0500
++++ mpg123-1.21.0/configure.ac 2015-02-16 13:31:29.910186926 -0600
+@@ -1548,7 +1548,7 @@ do
+ HAVE_ALSA=no
+ else
+
+- ALSA_LIBS="-lasound"
++ ALSA_LIBS="-lasound -lpthread"
+ # Check for ALSA
+ AC_CHECK_LIB( [asound], [snd_pcm_open],
+ [ AC_CHECK_HEADER( [alsa/asoundlib.h],