Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= libmad
  5. PKG_VERSION:= 0.15.1b
  6. PKG_RELEASE:= 6
  7. PKG_MD5SUM:= 1be543bc30c56fb6bea1d7bf6a64e66c
  8. PKG_DESCR:= An high-quality MPEG audio decoding library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= autotool
  11. PKG_URL:= http://sourceforge.net/projects/mad
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=mad/}
  13. PKG_OPTS:= dev
  14. include ${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 (${CPU_ARCH},i486)
  18. FPM:=intel
  19. endif
  20. ifeq (${CPU_ARCH},i586)
  21. FPM:=intel
  22. endif
  23. ifeq (${CPU_ARCH},i686)
  24. FPM:=intel
  25. endif
  26. ifeq (${CPU_ARCH},arm)
  27. FPM:=arm
  28. endif
  29. ifeq (${CPU_ARCH},mipsel)
  30. FPM:=mips
  31. endif
  32. ifeq (${CPU_ARCH},mips)
  33. FPM:=mips
  34. endif
  35. ifeq (${CPU_ARCH},ppc)
  36. FPM:=ppc
  37. endif
  38. ifeq (${CPU_ARCH},sparc)
  39. FPM:=sparc
  40. endif
  41. ifeq (${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 ${TOPDIR}/mk/pkg-bottom.mk