2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE_VERSION
:=0.16.3
16 PKG_SOURCE_URL
:=https
://codeberg.org
/tenacityteam
/libmad
17 PKG_MIRROR_HASH
:=f2fa2a3c75ad1c58f0b6150482a3036408c8da79f0fcbf23bcf9e105f29079ee
19 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
20 PKG_LICENSE
:=GPL-2.0
-or-later
21 PKG_LICENSE_FILES
:=COPYING
22 PKG_CPE_ID
:=cpe
:/a
:underbit
:mad_libmad
25 PKG_BUILD_FLAGS
:=no-mips16
27 include $(INCLUDE_DIR
)/package.mk
28 include $(INCLUDE_DIR
)/cmake.mk
33 TITLE
:=An high-quality MPEG audio decoding library
34 URL
:=http
://www.underbit.com
/products
/mad
/
37 define Package
/libmad
/description
38 MAD is a high-quality MPEG audio decoder. It currently supports
39 MPEG-1 and the MPEG-2 extension to lower sampling frequencies
,
40 as well
as the de facto MPEG
2.5 format. All three audio layers
-
41 Layer I
, Layer II
, and Layer III
(i.e. MP3
) - are fully implemented.
47 TARGET_CFLAGS
:= $(filter-out -O
%,$(TARGET_CFLAGS
)) -O2
49 define Package
/libmad
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmad.so.
* $(1)/usr
/lib
/
54 $(eval
$(call BuildPackage
,libmad
))