diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/libmad |
Initial import
Diffstat (limited to 'package/libmad')
-rw-r--r-- | package/libmad/Config.in | 12 | ||||
-rw-r--r-- | package/libmad/Makefile | 43 | ||||
-rw-r--r-- | package/libmad/files/mad.pc | 11 | ||||
-rw-r--r-- | package/libmad/ipkg/libmad.control | 4 |
4 files changed, 70 insertions, 0 deletions
diff --git a/package/libmad/Config.in b/package/libmad/Config.in new file mode 100644 index 000000000..8dd618c55 --- /dev/null +++ b/package/libmad/Config.in @@ -0,0 +1,12 @@ +config ADK_PACKAGE_LIBMAD + prompt "libmad............................ An high-quality MPEG audio decoding library" + tristate + default n + help + MAD is a high-quality MPEG audio decoder. It currently supports + MPEG-1 and the MPEG-2 extension to lower sampling frequencies, + as well as the de facto MPEG 2.5 format. All three audio layers - + Layer I, Layer II, and Layer III (i.e. MP3) - are fully implemented. + + http://www.underbit.com/products/mad/ + diff --git a/package/libmad/Makefile b/package/libmad/Makefile new file mode 100644 index 000000000..55242169d --- /dev/null +++ b/package/libmad/Makefile @@ -0,0 +1,43 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= libmad +PKG_VERSION:= 0.15.1b +PKG_RELEASE:= 1 +PKG_MD5SUM:= 1be543bc30c56fb6bea1d7bf6a64e66c + +MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=mad/} \ + ftp://ftp.mars.org/pub/mpeg/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,LIBMAD,libmad,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +FPM:=default +ifeq (${ARCH},i386) +FPM:=intel +endif +ifeq (${ARCH},mips) +FPM:=mips +endif + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= --enable-fpm=${FPM} \ + --disable-debugging \ + --enable-speed +BUILD_STYLE= auto +INSTALL_STYLE= auto confprog + +pre-install: + ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig + ${CP} ./files/mad.pc ${WRKINST}/usr/lib/pkgconfig + +post-install: + ${INSTALL_DIR} ${IDIR_LIBMAD}/usr/lib + ${CP} ${WRKINST}/usr/lib/libmad.so.* ${IDIR_LIBMAD}/usr/lib/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/libmad/files/mad.pc b/package/libmad/files/mad.pc new file mode 100644 index 000000000..9a164cfb0 --- /dev/null +++ b/package/libmad/files/mad.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: mad +Description: MPEG Audio Decoder +Requires: +Version: 0.15.0b +Libs: -L${libdir} -lmad +Cflags: -I${includedir} diff --git a/package/libmad/ipkg/libmad.control b/package/libmad/ipkg/libmad.control new file mode 100644 index 000000000..e81fea2dc --- /dev/null +++ b/package/libmad/ipkg/libmad.control @@ -0,0 +1,4 @@ +Package: libmad +Priority: optional +Section: libs +Description: An high-quality MPEG audio decoding library |