Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. ifeq (${ARCH},mips)
  20. FPM:=mips
  21. endif
  22. CONFIGURE_STYLE= gnu
  23. CONFIGURE_ARGS+= --enable-fpm=${FPM} \
  24. --disable-debugging \
  25. --enable-speed
  26. BUILD_STYLE= auto
  27. INSTALL_STYLE= auto confprog
  28. pre-install:
  29. ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig
  30. ${CP} ./files/mad.pc ${WRKINST}/usr/lib/pkgconfig
  31. post-install:
  32. ${INSTALL_DIR} ${IDIR_LIBMAD}/usr/lib
  33. ${CP} ${WRKINST}/usr/lib/libmad.so.* ${IDIR_LIBMAD}/usr/lib/
  34. include ${TOPDIR}/mk/pkg-bottom.mk