@ -8,21 +8,22 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := mpg123
PKG_VERSION := 1.25.1 3
PKG_RELEASE := 3
PKG_VERSION := 1.26. 3
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.bz2
PKG_SOURCE_URL := @SF/mpg123
PKG_HASH := 90306848359c793fd43b9906e52201df18775742dc3c81c06ab67a806509890a
PKG_HASH := 30c998785a898f2846deefc4d17d6e4683a5a550b7eacf6ea506e30a7a736c6e
PKG_MAINTAINER := Zoltan HERPAI <wigyori@uid0.hu>
PKG_LICENSE_FILES := COPYING
PKG_CPE_ID := cpe:/a:mpg123:mpg123
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
CMAKE_SOURCE_SUBDIR := ports/cmake
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
d e f i n e P a c k a g e / m p g 1 2 3 / D e f a u l t
URL:= http://www.mpg123.de
@ -46,36 +47,43 @@ define Package/libout123
DEPENDS:= +libltdl
e n d e f
d e f i n e P a c k a g e / l i b s y n 1 2 3
$( call Package/mpg123/Default)
SECTION:= libs
CATEGORY:= Libraries
TITLE:= Library for signal generation and format conversion
LICENSE:= LGPL-2.1-or-later
DEPENDS:= +libltdl
e n d e f
d e f i n e P a c k a g e / m p g 1 2 3
$( call Package/mpg123/Default)
SECTION:= sound
CATEGORY:= Sound
TITLE:= fast console mpeg audio player
LICENSE:= GPL-2.0-or-later
DEPENDS += +libmpg123 +alsa-lib +libout123
DEPENDS += +libmpg123 +alsa-lib +libout123 +libsyn123
e n d e f
TARGET_CFLAGS += -D_GNU_SOURCE
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--with-audio= alsa \
--with-default-audio= alsa \
CMAKE_OPTIONS += \
-DBUILD_SHARED_LIBS= ON \
-DCMAKE_POSITION_INDEPENDENT_CODE= ON \
-DNO_FEATURE_REPORT= ON \
-DNO_LFS_ALIAS= ON
i f e q ( $( CONFIG_SOFT_FLOAT ) , y )
CONFIGURE_ARGS += \
--with-cpu= generic_nofpu \
--enable-int-quality= yes
CMAKE_OPTIONS += \
-DPLATFORM_DEFINITIONS= "OPT_GENERIC" \
-DACCURATE_ROUNDING= OFF
e l s e i f n e q ( $( findstring neon ,$ ( CONFIG_CPU_TYPE ) ) , )
CONFIGURE_ARGS += \
--with-cpu= arm_fpu
CMAKE_OPTIONS += \
-DPLATFORM_DEFINITIONS= "OPT_MULTI OPT_GENERIC OPT_GENERIC_DITHER OPT_NEON"
e l s e i f n e q ( $( findstring aarch 64,$ ( CONFIG_ARCH ) ) , )
CONFIGURE_ARGS += \
--with-cpu= aarch64
CMAKE_OPTIONS += \
-DPLATFORM_DEFINITIONS= "OPT_MULTI OPT_GENERIC OPT_GENERIC_DITHER OPT_NEON64"
e l s e
CONFIGURE_ARGS += \
--with-cpu= generic_fpu
CMAKE_OPTIONS += \
-DPLATFORM_DEFINITIONS= "OPT_GENERIC"
e n d i f
d e f i n e B u i l d / I n s t a l l D e v
@ -83,25 +91,41 @@ define Build/InstallDev
$( INSTALL_DATA) \
$( PKG_INSTALL_DIR) /usr/include/mpg123.h \
$( PKG_INSTALL_DIR) /usr/include/out123.h \
$( PKG_INSTALL_DIR) /usr/include/fmt 123.h \
$( PKG_INSTALL_DIR) /usr/include/syn 123.h \
$( 1) /usr/include/
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/libmpg123.{ la,a,so*} \
$( PKG_INSTALL_DIR) /usr/lib/libout123.{ la,a,so*} \
$( PKG_INSTALL_DIR) /usr/lib/libmpg123.so \
$( PKG_INSTALL_DIR) /usr/lib/libout123.so \
$( PKG_INSTALL_DIR) /usr/lib/libsyn123.so \
$( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/lib/cmake/mpg123
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/cmake/mpg123/mpg123-config.cmake \
$( PKG_INSTALL_DIR) /usr/lib/cmake/mpg123/mpg123-config-version.cmake \
$( PKG_INSTALL_DIR) /usr/lib/cmake/mpg123/targets.cmake \
$( PKG_INSTALL_DIR) /usr/lib/cmake/mpg123/targets-release.cmake \
$( 1) /usr/lib/cmake/mpg123
$( INSTALL_DIR) $( 1) /usr/lib/mpg123
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/mpg123/* \
$( PKG_INSTALL_DIR) /usr/lib/mpg123/output_alsa.so \
$( 1) /usr/lib/mpg123
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/pkgconfig/libmpg123.pc \
$( PKG_INSTALL_DIR) /usr/lib/pkgconfig/libout123.pc \
$( PKG_INSTALL_DIR) /usr/lib/pkgconfig/libsyn123.pc \
$( 1) /usr/lib/pkgconfig
$( SED) 's,/usr/include,$$$${prefix}/include,g' $( 1) /usr/lib/pkgconfig/libmpg123.pc
$( SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $( 1) /usr/lib/pkgconfig/libmpg123.pc
$( SED) 's,/usr/include,$$$${prefix}/include,g' $( 1) /usr/lib/pkgconfig/libout123.pc
$( SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $( 1) /usr/lib/pkgconfig/libout123.pc
$( SED) 's,/usr/include,$$$${prefix}/include,g' $( 1) /usr/lib/pkgconfig/libsyn123.pc
$( SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $( 1) /usr/lib/pkgconfig/libsyn123.pc
e n d e f
d e f i n e P a c k a g e / l i b m p g 1 2 3 / i n s t a l l
@ -118,6 +142,13 @@ define Package/libout123/install
$( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b s y n 1 2 3 / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/libsyn123.so* \
$( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / m p g 1 2 3 / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) \
@ -133,4 +164,5 @@ endef
$( eval $ ( call BuildPackage ,libmpg 123) )
$( eval $ ( call BuildPackage ,libout 123) )
$( eval $ ( call BuildPackage ,libsyn 123) )
$( eval $ ( call BuildPackage ,mpg 123) )