2 # Copyright (C) 2006-2010 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
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/mad \
16 ftp
://ftp.mars.org
/pub
/mpeg
/
17 PKG_MD5SUM
:=1be543bc30c56fb6bea1d7bf6a64e66c
20 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/package.mk
42 TITLE
:=An high-quality MPEG audio decoding library
43 URL
:=http
://www.underbit.com
/products
/mad
/
44 DEPENDS
:=@BUILD_PATENTED
47 define Package
/libmad
/description
48 MAD is a high-quality MPEG audio decoder. It currently supports
49 MPEG-1 and the MPEG-2 extension to lower sampling frequencies
,
50 as well
as the de facto MPEG
2.5 format. All three audio layers
-
51 Layer I
, Layer II
, and Layer III
(i.e. MP3
) - are fully implemented.
54 TARGET_CFLAGS
+= $(FPIC
)
59 --enable-fpm
="$(FPM)" \
64 CFLAGS
="$(TARGET_CFLAGS)" \
66 define Build
/InstallDev
67 $(INSTALL_DIR
) $(1)/usr
/include
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/mad.h
$(1)/usr
/include/
69 $(INSTALL_DIR
) $(1)/usr
/lib
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmad.
{a
,so
*} $(1)/usr
/lib
/
73 define Package
/libmad
/install
74 $(INSTALL_DIR
) $(1)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libmad.so.
* $(1)/usr
/lib
/
78 $(eval
$(call BuildPackage
,libmad
))