1
0

Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. FPM:=default
  19. ifeq (${ARCH},i386)
  20. FPM:=intel
  21. endif
  22. # MIPS optimization is broken for gcc 4.4 (removed h constraint)
  23. #ifeq (${ARCH},mips)
  24. #FPM:=mips
  25. #endif
  26. CONFIGURE_ARGS+= --enable-fpm=${FPM} \
  27. --disable-debugging \
  28. --enable-speed
  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. libmad-dev-install:
  36. ${INSTALL_DIR} ${IDIR_LIBMAD_DEV}/usr/include
  37. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBMAD_DEV}/usr/include/
  38. include ${TOPDIR}/mk/pkg-bottom.mk