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
14 PKG_SOURCE_VERSION
:=0.16.4
15 PKG_SOURCE_URL
:=https
://codeberg.org
/tenacityteam
/libmad
16 PKG_MIRROR_HASH
:=729c78430c2fa4bf5bb25aa3f25b6a6cd5367e5255057e6211a48f6cde6a953a
18 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
19 PKG_LICENSE
:=GPL-2.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:underbit
:mad_libmad
24 PKG_BUILD_FLAGS
:=no-mips16
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/cmake.mk
32 TITLE
:=An high-quality MPEG audio decoding library
33 URL
:=http
://www.underbit.com
/products
/mad
/
36 define Package
/libmad
/description
37 MAD is a high-quality MPEG audio decoder. It currently supports
38 MPEG-1 and the MPEG-2 extension to lower sampling frequencies
,
39 as well
as the de facto MPEG
2.5 format. All three audio layers
-
40 Layer I
, Layer II
, and Layer III
(i.e. MP3
) - are fully implemented.
46 TARGET_CFLAGS
:= $(filter-out -O
%,$(TARGET_CFLAGS
)) -O2
48 define Package
/libmad
/install
49 $(INSTALL_DIR
) $(1)/usr
/lib
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmad.so.
* $(1)/usr
/lib
/
53 $(eval
$(call BuildPackage
,libmad
))