2015-08-08 16:30:56 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007-2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mpg123
|
2022-11-06 20:23:16 +00:00
|
|
|
PKG_VERSION:=1.31.1
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2015-08-08 16:30:56 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2017-07-13 21:40:51 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/mpg123
|
2022-11-06 20:23:16 +00:00
|
|
|
PKG_HASH:=5dcb0936efd44cb583498b6585845206f002a7b19d5066a2683be361954d955a
|
2015-08-08 16:30:56 +00:00
|
|
|
|
2019-11-01 01:26:26 +00:00
|
|
|
PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
|
2015-08-08 16:30:56 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-09-12 12:13:21 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:mpg123:mpg123
|
2015-08-08 16:30:56 +00:00
|
|
|
|
2020-08-17 20:48:52 +00:00
|
|
|
PKG_INSTALL:=1
|
2019-11-01 01:26:26 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2015-08-08 16:30:56 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mpg123/Default
|
|
|
|
URL:=http://www.mpg123.de
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmpg123
|
|
|
|
$(call Package/mpg123/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=fast console mpeg audio decoder library
|
2019-11-01 01:26:26 +00:00
|
|
|
LICENSE:=LGPL-2.1-or-later
|
2015-08-08 16:30:56 +00:00
|
|
|
DEPENDS:=+libltdl
|
|
|
|
endef
|
|
|
|
|
2017-07-13 21:40:51 +00:00
|
|
|
define Package/libout123
|
|
|
|
$(call Package/mpg123/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Library for continuous playback of audio streams via various platform-specific output methods
|
2019-11-01 01:26:26 +00:00
|
|
|
LICENSE:=LGPL-2.1-or-later
|
2017-07-13 21:40:51 +00:00
|
|
|
DEPENDS:=+libltdl
|
|
|
|
endef
|
|
|
|
|
2020-08-15 00:58:19 +00:00
|
|
|
define Package/libsyn123
|
|
|
|
$(call Package/mpg123/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Library for signal generation and format conversion
|
|
|
|
LICENSE:=LGPL-2.1-or-later
|
|
|
|
DEPENDS:=+libltdl
|
|
|
|
endef
|
|
|
|
|
2015-08-08 16:30:56 +00:00
|
|
|
define Package/mpg123
|
|
|
|
$(call Package/mpg123/Default)
|
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
|
|
|
TITLE:=fast console mpeg audio player
|
2019-11-01 01:26:26 +00:00
|
|
|
LICENSE:=GPL-2.0-or-later
|
2020-08-15 00:58:19 +00:00
|
|
|
DEPENDS+=+libmpg123 +alsa-lib +libout123 +libsyn123
|
2015-08-08 16:30:56 +00:00
|
|
|
endef
|
|
|
|
|
2020-08-17 20:48:52 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--with-audio=alsa \
|
|
|
|
--with-default-audio=alsa
|
2017-07-13 21:40:51 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_SOFT_FLOAT),y)
|
2020-08-17 20:48:52 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-cpu=generic_nofpu \
|
|
|
|
--enable-int-quality=yes
|
|
|
|
else ifneq ($(findstring 464fp,$(CONFIG_CPU_TYPE)),)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-cpu=altivec
|
2020-05-10 19:02:05 +00:00
|
|
|
else ifneq ($(findstring neon,$(CONFIG_CPU_TYPE)),)
|
2020-08-17 20:48:52 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-cpu=arm_fpu
|
2020-05-12 08:03:07 +00:00
|
|
|
else ifneq ($(findstring aarch64,$(CONFIG_ARCH)),)
|
2020-08-17 20:48:52 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-cpu=aarch64
|
2017-07-13 21:40:51 +00:00
|
|
|
else
|
2020-08-17 20:48:52 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-cpu=generic_fpu
|
2017-07-13 21:40:51 +00:00
|
|
|
endif
|
|
|
|
|
2015-08-08 16:30:56 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(INSTALL_DATA) \
|
2020-08-17 20:48:52 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/include/fmt123.h \
|
2015-08-08 16:30:56 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/include/mpg123.h \
|
2017-07-13 21:40:51 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/include/out123.h \
|
2020-08-15 00:58:19 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/include/syn123.h \
|
2015-08-08 16:30:56 +00:00
|
|
|
$(1)/usr/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
2020-08-17 20:48:52 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libmpg123.{la,a,so*} \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libout123.{la,a,so*} \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libsyn123.{la,a,so*} \
|
2015-08-08 16:30:56 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/mpg123
|
|
|
|
$(CP) \
|
2020-08-17 20:48:52 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/mpg123/output* \
|
2015-08-08 16:30:56 +00:00
|
|
|
$(1)/usr/lib/mpg123
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpg123.pc \
|
2017-07-13 21:40:51 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libout123.pc \
|
2020-08-15 00:58:19 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libsyn123.pc \
|
2015-08-08 16:30:56 +00:00
|
|
|
$(1)/usr/lib/pkgconfig
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmpg123/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
2020-08-17 20:48:52 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libmpg123.so.* \
|
2015-08-08 16:30:56 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2017-07-13 21:40:51 +00:00
|
|
|
define Package/libout123/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
2020-08-17 20:48:52 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libout123.so.* \
|
2017-07-13 21:40:51 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2020-08-15 00:58:19 +00:00
|
|
|
define Package/libsyn123/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
2020-08-17 20:48:52 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libsyn123.so.* \
|
2020-08-15 00:58:19 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2015-08-08 16:30:56 +00:00
|
|
|
define Package/mpg123/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) \
|
2015-09-25 14:14:49 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/mpg123{,-id3dump,-strip} \
|
2015-11-08 11:06:02 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/out123 \
|
2015-08-08 16:30:56 +00:00
|
|
|
$(1)/usr/bin
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/mpg123
|
|
|
|
$(CP) \
|
2020-08-17 20:48:52 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/mpg123/output_*.so \
|
2015-08-08 16:30:56 +00:00
|
|
|
$(1)/usr/lib/mpg123
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libmpg123))
|
2017-07-13 21:40:51 +00:00
|
|
|
$(eval $(call BuildPackage,libout123))
|
2020-08-15 00:58:19 +00:00
|
|
|
$(eval $(call BuildPackage,libsyn123))
|
2015-08-08 16:30:56 +00:00
|
|
|
$(eval $(call BuildPackage,mpg123))
|