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
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/tenacityteam
/libmad
/tar.gz
/$(PKG_VERSION
)?
16 PKG_HASH
:=83ca48db60f480ae22234bae08e6ad651adec2667a68ad2df6fd61e6a50a32c7
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
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
))