1
0

Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:= 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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,LIBMAD,libmad,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  17. FPM:=default
  18. ifeq (${CPU_ARCH},i486)
  19. FPM:=intel
  20. endif
  21. ifeq (${CPU_ARCH},i586)
  22. FPM:=intel
  23. endif
  24. ifeq (${CPU_ARCH},i686)
  25. FPM:=intel
  26. endif
  27. ifeq (${CPU_ARCH},arm)
  28. FPM:=arm
  29. endif
  30. ifeq (${CPU_ARCH},mipsel)
  31. FPM:=mips
  32. endif
  33. ifeq (${CPU_ARCH},mips)
  34. FPM:=mips
  35. endif
  36. ifeq (${CPU_ARCH},ppc)
  37. FPM:=ppc
  38. endif
  39. ifeq (${CPU_ARCH},sparc)
  40. FPM:=sparc
  41. endif
  42. ifeq (${CPU_ARCH},x86_64)
  43. FPM:=64bit
  44. endif
  45. AUTOTOOL_STYLE:= autoreconf
  46. CONFIGURE_ARGS+= --enable-fpm=${FPM} \
  47. --disable-debugging \
  48. --enable-speed
  49. post-patch:
  50. touch ${WRKBUILD}/{NEWS,AUTHORS,ChangeLog}
  51. pre-install:
  52. ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig
  53. ${CP} ./files/mad.pc ${WRKINST}/usr/lib/pkgconfig
  54. libmad-install:
  55. ${INSTALL_DIR} ${IDIR_LIBMAD}/usr/lib
  56. ${CP} ${WRKINST}/usr/lib/libmad.so* ${IDIR_LIBMAD}/usr/lib/
  57. include ${TOPDIR}/mk/pkg-bottom.mk