1
0

Makefile 1.6 KB

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