[2/2] libmpg123: Install new package - 1.33.7

Message ID 20260915193436.3130221-2-adolf.belka@ipfire.org
State New
Headers
Series [1/2] lame: Update to version 4.0 |

Commit Message

Adolf Belka 15 Sep 2026, 7:34 p.m. UTC
- lame no longer uses its old mpglib own library but uses the external library libmpg123
- Enable only libmpg123 and not the other programs from the package.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/packages/libmpg123 |  7 +++
 lfs/libmpg123                       | 96 +++++++++++++++++++++++++++++
 make.sh                             |  1 +
 3 files changed, 104 insertions(+)
 create mode 100644 config/rootfiles/packages/libmpg123
 create mode 100644 lfs/libmpg123
  

Patch

diff --git a/config/rootfiles/packages/libmpg123 b/config/rootfiles/packages/libmpg123
new file mode 100644
index 000000000..9bb133c12
--- /dev/null
+++ b/config/rootfiles/packages/libmpg123
@@ -0,0 +1,7 @@ 
+#usr/include/fmt123.h
+#usr/include/mpg123.h
+#usr/lib/libmpg123.la
+#usr/lib/libmpg123.so
+usr/lib/libmpg123.so.0
+usr/lib/libmpg123.so.0.49.4
+#usr/lib/pkgconfig/libmpg123.pc
diff --git a/lfs/libmpg123 b/lfs/libmpg123
new file mode 100644
index 000000000..131e0d0f3
--- /dev/null
+++ b/lfs/libmpg123
@@ -0,0 +1,96 @@ 
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2026-2026  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+SUMMARY    = Fast console MPEG Audio Decoder library
+
+VER        = 1.33.7
+
+THISAPP    = mpg123-$(VER)
+DL_FILE    = $(THISAPP).tar.bz2
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = mpg123
+PAK_VER    = 1
+
+DEPS       =
+
+SERVICES   =
+
+# For GCC 10
+CFLAGS    += -Wno-error=narrowing
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_BLAKE2 = 6d529a3f03bcea07acab57d936fd8d6d70ca03b82b339ac5330db026f2f068ce4035f802a989e39d13a7cae76a76fe5d85a189a3b615ca1ff0cd3d64a46c9c4d
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+b2 : $(subst %,%_BLAKE2,$(objects))
+
+dist:
+	@$(PAK)
+
+###############################################################################
+# Downloading, checking, b2sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+	@$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+	@$(LOAD)
+
+$(subst %,%_BLAKE2,$(objects)) :
+	@$(B2SUM)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+	@$(PREBUILD)
+	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+	$(UPDATE_AUTOMAKE)
+	cd $(DIR_APP) && ./configure \
+				--prefix=/usr \
+				--disable-components \
+				--enable-libmpg123
+	cd $(DIR_APP) && make $(MAKETUNING)
+	cd $(DIR_APP) && make install
+	@rm -rf $(DIR_APP)
+	@$(POSTBUILD)
+
diff --git a/make.sh b/make.sh
index cf082c6b0..e56e05fc1 100755
--- a/make.sh
+++ b/make.sh
@@ -1873,6 +1873,7 @@  build_system() {
 	lfsmake2 libogg
 	lfsmake2 libvorbis
 	lfsmake2 flac
+	lfsmake2 libmpg123
 	lfsmake2 lame
 	lfsmake2 soxr
 	lfsmake2 libshout