Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:= 2
  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. PKG_SUBPKGS:= LIBMAD LIBMAD_DEV
  13. PKGSD_LIBMAD_DEV:= development files for libmad
  14. PKGSC_LIBMAD_DEV:= devel
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,LIBMAD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,LIBMAD_DEV,libmad-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBMAD_DEV},${PKGSC_LIBMAD_DEV}))
  18. #FIXME
  19. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  20. FPM:=default
  21. ifeq (${ARCH},i386)
  22. FPM:=intel
  23. endif
  24. # MIPS optimization is broken for gcc 4.4 (removed h constraint)
  25. #ifeq (${ARCH},mips)
  26. #FPM:=mips
  27. #endif
  28. CONFIGURE_ARGS+= --enable-fpm=${FPM} \
  29. --disable-debugging \
  30. --enable-speed
  31. pre-install:
  32. ${INSTALL_DIR} ${WRKINST}/usr/lib/pkgconfig
  33. ${CP} ./files/mad.pc ${WRKINST}/usr/lib/pkgconfig
  34. post-install:
  35. ${INSTALL_DIR} ${IDIR_LIBMAD}/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/libmad.so* ${IDIR_LIBMAD}/usr/lib/
  37. libmad-dev-install:
  38. ${INSTALL_DIR} ${IDIR_LIBMAD_DEV}/usr/include
  39. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBMAD_DEV}/usr/include/
  40. include ${TOPDIR}/mk/pkg-bottom.mk