Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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:= 1
  7. PKG_MD5SUM:= 1be543bc30c56fb6bea1d7bf6a64e66c
  8. PKG_DESCR:= An high-quality MPEG audio decoding library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://sourceforge.net/projects/mad
  11. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=mad/} \
  12. ftp://ftp.mars.org/pub/mpeg/
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,LIBMAD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. FPM:=default
  16. ifeq (${ARCH},i386)
  17. FPM:=intel
  18. endif
  19. # MIPS optimization is broken for gcc 4.4 (removed h constraint)
  20. #ifeq (${ARCH},mips)
  21. #FPM:=mips
  22. #endif
  23. CONFIGURE_ARGS+= --enable-fpm=${FPM} \
  24. --disable-debugging \
  25. --enable-speed
  26. pre-install:
  27. ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig
  28. ${CP} ./files/mad.pc ${WRKINST}/usr/lib/pkgconfig
  29. post-install:
  30. ${INSTALL_DIR} ${IDIR_LIBMAD}/usr/lib
  31. ${CP} ${WRKINST}/usr/lib/libmad.so.* ${IDIR_LIBMAD}/usr/lib/
  32. include ${TOPDIR}/mk/pkg-bottom.mk