linux: fix assembly issue on kinetis k70 linux 2.6
[openadk.git] / package / libmad / Makefile
blobb50fc27638b7e35ec13387714ef2c46367c8422f
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= libmad
7 PKG_VERSION:= 0.15.1b
8 PKG_RELEASE:= 6
9 PKG_HASH:= bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690
10 PKG_DESCR:= high-quality mpeg audio decoding library
11 PKG_SECTION:= libs/audio
12 PKG_URL:= http://sourceforge.net/projects/mad
13 PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=mad/}
14 PKG_OPTS:= dev
16 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
18 include ${ADK_TOPDIR}/mk/package.mk
20 $(eval $(call PKG_template,LIBMAD,libmad,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
22 FPM:=default
23 ifeq (${ADK_TARGET_CPU_ARCH},i486)
24 FPM:=intel
25 endif
26 ifeq (${ADK_TARGET_CPU_ARCH},i586)
27 FPM:=intel
28 endif
29 ifeq (${ADK_TARGET_CPU_ARCH},i686)
30 FPM:=intel
31 endif
32 ifeq (${ADK_TARGET_CPU_ARCH},arm)
33 FPM:=arm
34 endif
35 ifeq (${ADK_TARGET_CPU_ARCH},mipsel)
36 FPM:=mips
37 endif
38 ifeq (${ADK_TARGET_CPU_ARCH},mips)
39 FPM:=mips
40 endif
41 ifeq (${ADK_TARGET_CPU_ARCH},ppc)
42 FPM:=ppc
43 endif
44 ifeq (${ADK_TARGET_CPU_ARCH},sparc)
45 FPM:=sparc
46 endif
47 ifeq (${ADK_TARGET_CPU_ARCH},x86_64)
48 FPM:=64bit
49 endif
51 AUTOTOOL_STYLE:= autoreconf
52 CONFIGURE_ARGS+= --enable-fpm=${FPM} \
53 --disable-debugging \
54 --enable-speed
56 post-patch:
57 touch ${WRKBUILD}/{NEWS,AUTHORS,ChangeLog}
59 pre-install:
60 ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig
61 ${CP} ./files/mad.pc ${WRKINST}/usr/lib/pkgconfig
63 libmad-install:
64 ${INSTALL_DIR} ${IDIR_LIBMAD}/usr/lib
65 ${CP} ${WRKINST}/usr/lib/libmad.so* ${IDIR_LIBMAD}/usr/lib/
67 include ${ADK_TOPDIR}/mk/pkg-bottom.mk