Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_STYLE= gnu
  24. CONFIGURE_ARGS+= --enable-fpm=${FPM} \
  25. --disable-debugging \
  26. --enable-speed
  27. BUILD_STYLE= auto
  28. INSTALL_STYLE= auto
  29. pre-install:
  30. ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig
  31. ${CP} ./files/mad.pc ${WRKINST}/usr/lib/pkgconfig
  32. post-install:
  33. ${INSTALL_DIR} ${IDIR_LIBMAD}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libmad.so.* ${IDIR_LIBMAD}/usr/lib/
  35. include ${TOPDIR}/mk/pkg-bottom.mk