sound/mpg123: Update to 1.25.2
Update mpg123 to 1.25.2 Change download URL to Sourceforge Change deprecated checksum variable (PKG_MD5SUM) to PKG_HASH Add libout123 Add generic optimizations depending on platform have fpu or not Add NEON-specific optimization Remove BUILD_PATENTED, reference: https://github.com/openwrt/packages/pull/4587 Small cleanup of Makefile Thanks to Ted Hess for reviewing and suggesting compilation fix NOTE: mpg123 uses the most recent approach just like ffmpeg that's mentioned here: https://github.com/openwrt/packages/pull/4555 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
This commit is contained in:
parent
4abda06701
commit
c285fd1142
1 changed files with 45 additions and 14 deletions
|
@ -8,12 +8,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=mpg123
|
PKG_NAME:=mpg123
|
||||||
PKG_VERSION:=1.22.3
|
PKG_VERSION:=1.25.2
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=http://www.mpg123.de/download/
|
PKG_SOURCE_URL:=@SF/mpg123
|
||||||
PKG_MD5SUM:=fca857bc5ad0d2070cd38bd5f0f85f1c
|
PKG_HASH:=5314b0fb8ad291bfc79ff4c5c321b971916819a65233ec065434358fcf8aee38
|
||||||
PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
|
PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
|
||||||
|
|
||||||
PKG_FIXUP:=libtool
|
PKG_FIXUP:=libtool
|
||||||
|
@ -27,7 +27,6 @@ include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/mpg123/Default
|
define Package/mpg123/Default
|
||||||
URL:=http://www.mpg123.de
|
URL:=http://www.mpg123.de
|
||||||
DEPENDS:=@BUILD_PATENTED
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libmpg123
|
define Package/libmpg123
|
||||||
|
@ -38,33 +37,56 @@ define Package/libmpg123
|
||||||
DEPENDS:=+libltdl
|
DEPENDS:=+libltdl
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
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
|
||||||
|
DEPENDS:=+libltdl
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/mpg123
|
define Package/mpg123
|
||||||
$(call Package/mpg123/Default)
|
$(call Package/mpg123/Default)
|
||||||
SECTION:=sound
|
SECTION:=sound
|
||||||
CATEGORY:=Sound
|
CATEGORY:=Sound
|
||||||
TITLE:=fast console mpeg audio player
|
TITLE:=fast console mpeg audio player
|
||||||
DEPENDS+=+libmpg123 +alsa-lib
|
DEPENDS+=+libmpg123 +alsa-lib +libout123
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
TARGET_CFLAGS += -D_GNU_SOURCE
|
||||||
$(call Build/Configure/Default, \
|
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
--with-cpu=generic_nofpu \
|
|
||||||
--with-audio=alsa \
|
--with-audio=alsa \
|
||||||
--with-default-audio=alsa \
|
--with-default-audio=alsa \
|
||||||
)
|
|
||||||
endef
|
ifeq ($(CONFIG_SOFT_FLOAT),y)
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--with-cpu=generic_nofpu \
|
||||||
|
--enable-int-quality=yes
|
||||||
|
else
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--with-cpu=generic_fpu
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(findstring neon,$(CONFIG_TARGET_OPTIMIZATION)),)
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--with-cpu=arm_fpu
|
||||||
|
endif
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
$(PKG_INSTALL_DIR)/usr/include/mpg123.h \
|
$(PKG_INSTALL_DIR)/usr/include/mpg123.h \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/include/out123.h \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/include/fmt123.h \
|
||||||
$(1)/usr/include/
|
$(1)/usr/include/
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/libmpg123.{la,a,so*} \
|
$(PKG_INSTALL_DIR)/usr/lib/libmpg123.{la,a,so*} \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/libout123.{la,a,so*} \
|
||||||
$(1)/usr/lib/
|
$(1)/usr/lib/
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/mpg123
|
$(INSTALL_DIR) $(1)/usr/lib/mpg123
|
||||||
|
@ -75,6 +97,7 @@ define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpg123.pc \
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmpg123.pc \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libout123.pc \
|
||||||
$(1)/usr/lib/pkgconfig
|
$(1)/usr/lib/pkgconfig
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -85,6 +108,13 @@ define Package/libmpg123/install
|
||||||
$(1)/usr/lib/
|
$(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/libout123/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/lib/libout123.so* \
|
||||||
|
$(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/mpg123/install
|
define Package/mpg123/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) \
|
$(INSTALL_BIN) \
|
||||||
|
@ -99,4 +129,5 @@ define Package/mpg123/install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libmpg123))
|
$(eval $(call BuildPackage,libmpg123))
|
||||||
|
$(eval $(call BuildPackage,libout123))
|
||||||
$(eval $(call BuildPackage,mpg123))
|
$(eval $(call BuildPackage,mpg123))
|
||||||
|
|
Loading…
Reference in a new issue